I'm making a program in java and its all going great until I wanted to make a while loop that is like this:
while(String.notEqual(Something)){...}
I know there is no such thins as notEqual but is there something similar?
Use the ! syntax. eg
if (!"ABC".equals("XYZ"))
{
// do something
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With