class SimpleWhile {
    public static void main(String[] args) {
	int i = 1;
	while (i <= 10) {
	    System.out.println(i);
	    i = i + 1;
	}
    }
}

Add a regular while loop that should work without advanced features.