Practice Problem

Bilbo Baggins Frodo Baggins
Bilbo Baggins (Wiki) and Frodo Baggins (Wiki)

Result:Interaction Pane:

Practice problem

Write XHTML code to produce a page with the following Java code on it:

public class Numbers {
	public static void main(String[] args) {
		for (int i = 1; i <= 1000; i++) {
			if (i > 9 && i % 10 == 0) {
				System.out.println("I like " + i + "!");
			}
		}
	}
}