+ 1
Why Third consecutive input is not working ?
I use nextLine() to take input as string after immediate nextDouble() but it's not working.. why? need deep explanation.. how to solve it? https://code.sololearn.com/c3Nk5DT9YkHA/?ref=app
8 Antworten
+ 3
Rankush still string output is empty ...
read the question again( consecutive inputs )
input.close() is apart away from this ...
+ 1
https://code.sololearn.com/cTM6lki5P9Co/?ref=app
//Don't know why but getting output in this
+ 1
2147483647-->string
2,147,483,647-->int
1.79769313486231570e--->Double
//Storage capacity of variables
+ 1
https://code.sololearn.com/cYWzT0Si3l5K/?ref=app
//Getting different outputs in all. I think so it is because of the capacity of the variables. Not sure
+ 1
Input values like this -->
10
10.0 String
I think this limitation is most probably because of the need to input all the values at the same time.
+ 1
Soumik Can you please elaborate your answer?
- 1
Ratnapal Shende your problem is solved..
here you did mistake-
input.Close(); // delete this line and check and run your code
Check out this code..
https://code.sololearn.com/cBX6UgXORerX/?ref=app
- 1
Ratnapal Shende bro.. ENTER INPUT LIKE THIS --
10 45.5 HHDBDBD