TaskList.java
//  Toggles tasks as completed or not

Toggles tasks as completed or not
Toggles tasks as completed or not
public static void toggleComplete(int taskNumber) {
Boolean complete = Task.getComplete(taskList.get(taskNumber-1));
		if (complete == false) {
			taskList.get(taskNumber-1).setComplete(true);
		} else {
			taskList.get(taskNumber-1).setComplete(false);
		}
	}
public static void toggleComplete ( int taskNumber ) { Boolean complete = Task . getComplete ( taskList . get ( taskNumber - 1 ) ) ; if ( complete == false ) { taskList . get ( taskNumber - 1 ) . setComplete ( true ) ; } else { taskList . get ( taskNumber - 1 ) . setComplete ( false ) ; } }
Toggles tasks as completed or not
Toggles tasks as completed or not