I have wasted all weekend trying to sort this out. If anyone can help i'd so appreciate it.
This is suppossed to be a leap year calculator. The values of the variables were given.
I thought I had worked it out all right but my if (and, or) staement keeps getting a error " bad operand types for binary operator ||"
I promise to read the FAQs when I have more time,
In your program line: you've got one too few "=" in your R3 comparison, so it is actually an assignment. This is a fairly common newbie error. One nice thing about Java is that it will catch this kind of error at compile time. In a language like C or C++, the assignment R3 = 0 will be treated logically as false no matter what value R3 had going into the expression. (It looks like you may have some other syntax errors in your code as well, but one at a time!)
By the way, one of the things the FAQ may mention is that you should surround your program excerpts in code brackets (you can use the button at the top of the message editor). That will display your code with formatting for easier reading.
Thanks guys but the missing = was just a silly typo on my part.
The message still comes up "illegal start of expression, bad operand types for binary operator ||, first type int, second type boolean"
I just don't get this as all my varaibles are int, the operators are boolean, but yeah so?
will read FAQ in morning