[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 jlittel
14 minutes ago
Last post by apredovic
4 hours ago
Last post by hsipes
4 hours ago
Last post by zstrosin
2 hours ago
htc m8 question
Started by asha58
Last post by auer.jessica
2 hours ago
[Q] s4 mini
Started by mlemke
Last post by collins.garnett
1 hour ago
Last post by oda.schmidt
3 hours ago
Last post by roob.devyn
4 hours ago
Last post by btromp
53 minutes ago
Last post by rosenbaum.reanna
2 hours ago
Last post by dstoltenberg
1 hour ago
Last post by wolff.yvette
1 hour ago