just java code