Results 1 to 3 of 3
  1. #1
    dokunbam is offline Member
    Join Date
    Oct 2013
    Posts
    2
    Rep Power
    0

    Default Array Spreadsheet error

    Am trying to print in spreadsheet format
    i keep getting error at (System.out.println(aryNums[x][y] + " ");

    public static void main(String[] args) {
    // TODO code application logic here
    int[][]aryNums;
    aryNums = new int [3][6];
    aryNums[0][0] = 10; aryNums[1][0] = 60; aryNums[2][0] = 60;
    aryNums[0][1] = 20; aryNums[1][1] = 50; aryNums[2][1] = 60;
    aryNums[0][2] = 30; aryNums[1][2] = 40; aryNums[2][2] = 60;
    aryNums[0][3] = 40; aryNums[1][3] = 30; aryNums[2][3] = 60;
    aryNums[0][4] = 50; aryNums[1][4] = 20; aryNums[2][4] = 60;
    aryNums[0][5] = 60; aryNums[1][5] = 10; aryNums[2][5] = 60;

    //
    int row = 6;
    int column = 3;
    int x, y;
    for (x = 0; x < row ; x++){
    for (y = 0; y < column ; y++){
    }

    System.out.println(aryNums[x][y] + " ");
    }
    System.out.println("");
    }

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default Re: Array Spreadsheet error

    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    jim829 is online now Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,023
    Rep Power
    6

    Default Re: Array Spreadsheet error

    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Exporting recordset to xls spreadsheet
    By drimades in forum JDBC
    Replies: 4
    Last Post: 03-07-2012, 07:11 PM
  2. generate excel spreadsheet
    By BigBear in forum Advanced Java
    Replies: 5
    Last Post: 04-27-2010, 03:44 PM
  3. List API's that stores Spreadsheet using java
    By britto_bics in forum AWT / Swing
    Replies: 1
    Last Post: 11-18-2009, 04:10 AM
  4. Recovering data from Excel spreadsheet
    By Anubis in forum SWT / JFace
    Replies: 0
    Last Post: 12-17-2008, 09:28 PM
  5. Spreadsheet in Java
    By emceenugget in forum New To Java
    Replies: 4
    Last Post: 10-03-2008, 08:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •