Initial java code.