Can you post the code for the method you are trying to make and explain the problems you are having doing it?
Where is the arraylist defined? The ArrayList class can be defined to hold Double...
Type: Posts; User: Norm
Can you post the code for the method you are trying to make and explain the problems you are having doing it?
Where is the arraylist defined? The ArrayList class can be defined to hold Double...
You need to decide which you want to have: int or decimals
Please explain what "notice decimals" means.
The definition of unsorted is an int array. To the right of the = should be a list of int values. The casting being done is redundant. 1.1 is a double.
Changing the (double) to (int) should work...
Why are you trying to initialize an int array with double values?
Why not define the array as double?
Do you know how to use casting? Put the cast to type in ()s
For example double=2.3 to...