Can you make another scanner bubble pop up in Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can you make another scanner bubble pop up in Java?

So I gave myself a project to work on in Java and to do what I need, I need a new scanner to pop up if a certain condition is met, but, it won't, and I'm starting to think it that it can't make another bubble pop up ever. So I just want to know if it can, and possibly how to make another bubble pop up. Edit: when I say "bubble" I mean that box that pops up when you use the playground, and it needs input.

15th Mar 2018, 6:14 PM
Nathan Newell
Nathan Newell - avatar
2 Answers
+ 10
1) U cannot take inputs at different time in SL playground , U take all input in the beginning only 2) U need to make only 1 object of Scanner class 3) Using same/different methods of taking user input ... U can take multiple inputs https://www.sololearn.com/Discuss/1034605/?ref=app https://www.sololearn.com/Discuss/1102485/?ref=app
15th Mar 2018, 6:19 PM
Gaurav Agrawal
Gaurav Agrawal - avatar