So i was dipping my feet into another read. And was doing an excercise.
"Use what you learned and make somthing or other"
Learned about.. variables, fields. and whatever else. So i figured "hm. ill make a pretend time zone that skips ten minited every second.
Anyways it doesnt work. And here i am

. Im not sure but after i commented out stuff and changed things around ive come to the conclusion int's cant be altered? Lmao. idk im a slow learner sry. this is my 1st week at trying to learn

. well here it is.
class Timee {
public static void main(String[] args) {
boolean Count=true;
int min = 0;
int hr = 5;
int day = 1;
int month = 1;
while(Count){
//System.out.println("Loop restarted");
min ++;
if(min >= 60);
min = 0;
hr+=1;
if(hr >= 24);
hr=0;
day+=1;
if(day==31);
month+=1;
if(month==12);
month=1;
if(hr==6){
System.out.println("Good morning! It's 6 AM!");
}
else if(hr==21){
System.out.println("Good night! It' 9 PM.");
}
try {
Thread.sleep(100);
}
catch (InterruptedException x) {
}
}
}
}
What did i learn? Let the pros help me

. lol.