| Lifelong Learning | ||||||
| Reports Written In Pursuit Of Professional Diploma On IT | ||||||
|
Contents Report on Educational Technology |
Java Test Codes Practice coding with Java is one sure way of learning the language more deeply. Here are my practice codes which you may want to take a look at. Citizen.txt is my first attempt to test Java language programming. The program creates a new class, specify a constructor for the class, and defines a new method to display the attributes of an object of the class. In the main method, a new object is instantiated and the display method is called.
Resident.txt attempts to show
how a new class inherits the attributes and methods of an old class by
using the extends keyword in the class definition. the new class adds a
new attribute and provides for its own display method for object
variables. It also calls and executes the display method of the parent
class. Collection.txt shows how to make use of attributes and methods of a collection object from another class. Data structure and methods of a merchandise inventory is used for order processing. Validate.txt shows GUI based data entry with simple validation using swing components. TabbbedPane.txt shows a tabbed pane containing two panels. TabbedPane1.txt is a modification of TabbedPane.txt with the two panels having limited processing capabilities like validation and printing of data. OrderDetail.txt is an order processing swing applet. Orders.txt is a much improved order processing swing applet. ExJFrame.txt shows how to use the try-catch block to check for exceptional conditions during program execution. It uses JOptionPane to display error messages. ExApplet.txt is the applet version of ExJFrame.txt. It uses the applet status bar to display the error messages. PictureViewer.txt is a java slide viewer using thread to display a set of images continuously. DateTest.txt is a test applet that shows the current time continuously on the status bar by using a thread. Happy Coding! |
|
||||
|
Copyright 2008 Aureo P. Castro Email: [email protected] |
||||||