[Q] Switch loop problem. Help needed.

So I'm currently learning java using the book: Java A Beginners Guide by Herbert Schildt.
I cant apply my knowledge of the switch to modify this program.
What i need is that the program runs the same but i can press q to stop the program and it will continue in a loop otherwise. repeating the same process i.e displaying the characters entered until q is pressed.
How do i do it?
I think i need to make use of do and while but no idea how to apply those in this case.
Please help.


Also i would appreciate it if someone could tell me when can i start learning android application development.

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by jaylen.zemlak
1 hour ago
Last post by fdach
2 hours ago
Last post by pdaugherty
2 hours ago
[Q] whats |op|?
Started by pferry
Last post by cecil37
2 hours ago
Last post by pmertz
2 hours ago
Last post by sean.bartoletti
1 hour ago
Development Q's
Started by atoy
Last post by daniel.evelyn
2 hours ago
Last post by umarvin
1 hour ago
Last post by ellsworth12
44 minutes ago
Last post by jamar.casper
1 hour ago