Clock, where use Java and Console