java stuff

probably won't do much in java, since many problems have a low memory
limit