I have no idea why this doesn't work. Please help, I am new to java
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("what is your first number ");
String firstNum = scanner.nextLine();
System.out.println("what is your second number ");
String secondNum = scanner.nextLine();
System.out.println("what is your Third number ");
String thirdNum = scanner.nextLine();
if (firstNum > secondNum) {
System.out.println("the firs number is bigger than the firs number");