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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
coder007
Posts: 25
Joined: Wed Dec 17, 2014 9:29 pm
Contact:

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

Post 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...

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. Fixed.
thank you for your feedback!

coder007
Posts: 25
Joined: Wed Dec 17, 2014 9:29 pm
Contact:

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

Post by coder007 »

welcome :)

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests