Welcome to the Ranch, Andrei!
While he basic
Java systems has become a lot more extensive in recent years, I think probably that the Quartz Scheduler might be better suited. It's a third-party library that can is very flexible in dealing with recurring events and events on a fixed schedule. If you're using the Spring Framework, it has a scheduling module, also, including the ability for Quartz to be managed by Spring.
Also, I'm assuming that your app will be operating 24 hours a day. If you actually just need to run a Java program at a given time and/or on given days, you can use the
cron facility that's standard with Unix/Linux or the Windows Scheduler on Windows.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.