Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Populating a 2 Dimensional Array ??

807597Jul 10 2005 — edited Jul 10 2005
Hi,
I am trying to create a two dimensional array with 10 columns and 15 rows, and initialize it with values 0 through 149.

this is what I have so far but I think i have to add another part but i have no idea what.. can anyone help me? thanks,

 class Example2DArray {
    static int [][] myArray = new int[10][15]; 

    public static void main(String[] args) {

    for(int i=0; i<149; i++) 
        fillArray(i);

    System.out.println();
    } 
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 7 2005
Added on Jul 10 2005
5 comments
1,447 views