Create a main method for the class DatabaseManager that prints out the ¯rst name, last name and age of all the people who are under 30 in the database who's ¯rst name starts with the letter 'T'.

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 AND FirstName LIKE 'T%'" , 3 ) ;
}
```

Computer Science & Information Technology

You might also like to view...

If you type true or false in a cell, Excel recognizes and evaluates this value as a condition and displays TRUE and FALSE

Indicate whether the statement is true or false

Computer Science & Information Technology

Digital cameras and voice or sound devices are supported by

A) Flash media cards B) Type 1 ExpressCard C) DIMMs D) RIMMs

Computer Science & Information Technology

Which of the following audio file formats is used by Apple for iTunes downloads??

A. ?.aiff B. ?.ra C. ?.m4p D. ?.wma

Computer Science & Information Technology

Explain why you would create a loan amortization table.

What will be an ideal response?

Computer Science & Information Technology