where is my fault?
public class Teenagers
public static void main(String args)
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?
Re: where is my fault?
Please copy the full text of the error message and paste it here, not just one line of it.
Please edit your post and wrap your code with code tags:
<YOUR CODE HERE>
to get highlighting and preserve formatting.
Note: || is a boolean operator that takes two boolean operands.
What data types does the code use? What are a and b?