Java String transform() method
Java String transform() method
String transform() method added jdk 12.
This method allows the application of a function to this string. The function should expect a single String argument and produce an R result.
Any exception thrown by f() will be propagated to the caller.
Java Program Example:
class StringTransform{
public static void main(String args[]){
String str = "Transform";
}
}
Method:
public <R> R transform(Function<? super String,? extends R> f)
Comments
Post a Comment