Java, Console version