•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 456,556 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,446 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 260 | Replies: 2 | Solved
![]() |
•
•
Join Date: Sep 2007
Posts: 13
Reputation:
Rep Power: 2
Solved Threads: 0
Can anyone help me debug this, I am getting a lot of errors. 
here's the example case:
User inputs..
Enter Row: 3
Enter Column: 3
Output
1 2 3
2 4 6
3 6 9
Here's my code:

here's the example case:
User inputs..
Enter Row: 3
Enter Column: 3
Output
1 2 3
2 4 6
3 6 9
Here's my code:
import java.io.*;
public class Test2
{
public static InputStreamReader reader=new
InputStreamReader (system.in);
public static BufferedReader input=new
BufferedReader (reader);
public static void main (String args[]) throws Exception{
String row;
String col;
System.out.println ("Enter Row:");
row = input.readLine();
System.out.println ("Enter Column:");
col = input.readLine();
int [][] x = {{0,1,2,3,4,5,6,7,8,9,10},
{1,2,4,6,8,10,12,14,16,18,20},
{2,3,6,9,12,15,18,21,24,27,30},
{3,4,8,12,16,20,24,28,32,36,40},
{4,5,10,15,20,25,30,35,40,45,50},
{5,6,12,18,24,30,36,42,48,54,60},
{6,7,14,21,28,35,42,49,56,63,70},
(7,8,16,24,32,40,48,56,64,72,80),
{8,9,18,27,36,45,54,63,72,81,90},
{9,10,20,30,40,50,60,70,80,90,100},
{10,20,30,40,50,60,70,80,90,100,110}};
int row, col;
for (row=0; row<11; row++){
for (col=0; col<11; col++){
System.out.print (" " + x [row][col]);
}
System.out.println();
}
}
}![]() |
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Previous Thread: Future of JAVA ?
- Next Thread: how to capture the system idle time using java



Linear Mode