The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.
Comments (3)
Apr 25, 2009
nrmmac says:
I have logged in successfully 25-04-09I have logged in successfully 25-04-09
Apr 26, 2009
suzynow says:
can someone pleeeeaaaasse help??? I need help My assignment is; Assume that "...can someone pleeeeaaaasse help???
I need help
My assignment is;
Assume that "intar" is a 2 dimensional int array (made out of rows and columns as in page 430, except this is an int and not a double, which you will declare), which contains the following int values:
1 2 3 4
5 6 7 8
9 10 11 12
Write a java program that you will call Assign9.java and has a main method that uses a nested for loop to print the 2 dimensional array intar declared above in the exact following order (use the nested for loop in the botton of page 431 as an example) :
1 5 9 2 6 10 3 7 11 4 8 12
That is: to print the values of intar going across the columns instead of
across the rows.
(Do not forget to declare intar in the class Assign
This is what I have on text pad
public class assign9{
public static void main(String [] arg){
int intar [][] = {{1, 2, 3, 4},
, {9,10,11,12}};
// then use a double for loop are unit indexed.
//both loops
// loop on i for int = column.
// loop on j for int = row
// print the elements of intar column wise as follows:
// 1 5 9 2 6 10 3 7 11 4 8 12
I need to add 2 for for loops but I do not know how, can someone help me finish this assignment please!!!!!
May 09
sreyes27 says:
You still need help? I'm willing to try and help out. Let me know, sreyes27@sa...You still need help? I'm willing to try and help out. Let me know, sreyes27@satx.rr.com