Are there any flash cards for learning the basics?

I’m good at using Google and looking up how to do things, but I suck at memorization unless I see it on a flash card and practice typing it out a bunch of times.

I just want to be able to program without looking things up. If that’s possible.

Am I going about learning Java the right way? My goal is to be able to pass an 3000 algorithm course that I’ll have to retake