public class Tester { public void validate() { int i = 0; while (++i < 3) { try { wait(); } catch (InterruptedException e) { e.printStackTrace(); } System.out.print(i); } } public static void main(String[] args) { new Tester().validate(); } }
public void validate() {
int i = 0;
while (++i < 3) {
try {
wait();
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.print(i);
public static void main(String[] args) {
new Tester().validate();
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.