public static void main(String[] args) { boolean flag = false; int x = 0; do { x++; } while (flag=!flag); System.out.println(x); }
boolean flag = false;
int x = 0;
do {
x++;
} while (flag=!flag);
System.out.println(x);
}
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.