Create a main method for the class DatabaseManager that prints out the ¯rst name, last name and age of all the people who are over 30 in the database or who's last name is \Guzdial".
What will be an ideal response?
/* main f o r t e s t i n g */
public s tat ic void main ( St r ing [ ] args )
{
// c r e a t e the databas e manager f o r an Access databas e
DatabaseManager dbManager =
new DatabaseManager ( "sun . jdbc . odbc . JdbcOdbcDriver " ,
" jdbc : odbc : per son " ) ;
// t e s t a query
dbManager . tes tQuery ( " S e l e c t FirstName , LastName , Age From Person " +
"Where Age > 30 OR LastName='Guzdial ' " , 3 ) ;
}
Computer Science & Information Technology
You might also like to view...
The Clear All Formatting button is located on the ________ tab
A) Format B) Home C) File D) View
Computer Science & Information Technology
The first step in solving a problem using object-oriented design is to identify objects.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology