Super@WUDOL MINGW64 ~/Desktop/cse1001/lab15 $ java Strings Enter a string: HELLO Enter a string: hello String are the same! Super@WUDOL MINGW64 ~/Desktop/cse1001/lab15 $ java Strings Enter a string: hello Enter a string: world String are different!

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 12E
icon
Related questions
Question
100%
I want to write a program called Strings.java that prompts the user to enter a string (no spaces) twice. Then compare if the strings are the same, ignoring case considerations. Output should be like picture attached
Super@WUDOL MINGW64 ~/Desktop/cse1001/lab15
$ java Strings
Enter a string: HELLO
Enter a string: hello
String are the same!
Super@WUDOL MINGW64 ~/Desktop/cse1001/lab15
$ java Strings
Enter a string: hello
Enter a string: world
String are different!
Transcribed Image Text:Super@WUDOL MINGW64 ~/Desktop/cse1001/lab15 $ java Strings Enter a string: HELLO Enter a string: hello String are the same! Super@WUDOL MINGW64 ~/Desktop/cse1001/lab15 $ java Strings Enter a string: hello Enter a string: world String are different!
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT