I am unable to use java function String.join in talend.
For ex - I am trying to run the below code :
String.join("","123456".split("123456".substring(3, 5)));
It is working perfectly on Java and giving O/P as 1236 (which is as expected); however when i am trying to do the same in talend, it is showing an error "The method join(String, String[]) is undefined for type String)"