This is the error message i get when i try and use the foor loop,
cannot find symbol - variable split result
for(int i=0;i<=216;i=i+3){
MyPanel.txtbyellowentry.setText(splitresult[i+2]) ;
MyPanel.txtbgreenentry.setText(splitresult[i+2]) ;
What i am doing is, in my other class(matchlist) i am using a stringbuilder to send a group of matches to a text area (in the mypanel class where my foorlopp is located), then, in the same class i am using the splitreult method with the ("\ \ s") which looks for the blank spaces and breaks the one string in to an array of many. The idea is then by using the
MyPanel.txtbgreenentry.setText(splitresult[0]);
MyPanel.txtbyellowentry.setText(splitresult[2]);
i set the first two names to apprpriate text boxes. My problem arises hwoever when i try to increment the names on the push of a button so the two orignal names are replaced by another, i realise its because they are in different classes, whats the easiest way to solve this?
im sorry if this is vague, i tried to explain the best i can, if anyone wants to help and needs more information please say and ill provide it