Start method at the begin of the month in java
问题 for a school project I have to calculate the 'hotItem' of a shoppingbag (which is the most popular item of that month). But I don't know how to call the method (getHotItem) every first day of the month. I've already did some research and found out about Timer and ScheduleExpressions, but from what I learned it is mostly used for a fixed time interval (which is not the case with months of 30 or 31days) Is there a way to call this method at a specific date in the future(every 1st of the month)?