New to Java game making

I’m kinda insterested to create epic Java based games but don’t know where to start off, I plan to work on a MegaMan X based engine with a few new elements for it. I’m not sure where to start coding in java and I could get books about java gaming and/or go online for java coding or whatever to learn Java and build such games.

So where I could start by coding in Java and get games up and ready to play like the main base engine tests?