Well, the ting about java is its sometimes difficult trying to figure out its system of speach.
Take commanglocks for example, they are much easier to use being that there language is simple. (Summon this armor stand here with x items on its head in x and y position and detect for a player comming near it, if the player gets within X blocks of the armor stand kill him)
Where as java i dont know its system of operation, i can figure out if its declaring things but i have no idea why and , what order its supposed to be in, and will it take simle commands like if i were to tell it to give me armor after i shift at a iron block then destroy the block, can it take commands that simple without adding a bunch of other random code?
Well the first thing I hope you realize is that you really shouldn't compare python and java, they are quite different outside of syntax. Python is meant to not include things like static declarations and be very verbose. Python is suppose to be very concise, so to you adding things like variable declarations, method declarations, and class declarations when in Java, a much bulkier language by nature, will appear like a bunch of "other random code" but it is a very important and required part of the language. You'll need to just get use to it.