Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Well, it is not completely clear what you are doing, but if I understand you correctly, then I believe you could accomplish your purpose either by using an array of Using an array of Using a Map, you would really be creating a sparse array, as you would only insert elements where there are elements specified. Subsequently, you could have a loop that prints out which elements are (and are not) defined. > I was supposed to set the array so that the user would fill in 20 numbers for the area and i was supposed to modify the print numbers so that if the user did not fill out the 20 numbers it would just print what numbers the user inputed but i dont know how to do that. > can anyone help print only a partially filled array??
Replies: |
Sponsored Links
|