0

Help me what did i do wrong it doesnt compile...

i cant write my whole code but... Scanner input = new Scanner(System.in); System.out.println("Type in radius for cylinder"); radius= inputnextdouble(); and it said cant find symbol radius=input.nex... ^ what do i do?

16th Jun 2018, 8:44 AM
Binyam Amarebeh
Binyam Amarebeh - avatar
5 Respuestas
16th Jun 2018, 9:05 AM
‎ ‏‏‎Anonymous Guy
+ 2
radius needs a type, like input has it (Scanner). Something like Double radius = input.nextDouble();
16th Jun 2018, 8:58 AM
Schindlabua
Schindlabua - avatar
+ 1
tnx very much
16th Jun 2018, 9:07 AM
Binyam Amarebeh
Binyam Amarebeh - avatar
16th Jun 2018, 8:50 AM
Binyam Amarebeh
Binyam Amarebeh - avatar
0
still dont work it says radius is already defined😕
16th Jun 2018, 9:03 AM
Binyam Amarebeh
Binyam Amarebeh - avatar