Can I give if statments in user input | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can I give if statments in user input

12th Jun 2020, 3:54 AM
Soham Vaidya
Soham Vaidya - avatar
4 Answers
0
you can, but the entered characters remain on the screen (on desktop java)
12th Jun 2020, 10:30 AM
zemiak
+ 2
You want to insert code on code playground? In general, this is possible, but I'd guess quite difficult to realize using Java (here). Other languages are more flexible to execute external code.
12th Jun 2020, 3:59 AM
Sandra Meyer
Sandra Meyer - avatar
+ 1
I want to say that , user gives an input. If user's input is = x Print : ____ Else if user's input is y Print : ______
12th Jun 2020, 5:31 AM
Soham Vaidya
Soham Vaidya - avatar
0
Can i do that
12th Jun 2020, 5:31 AM
Soham Vaidya
Soham Vaidya - avatar