java <identifier> expected

Associate
Joined
19 Jul 2006
Posts
1,847
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


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;
   }
 
Back
Top Bottom