-
Notifications
You must be signed in to change notification settings - Fork 0
/
OneHundredPoints.java
28 lines (26 loc) · 1.03 KB
/
OneHundredPoints.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import java.util.Scanner;
public class OneHundredPoints
{
public static void main (String[]args)
{
String firstword;
String secondword;
Scanner input = new Scanner(System.in);
System.out.print("First Word: ");
firstword = input.nextLine();
System.out.print("Second Word: ");
secondword = input.nextLine();
firstword = firstword.toUpperCase();
System.out.println("First Word Uppercase: " +firstword);
secondword = secondword.toUpperCase();
System.out.println("Second Word Uppercase: " +secondword);
firstword = firstword.toLowerCase();
System.out.println("First Word Lowercase: " +firstword);
secondword = secondword.toLowerCase();
System.out.println("Second Word Lowercase: " +secondword);
if(firstword.equals(secondword))
System.out.println(firstword + " is equal to " + secondword);
else
System.out.println(firstword + " is not equal to " + secondword);
}
}