My mother introduced me to Java when I was younger due to me making programs on my calculator to do my math homework for me. (Quadratic Formula: Input A, B, and C and outputs the answers, Infinite many solutions, or No solution). I continued to keep doing this with other mindless equations in Algebra, Geometry, Alg 2, and into Calculus.
(Also, if you are in the U.S. then as much flack as Java gets as a language, it is the language used for the College Board AP exam for Computer Science (https://apstudent.collegeboard.org/apcourse/ap-computer-scie...)