for (int i = 0; i< expArray.length; i++){
System.out.println(expArray[i]);
if ( expArray[i] == "5" ){ ///WHY IS THIS NOT WORKING!!!??
System.out.println("here");
I know the output of the System.out...
:
0
=
0
+
5
This is how my String
array was made:
for (int i = 0; i< expArray.length; i++){
if(varTable.get(expArray[i]) != null){
expArray[i] = Integer.toString((int) varTable.get(expArray[i]));
}
}
So the issue is, at the expArray[i] == "5" )
if block up top its not going in at i=1
where it should. any reason/thoughts?