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