hi,
I was trying to declare a ArrayList in tJava component and while executing the the job an error came across "ArrayList cannot be resolved to a type". All packages required were imported.
Below mentioned is the simple java code which i tried in tJava component.
ArrayList<String> master=new ArrayList<String>();
int i=10;
try
{
while (i>0)
{
master.add("a"+i);
System.out.println(master.get(i));
i-=1;
}
}
catch(Exception e)
{
e.printStackTrace();
}
Can any one explain whether declaration of primitive datatypes are only allowed in tJava component and why not the non primitive ones. And to declare and use those datatypes where i should declare those types.