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...
Type: Posts; User: dicdic
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...
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...
I and others can see what the problems with you code. but please give a specific questions. please specify what the problem is.