public class Teenagers
{
public static void main(String[] args)
{
int a=Integer.parseInt("args[0]");
int b=Integer.parseInt("args[1]");
boolean teen_a,teen_b;
teen_a=(a>=13) && (a<=19);
teen_b=(b>=13) && (b<=19);
System.out.println((a||b) && (a!=b));
}
}
i have 1 error on the 10 line! and the error is ''||'' ! i learned that this symbol is ''or'' but why is it not working?