Code example for Scanner

Methods: nextInt, useDelimiter

0
		this.location = location;
		this.tags = tags;
		isCompleted = false;
 
		//parse date String for Date information 
		Scanner scan = new Scanner(date);
		scan.useDelimiter("/");
 
		this.date = new Date(scan.nextInt(),scan.nextInt(),scan.nextInt());
	} 
 
	/** 
	 * Marks this task as completed 
	 */ 
	public void complete(){ 
		isCompleted = true;
	} 
 
	public void undoComplete(){ 
		isCompleted = false;
	}