Results 1 to 2 of 2
  1. #1
    holytanx is offline Member
    Join Date
    Aug 2010
    Posts
    1
    Rep Power
    0

    Default Multidimensional Arrays

    Hi, complete novice looking for a little help.
    As part of some study ive been doing, i have been asked
    to initialize and fill a double array with the unicode characters
    65 to 124 using nested for loops.
    The array is supposed to act as 12 rows and 5 columns so to
    speak [12][5], this i have managed. Ive then managed
    to use nested for loops to print out each element of the array.
    What im struggling with is how to print out the elements in ''rows and
    columns'' ie
    ABCDE
    FGHIJ
    KLMNO

    Any help or a point in the right direction would be much appreciated :)
    Attached Files Attached Files
    Last edited by holytanx; 08-05-2010 at 11:16 PM. Reason: First post and didnt upload txt file, just copied and pasted :(

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default

    How about counting the letters as you output them on a row and insert a newline character when you get past the last column.

Similar Threads

  1. Retrieve Multidimensional Array ??
    By oneofthelions in forum New To Java
    Replies: 3
    Last Post: 12-12-2009, 08:24 AM
  2. [SOLVED] Multidimensional array
    By Torgero in forum New To Java
    Replies: 20
    Last Post: 03-23-2009, 12:36 AM
  3. Multidimensional hashtable?
    By jklsemicolon in forum New To Java
    Replies: 6
    Last Post: 08-17-2008, 06:23 AM
  4. Replies: 9
    Last Post: 06-25-2008, 05:48 AM
  5. Multidimensional arrays
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-05-2007, 06:07 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
  •