Home

This is the home of the ACRIS Collaboration space.

To help you on your way, we've inserted some of our favourite macros on this home page. As you start creating pages, adding news items and commenting you'll see the macros below fill up with all the activity in your space.

Recently Updated

Navigate space
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Apr 25, 2009

    nrmmac says:

    I have logged in successfully 25-04-09

    I have logged in successfully 25-04-09

  2. 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},

    Unknown macro: {5,6,7,8}

    , {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!!!!!

    1. 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

Sign up or Log in to add a comment or watch this page.


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.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact