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 ) ;
}
You might also like to view...
In Microsoft Word 2016, the Switch Windows button dropdown displays _____.?
A. ?Word 2016 documents in outline form, where content appears in bulleted points B. ?two sections of the current Word 2016 document at the same time C. ?all the open Word 2016 documents D. ?a list of macros one can work with in Word 2016 document
A chart legend identifies the colors or patterns assigned to each data series in a chart
Indicate whether the statement is true or false
Suppose that men's shirts have an average neck size of in., with a standard deviation of
in. Assume that neck sizes are normally distributed.What percent of men have a neck size of 14 in. or larger? Round your answer to one decimal place.__________ %
Fill in the blank(s) with the appropriate word(s).
What are the two most common cable fire ratings?
What will be an ideal response?