import java.util.* in datweave code example
Example: java class in dataweave
%dw 2.0
import java!utils::MyUtils
output application/json
---
{
a: MyUtils::appendRandom("myString")
}
%dw 2.0
import java!utils::MyUtils
output application/json
---
{
a: MyUtils::appendRandom("myString")
}