View Single Post
Old Apr 3rd, 2006, 5:46 PM   #2
Xyhm
Programmer
 
Xyhm's Avatar
 
Join Date: Mar 2006
Posts: 60
Rep Power: 3 Xyhm is on a distinguished road
You can't declare the same variable twice. But you can, I think, declare "String[] inputStringFinal" somewhere in the beginning, and then assign to "inputStringFinal".

This doesn't work:

String [] s = new String[1];
String [] s = new String[2];

But this does:

String[] s;
s = new String[1];  
s = new String [2];

Last edited by Xyhm; Apr 3rd, 2006 at 6:00 PM.
Xyhm is offline   Reply With Quote