Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Guys!
I have encountered this exercise from the internet(Advanced Talend Exercise 13: Call an existing jar from within a job) and one of its task is to generate 3 email addresses("training@talend.com", "test.talend.com", "support@talend.com") by using a tJavaflex component. Now I'm not sure if the code that I made is right...so Im just gonna show you guys my code below:
// start part of your Java code
String [] emailArray = {"training@talend.com", "test@talend.com", "support@talend.com"};
for(int j=0;j<emailArray.length;j++) {
// here is the main part of the component,
// a piece of code executed in the row
// loop
System.out.println(emailArray)
// end of the component, outside/closing the loop
}
and I want to know if this is correct? or Am I missing something important here? Because after generating the email addresses, you will have to link the tJavaflex to a tMap so that when the job runs, the the email generated will be outputted and the tMap will test if it has the right email pattern or not...anyways, Any kind of help would be gladly appreciated thank you and God Bless to all and here is the screenshot of the exercise below: