If you want to learn Java programming, here is your perfect opportunity to take an on-line course.
This is part 1 of a series of Java courses, and will take 5 weeks to complete on-line.
I have never taken a formal programming course on-line. So, I can't advise on the effectiveness of such a course. But, I've taken non-programming-related edX courses before, and the experience was positive.
Do sign up today. The course starts on April 28.
And let us know in a comment of how you find the course.