undo last commit
#this will preserve changes done to your files
git reset --soft HEAD~1
#this will get rid of the commit and the changes done to the files
$ git reset --hard HEAD~1
undo last commit
#this will preserve changes done to your files
git reset --soft HEAD~1
#this will get rid of the commit and the changes done to the files
$ git reset --hard HEAD~1
java age from date
LocalDate today = LocalDate.now();
LocalDate birthday = LocalDate.of(1987, 09, 24);
Period period = Period.between(birthday, today);
//Now access the values as below
System.out.println(period.getDays());
System.out.println(period.getMonths());
System.out.println(period.getYears());
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us