Search:

Type: Posts; User: dicdic

Search: Search took 0.11 seconds.

  1. Re: Creating a scanner and putting input into arrays.

    yes, you checked it, but the problem is when adding an element to your intList, input is String. try to parse it in int. or other method
    intList.add(input); - that was the problem, adding an element...
  2. Re: Creating a scanner and putting input into arrays.

    it is because the list intList was generic into Integer object only. therefore, it will accept Integer object or int primitive type (because of auto boxing I guess). and what you did in this...
  3. Re: Creating a scanner and putting input into arrays.

    I and others can see what the problems with you code. but please give a specific questions. please specify what the problem is.
Results 1 to 3 of 3