The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2001

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:

very little help needed (partially filled arrays)

Posted by Joe on February 18, 2002 at 1:51 AM

i just finished a program on arrays that you could fill in your own number arrays or have random number arrays made. the random arrays was totally complete. but i couldnt figure out one step for the fill arrays.

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.
right now if the user puts in less than 20 numbers it will print those numbers and print out all zeroes for the amount that is left.

can anyone help print only a partially filled array??



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us