One Star

unable to use String.join function

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)"
1 REPLY
Five Stars

Re: unable to use String.join function

String.join required Java 8.
Which version of Java are you using with Talend?