Please someboby run my code in your pc. Check if it's working or not🙄 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

29th Nov 2021, 8:51 AM
Raisun Lakra
14 Answers
+ 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
29th Nov 2021, 11:53 AM
Rishi
Rishi - avatar
+ 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
29th Nov 2021, 9:09 AM
Rishi
Rishi - avatar
+ 3
It works if you want to ask again to entre the name do it in a loop 🔁
29th Nov 2021, 4:49 PM
Abdelkader Chhaibi
Abdelkader Chhaibi - avatar
+ 2
29th Nov 2021, 11:57 AM
Raisun Lakra
+ 2
Rishi thnks
29th Nov 2021, 11:58 AM
Raisun Lakra
+ 2
raisun lakra happy to help :)
29th Nov 2021, 12:00 PM
Rishi
Rishi - avatar
+ 2
Mekr up code publice
30th Nov 2021, 11:36 AM
Olimjon Sharipov
Olimjon Sharipov - avatar
30th Nov 2021, 2:17 PM
Raisun Lakra
+ 1
Java is a language whose we can write ✍️ once & take output any platform ( platform Independent) https://www.sololearn.com/learning/2131/
29th Nov 2021, 9:39 AM
Sâñtôsh
Sâñtôsh - avatar
+ 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
29th Nov 2021, 11:30 AM
Raisun Lakra
+ 1
Rishi code?? Make ur code public
29th Nov 2021, 11:55 AM
Raisun Lakra
+ 1
Rishi where is ur code
29th Nov 2021, 11:56 AM
Raisun Lakra
+ 1
raisun lakra yeah I was working on it. Now I edited my answer with a linking to my code
29th Nov 2021, 11:57 AM
Rishi
Rishi - avatar
+ 1
Piyush Yadwanshi no advertising here, advertise whatever you want in your personal feed, discussion forum is only for questions and answers
14th Jan 2022, 2:16 AM
Rishi
Rishi - avatar