if not java

Solutions on MaxInterview for if not java by the best coders in the world

showing results for - "if not java"
Justine
02 Mar 2019
1boolean state = false;
2
3if (state != true) { //Boolean is false.
4  System.out.println("No");
5} else { //Boolean is true
6  System.out.println("Yes");
7}