Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2008, 07:27 AM
Member
 
Join Date: Dec 2007
Posts: 14
Rep Power: 0
kbyrne is on a distinguished road
Default 2D-Arrays
Hi, I'm writing a 2d array in which i require the user to type in a number, that number will then return a int that relates to it... ie if 49 is given as an argument C#3 is returned, if 60 is given C4 is returned

Attached is code with the way i started to attempt it. Please can somebody give me pointers on how to complete, or even if i'm going the right way about it.
Attached Files:
File Type: txt Lookup.txt (783 Bytes, 6 views)
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 02-07-2008, 11:08 PM
Member
 
Join Date: Feb 2008
Posts: 6
Rep Power: 0
diRisig is on a distinguished road
Default
i think you should look at this:

The Map Interface (The Java™ Tutorials > Collections > Interfaces)
(MAPS)
Otherwise goole on "java lists", "java collections" or something similar.

I've never used them but i've used similar in C# so i can't really help.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Arrays bunbun New To Java 1 04-09-2008 03:24 AM
new to arrays jimJohnson New To Java 1 04-08-2008 03:45 PM
question about arrays broganm1 New To Java 3 02-13-2008 03:29 AM
arrays help Warren New To Java 6 11-23-2007 08:23 PM
Problems with arrays Marcus New To Java 2 07-04-2007 09:10 AM


All times are GMT +2. The time now is 03:41 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org