Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
DrGenious
Creator
Creator

Array in tjava

Hi,

I am trying to adjust the below code into my pipeline:

private static String[][] List = new String[189][2];


if((code.equals("teo")) && !(id.equals("")) ){ for (int k=0;k<List.length;k++) { SuperCode = List[k][0]; if( id.startsWith(SuperCode.trim())) { info = "hey from " + List[k][1]; } }

Have I to use tjava, tjavaflex or tjavaRow? How I will impement this ? Thanks in advance.

Labels (2)
4 Replies
Anonymous
Not applicable

Hi
If you need to access incoming data, you will use tJavaRow or tJavaFlex component, here an article that introduces the difference between tjava, tJavaRow and tJavaFlex, it will be helpful for you to understand these three components.
https://help.talend.com/reader/lw17672ujtsKAM3zY5H2oQ/nWbUINqRhQ51bGS2OWMqXA

Regards
Shong

DrGenious
Creator
Creator
Author

Thank you @shong. This is for the first question. I am looking also  an answer for the second one, on how to implement this code into talend.

Anonymous
Not applicable

@DrGenious, I am not Java developer, I can't provide you any help on code implementation to you.

Regards
Shong
DrGenious
Creator
Creator
Author

@shong It's ok. Thank you a lot for the help with the components.