Hi all,
I have a small problem that i just cant understand!
I have created an ArrayList <String> and want to pass it to an other method. So i have this
and then i have the result method,
I have tried all these and nothing is working!
Any help pls? I am seriously thinking of having the list as a global variable! that would save me a lot of trouble!
I have a small problem that i just cant understand!
I have created an ArrayList <String> and want to pass it to an other method. So i have this
Code:
ArrayList<String> name = new ArrayList<String>();
.....
results(jComboBox1.getSelectedIndex(),ArrayList() name);
Code:
public void results(int index,List table){}
Code:
public void results(int index,ArrayList table){}
Code:
public void results(int index,ArrayList<String> table){}
Any help pls? I am seriously thinking of having the list as a global variable! that would save me a lot of trouble!