0

After i return all the values in inputstream,what would inputstream be?empty or something like null?

before i ask user to input another string,i'm sure i have already return the former value of integer.So,i supposed the inputstream to be empty.however,when asking user to input string,i found that i need to write "scanner.nextLine" first.Thus,i guess there must be something existing after i return all the values in inputstream. hope someone can explain this. if you have any question about my statement,plz tell me and i will explain again. thanks!

1st Nov 2017, 3:04 PM
YuHai
YuHai - avatar
1 Resposta
+ 16
It would be easier to explain what happens if you published and linked the code your talking about ;)
7th Nov 2017, 6:29 PM
Tashi N
Tashi N - avatar