Hi. I've just started learning java. Tried compiling and got this error "bad operand types for binary operator || "
here's my code:
if ((height = 0) || (width = 0)) {
System.out.println("Invalid values");
}
else {
System.out.println("Rectangle of width"+ width + "and height" + height + "is created");
}
Can't seem to figure out what's wrong.