Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1384 :

Posted: Sat Jan 31, 2015 12:15 am
by coder007
I think there are some typos:

Code: Select all

 
public static void init() 
{        
      for (int x = 0; x < table.length; x++) 
          { for (int y = 0; y < table[0].length; y++) 
             {   //insert code to initialize              
               }        
          }     
}

Code: Select all

public static void multiply() 
{    
      for (int x = 0; x < table.length; x++) 
      {     for (int y = 0; y < table[0].length; y++) 
            {  //insert code to multiply              
              }         
     }
}
In both nested IF conditions we should right:

y < table[x].length;

Instead of zero index...

Re: About Question enthuware.ocajp.i.v7.2.1384 :

Posted: Sun Feb 01, 2015 9:51 pm
by admin
You are right. Fixed.
thank you for your feedback!

Re: About Question enthuware.ocajp.i.v7.2.1384 :

Posted: Sun Feb 01, 2015 11:28 pm
by coder007
welcome :)