View Single Post
Old Apr 3rd, 2006, 8:19 PM   #4
Eric the Red
Hobbyist Programmer
 
Eric the Red's Avatar
 
Join Date: Feb 2006
Posts: 214
Rep Power: 0 Eric the Red is an unknown quantity at this point
Quote:
Originally Posted by Xyhm
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];
Thanks!! That solves the problem.
__________________
Death smiles at us all. All a man can do is smile back.
Eric the Red is offline   Reply With Quote