Please someboby run my code in your pc. Check if it's working or not🙄 | Sololearn: Learn to code for FREE!

+2

Please someboby run my code in your pc. Check if it's working or not🙄

Java code to take input name until you enter a string or name https://code.sololearn.com/cxKRM1on5kPw/?ref=app

11/29/2021 8:51:13 AM

raisun lakra

16 Answers

New Answer

+3

raisun lakra no it doesn't ask again to enter name. It takes the newline and stores it in the string. Do you want to ask for name again if the user only gives an enter? If yes, the following code does this. Take a look at it https://code.sololearn.com/cFyxX3v7qgnX/?ref=app

+4

It works fine, the output is as below Enter your name Rishi Name :Rishi [Program finished] If you are in Android, use Jvdroid, it's the best Java compiler for Android as far as I know

+3

It works if you want to ask again to entre the name do it in a loop 🔁

+3

Channel name

+3

Channel name Code Masterominal

+2

Rishi ok

+2

Rishi thnks

+2

raisun lakra happy to help :)

+2

Mekr up code publice

+2

Olimjon Sharipov I build it again https://code.sololearn.com/czr0u8ORM6Jw/?ref=app

+1

Java is a language whose we can write ✍️ once & take output any platform ( platform Independent) https://www.sololearn.com/learning/2131/

+1

Rishi run it again and do not enter name. Just press enter without typing any character. Let me know if it again ask u to enter name

+1

Rishi code?? Make ur code public

+1

Rishi where is ur code

+1

raisun lakra yeah I was working on it. Now I edited my answer with a linking to my code

+1

Piyush Yadwanshi no advertising here, advertise whatever you want in your personal feed, discussion forum is only for questions and answers