+ 1
How can I add ! in this statement
https://code.sololearn.com/cDxYDZTwLcSW/?ref=app public class Program { public static void main(String[] args) { int age = 25; int money = 100; if (!(age > 18 || money > 500)) { System.out.println("Welcome!"); } else { System.out.println("Yo bro"); } } } } // Please help I want to know why I am getting error here when I am adding (not !) in this code.
2 Antworten
+ 11
You have an extra brace at the end, just get rid of it.
+ 3
you are dope bro very best answer you are the best its fixed now. you are awesome.