+ 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.

5th Jan 2018, 8:49 AM
Robin
Robin - avatar
2 Respostas
+ 11
You have an extra brace at the end, just get rid of it.
5th Jan 2018, 9:08 AM
Dev
Dev - avatar
+ 3
you are dope bro very best answer you are the best its fixed now. you are awesome.
5th Jan 2018, 9:22 AM
Robin
Robin - avatar