I am tring to do if()
for String[] args
to check if the string is between 1 to 5
here is my code:
public static void main(String[] args) {
System.out.println(args[0] == "1" || args[0] == "2" || args[0] == "3" || args[0] == "4" || args[0] == "5");
}
the code is returning false when I type anything.
thx for help