Study Introduction to Programming in Java with free learning materials from MIT OpenCourseWare.
MIT lists this as undergraduate material. Check the syllabus for prerequisites and any readings or equipment you may need.
Available materials: assignments, lecture notes.
Work through the provider’s Introduction to Programming in Java material: