Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Re: Placing user input to a array and to then display it as a string

    You assign values to slots in an array the same way if the values are int or objects:
    theArray[theIndex] = theValue; // put theValue into theArray at index: theIndex

    theArray and theValue must...
  2. Re: Placing user input to a array and to then display it as a string

    If you must use an array, and do not know how many values you will put into it, do you know a maximum number that could possibly be used? Would 2000 be more than the user would input? Or 200 or 75?...
  3. Re: Placing user input to a array and to then display it as a string

    There are lots of examples on this forum that use loops and get values from arrays.
    Also see:
    Arrays (The Java™ Tutorials > Learning the Java Language > Language Basics)
Results 1 to 3 of 3