-2
I am developing a software, in which at a moment the system must take a value informed by the user using the Scanner class and insert it into an array and then return an array with the values typed by the user, but I can’t do the Scanner to double conversion. Follow the line of code:
double[] a = [Double.parseDouble(vlrus.nextDouble() + "")];
From Scanner to Double? wouldn’t be from Double to Int?
– user82136
Could be, why the exercise did not make it clear that it would be a specific type.
– Marcos Paulo S. Rezende
I was confused because Scanner is a function, not a primitive type
– user82136