If you want to learn how to program in Java and you are an absolute beginner at programming, consider this course by John Purcell. It is absolutely free!
I am enrolled in it and so far, it’s organized and well done.
You may need a Udemy account before enrolling but if you already do, then this shouldn’t be an issue. If you do not, then registration takes minutes.
The course can be accessed here: Link