|
-
Help printing out 2 dim array row.
int[][] A={1,2,3,4},
{2,3,4,5},
{3,4,5,6}};
for(i=0; i<3; i++){
for(j=0; j<4; j++){
System.out.print(A[i][j] "\t");
}
System.out.println();
PLEASE HELP
Trying to find out what i can do to get an output with the total row on the right side for example
Total
1 2 3 4 10
2 3 4 5 14
3 4 5 6 18
Similar Threads
-
Replies: 146
Last Post: 08-12-2002, 10:40 PM
-
By Rob Teixeira in forum .NET
Replies: 129
Last Post: 06-06-2002, 05:23 AM
-
By Patrick Comeau in forum VB Classic
Replies: 6
Last Post: 03-22-2001, 10:50 PM
-
By Mike in forum VB Classic
Replies: 2
Last Post: 04-24-2000, 03:30 PM
-
By Mike in forum VB Classic
Replies: 0
Last Post: 04-24-2000, 03:05 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks