• 0

Java Assignment


Question

OK I'm lost here...

I'm trying to write a little program using parallel arrays. The idea is to associate a litteral string (a total of 4) throught an input dialog box to the correspondent integer (the output will be shown with a regular System.out.println).

Any help would be appreciated.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

what exactly is your problem ?

You would just have two arrays, where the indices for are the same for hte same 'pair'.

array1[0] is the string that goes with integer in array2[0]

array1[1] is the string that goes with integer in array2[1]

etc...

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.