I need to create a Java program named UpperOrLower
that asks a user to type a number
and prints "Uppercase or lowercase: true" if the unicode character with that number
is either uppercase or lowercase and "Uppercase or lowercase: false" otherwise.
import java.util.Scanner;
public class UpperOrLower {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
System.out.print("Enter an integer: ");
int value = input.nextInt();
char digit = (char) value;
boolean isUpperOrLower =
(Character.isUpperCase || Character.isLowerCase);
System.out.println("Uppercase or Lowercase: " +isUpperOrLower);
}
}
Here's what I have, I keep getting errors, and I have no idea how to fix them.