I'm writing a program and my if statement doesn't give the expected output. I searched and found a tutorial on java if statements and copied the code on the tutorial into eclipse.
int value = 1
if (value == 3); {
System.out.println("hello world")
}
The problem is whatever I change the value to, the system still outputs "hello world". It doesn't make much sense to me I've done much more complicated programs in the past. Is there something stupid that I'm missing? Thanks Brad. ,