submissions/reusable/uesbecketal/tasks/solutions/task4solution.java
/**
	 * Please write this method to return the Table object student with an entry
	 * changed. The entry for the student with the first name "Herbert" and the
	 * last name "Hauser" should be changed so that the grade is now "A".
	 * 
	 * Table information:
	 * 
	 * - students - 
	 * 
	 * id (int) | firstname (String) | lastname (String) | grade
	 * (String) | year (int) | class (String)
	 * 
	 * Use the technique shown to you in the samples given
	 * 
	 */
Please write this method to return the Table object student with an entry
changed.

Table information.

- students



Use the technique shown to you in the samples given
Please write this method to return the Table object student with an entry changed . Table information . - students Use the technique shown to you in the samples given
public Table queryB(Table students) throws Exception {
		Query q = new Query();
		q.Prepare("UPDATE students SET grade = 'A' "+
			"WHERE firstname = 'Herbert' AND lastname = 'Hauser'");
		Table r = students.Search(q);
		return r;
	}
public Table queryB ( Table students ) throws Exception { Query q = new Query ( ) ; q . Prepare ( "UPDATE students SET grade = 'A' " + "WHERE firstname = 'Herbert' AND lastname = 'Hauser'" ) ; Table r = students . Search ( q ) ; return r ; }
Please write this method to return the Table object student with an entry
 changed.
Please write this method to return the Table object student with an entry changed .