Well, if you want to learn you should start by learning basic java.
Thenewboston has some nice and simple tutorials that I would recommend. It's very dumbed down and some may find them boring, but none the less useful.
After having a decent grasp on java you should look at some minecraft related tutorials and go from there.