if this is not how do i acheive this?
I am trying to read the array value of modelName[i] store it in inputName and the determine if inputName is == to the variable i am looking for (the models name) and then if it is display the whole line of code.
while ( response != null && response.length() > 0){
System.out.println("You are searching for " + response);
for (int i = 0; i < modelName.length; i++)
{
modelName[i] == inputName;
if (inputName == response)
System.out.println( modelName[i] + "\t\t" + digitStockNumber[i] + "\t" + modelColor[i] + "\t" + integerPrice[i] );
}
}
2007-07-15
16:28:52
·
3 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
ok but now my thing is in an infinite loop?
2007-07-15
18:12:20 ·
update #1