hello
what is the diference between roll() and add() in java ?
/*this the class that i wanted to see if i can use add in place of roll . and thank you */
mydate.roll(Calendar.MINUTE, true);
int nextminutes = mydate.get(Calendar.MINUTE);
int nexttseconds = mydate.get(Calendar.SECOND);
while(count<1000000){
System.out.println(sentence);
GregorianCalendar now = new GregorianCalendar();
if(mydate.get(Calendar.MINUTE)>= nextminutes){
break;
}
}
count++;
System.out.println("i wrote the sentence"+count+"time.");
}
}