Yeah, you need to tell it what to do. That's what programming is. If you don't know what to do, there's no point. Making simple programs though will give you a grasp of the basics. Java is a lot harder to learn than moddamge though, so I'd start with moddamge