![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]()
(chat, newsreader, calendar)
|
![]() |
|
Course Notes Table of Contents | Exercises JDBC Short Course Index | Online Training Index
|
Command-Line Guestbook |
Working Applet | Help Solution
|
PrerequisitesSkeleton CodeA staff member at MageLang University decided to take the latest Java class. After getting her feet wet with JDBC, she thought it would be a great idea to keep a log of student comments regarding about the various courses she taught. This exercise results in an application that tracks the comments received from the students in a three column table called comments (name, username, and comments). The program will generate a report of the comments to deliver to student government and other interested parties. To run the resulting program: java Comments name username comments You can repeat the set of three parameters as many times as you want to.
Perform the following tasks:
For update mode, use a PreparedStatement to accept groups of three parameters from the command line to insert a comment into the table. For query mode, you can use a regular Statement. Remember to use findColumn to determine which column is for which field.
|
Copyright © 1997 MageLang Institute. All Rights Reserved May-97 Copyright © 1996, 1997 Sun Microsystems Inc. All Rights Reserved |