Search:

Type: Posts; User: Cornix

Search: Search took 0.16 seconds.

  1. Replies
    7
    Views
    1,253

    Re: nextLine().split(",") not work correctly

    Could you show us your code right now, both for populating the array and for printing the result?
    It would also be useful if you could show us the output and the expected output.

    Until then I can...
  2. Replies
    7
    Views
    1,253

    Re: nextLine().split(",") not work correctly

    Well, that error makes a lot of sense.
    Look at your code, you declare an array with a size of 10.

    But you try to populate it with a while-loop that runs for as long as your scanner can read more...
  3. Replies
    7
    Views
    1,253

    Re: nextLine().split(",") not work correctly

    You can use main as a name for any variable or method. You can also declare several main methods in your code.
    There is absolutely no problem with that.

    @saeedeh:
    I do not see any critical...
Results 1 to 3 of 3