Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2008
    Posts
    14
    Thanks
    4
    Thanked 0 Times in 0 Posts

    2D array question

    how do i set each individual number in the array?
    i know how to prompt for a user to enter each number, but i wanna know how to have each number preset in the code.

    thanks

  • #2
    Gox
    Gox is offline
    Regular Coder Gox's Avatar
    Join Date
    May 2006
    Location
    Ontario, Canada
    Posts
    392
    Thanks
    2
    Thanked 20 Times in 20 Posts
    Here's a couple links with examples that should help. They will probably do a better job of explaining with examples then I could in a reply.

    http://leepoint.net/notes-java/data/...arrays-2D.html
    http://www.xahlee.org/java-a-day/arrays.html
    http://www.willamette.edu/~gorr/clas...9/arrays2d.htm
    Last edited by Gox; 12-16-2008 at 09:29 PM.

  • Users who have thanked Gox for this post:

    porknbeans (12-18-2008)

  • #3
    New Coder
    Join Date
    Dec 2008
    Posts
    14
    Thanks
    4
    Thanked 0 Times in 0 Posts
    thank you


  •  

    Posting Permissions

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