Code example for Scanner

Methods: nextInt, useDelimiter

0
            dayOfMonth = 11;
            return; 
    	} 
         
    	String birthdate = getPersistedString("11-11-2000");
    	Scanner scan = new Scanner(birthdate);
    	scan.useDelimiter("-");
    	dayOfMonth = scan.nextInt();
    	month = scan.nextInt()+1;
    	year = scan.nextInt();
    } 
     
    @Override 
    public CharSequence getSummary(){
		return dayOfMonth + "-" + (month + 1) + "-" + year ;
    	 
    } 
}