File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA/OCP Java SE 7 Programmer I & II Study Guide
this week in the
Output of this 2Dimensional array ?
Joined: Aug 12, 2008
Sep 08, 2008 03:06:00
hi i have the following code
public static void main(
System.out.println("Welcome to 2Dimensional array");
int num=new int;
System.out.println(num[i][j]+" ") ;
i am getting output like this
But i am excepting output like this 0 1 2 3 4
5 6 7 8 9
10 11 12 13 14
15 16 17 18 19
can anyone tell what is the problem ?
Anto Telvin Mathew<br />Many of the life failures are people who did not realize how close they were to success when they give up. EDISON
Joined: Apr 14, 2004
Sep 08, 2008 03:38:00
System.out.print[B]ln[/B](num[i][j] + " ");
See the issue? If you don't,
should help make it clearer.
[ September 08, 2008: Message edited by: Paul Sturrock ]
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Output of this 2Dimensional array ?
Displaying a 2dimensional array
Use 2Dimensional array for <html:select> fields with same name in struts Action Form&html form?
Doubt in char array and byte array
Help: traverse through one array and store in another array.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014