basic java code