Some random and almost useless Java code