Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Paralax13818yWouldn't today.isBirthday() make more sense? Also please add comments, I had no idea what you were trying to achieve!
-StackOverflow
Happy birthday ;) -
!rant
System.out.println(age);
if (birthday.isToday())
age++;
System.out.println(age);
Output:
17
18
undefined
🎂