Java Applets for data structure