error: bad operand types for binary operator '<'
if (sAlter < 18)
^
first type: java.lang.String
second type: int
This error appears in many task and I can't figure out how to fix it
package de.codegym.task.task04.task0422;
/*
18+
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
String name = reader.readLine();
String sAlter = reader.readLine();
int nAlter = Integer.parseInt(sAlter);
if (sAlter < 18)
{System.out.println("Du bist noch zu jung");}
else {System.out.println("Nischt");}
}
}