unable to use String.join function

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

Re: unable to use String.join function

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

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now