Search:

Type: Posts; User: Zaphod_b

Search: Search took 0.14 seconds.

  1. Re: advice needed on storing string into arraylist and printing it out.

    You could, maybe, use nextLine() instead of next().

    Try the following in your while loop and see what happens when you press 'Enter' and nothing else when prompted:



    do {
    ...
  2. Re: advice needed on storing string into arraylist and printing it out.

    It works for me. Output of a run from a command line:

    enter string:
    Four
    enter string:
    score
    enter string:
    and
    enter string:
    seven
Results 1 to 2 of 2