Im trying to build up a number testing system that takes a number array and goes through to se if th e number is above 0
the if statement is causing a problem and i dunno why
the if statement is causing a problem and i dunno why
Code:
public boolean isValidnumber()
{
boolean numberTest;
numberTest = true;
for (int i =0;i<number.length;i++)
{
if((number.[i])<0) // this is causing a <identifier> expected error
{
numberTest = false;
}
}
return numberTest;
}