java int without after the dot code example Example: java format double no decimal places int x = (int) y