+ 2
Need help with some java codding
Hello, I have just started learning java and I am new to all the coding stuff. I wrote a java program just for practicing a little bit. https://code.sololearn.com/cKZp5EI8toiE/?ref=app I was wondering how to make a loop so that the program won't stop just after a single user command. I tried looping using while(true){...........} but it created infinite number of outputs. So anybody could please help me đđđ
3 Answers
+ 4
hi Antarip
is this code what you want?
https://code.sololearn.com/cjVNFRCwAIvH/?ref=app
i hope this helps
+ 1
Thanks
đđđ
Yes, this is what I wanted.
+ 1
A better way to do it so you can write the whole word for example
''good morning''
https://code.sololearn.com/cFMJU96gs0Fi/#java