0

In java give the input :LOKESH KUMAR and print the output like this "LOKESH KUMAR" HOW TO GET THIS

How do get this output

12th Feb 2021, 8:13 AM
Lokesh
Lokesh - avatar
8 odpowiedzi
+ 5
First Show your attempts!
12th Feb 2021, 12:07 PM
Abhiyantā
Abhiyantā - avatar
+ 2
Hello , take a look at this https://www.sololearn.com/learn/Java/2220/?ref=app You could have google it as well.
12th Feb 2021, 8:25 AM
Abhay
Abhay - avatar
+ 2
a = input("enter string :") b = (a.lower()) print(f'"{b}"') i hope this may help you !
12th Feb 2021, 7:32 PM
Hemant Kosrekar
Hemant Kosrekar - avatar
+ 2
It's correct! Just do Same with taking input!
13th Feb 2021, 1:27 AM
Abhiyantā
Abhiyantā - avatar
+ 1
Import java.util.Scanner; Class program{ Public static void main(String [] args){ Scanner input =new Scanner(System.in); String a=input.nextLine(); While(a!="LOKESH KUMAR"){ a=input.nextLine(); } System.out.println(a); } }
12th Feb 2021, 8:27 AM
Nassera
Nassera - avatar
+ 1
System.out.println("\"lokesh kumar\""); This is working
13th Feb 2021, 1:08 AM
Lokesh
Lokesh - avatar
+ 1
Yeah .
13th Feb 2021, 1:33 AM
Lokesh
Lokesh - avatar
0
How to get the output ="lokesh kumar"
12th Feb 2021, 8:38 AM
Lokesh
Lokesh - avatar