class Test { public void test(int x, int y) { while (x < 10) { x++; if (x == y) { System.out.println(); break; } } System.out.println(); } }