Lifelong Learning
      Reports Written In Pursuit Of Professional Diploma On IT    
 

Contents

What is Lifelong Learning

Misguided Solution

Report on Educational Technology

Learn SQL Thru Query Analyzer

SQL Test Codes

SQL Review Notes

Java Test Codes

Notes on Learning Java

TCP/IP

C++ CGI Learning Project

Windows NT Overview

Working with Red Hat Linux

Overview of JINI Networking Technology

Remote Access for VPNs

The Author

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.

Employee.txt includes a method that adds a bonus amount to annual salary. The bonus is passed as an argument to the method. It also includes a method to compute the new weekly salary based on the new annual salary. Try to modify this program by adding the capability to display both the old salary and the new salary after the bonus had been added.

Employee1.txt is one solution to to the problem posed above. It modifies Employee.txt so that both the old and the new salaries are displayed on the screen. One new variable and one new method had been added. Is your approach the same or different?

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!

 

     

Previous Article

Next Article

   
           
     

LEDAC    A Writer At Heart    My Doc Files    Optional

   
     

Copyright 2008 Aureo P. Castro Email: [email protected]

   
           
Hosted by www.Geocities.ws

1