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
coder007
Posts: 25 Joined: Wed Dec 17, 2014 9:29 pm
Contact:
Post
by coder007 » Sat Jan 31, 2015 12:15 am
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:
Post
by admin » Sun Feb 01, 2015 9:51 pm
You are right. Fixed.
thank you for your feedback!
coder007
Posts: 25 Joined: Wed Dec 17, 2014 9:29 pm
Contact:
Post
by coder007 » Sun Feb 01, 2015 11:28 pm
welcome
Users browsing this forum: No registered users and 21 guests