Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I've created an user defined routine and named it as a FileCheck.
When I create a job and put tjava component am not able to find routine I had created using ctrl+space.
Can anyone help ?
/**
* Specifies a substring consisting of the first n characters of a string.
*
* {Category} StringUtil
*
* {param} string("hello world!") string: String.
*
* {param} int(5) index : index
*
* {example} startFrom("hello world!",5) # hello
*/
public static String startFrom(String string, int index) {
return string == null ? null : string.substring(0, Math.min(string.length(), index));
}