java show output removing all number after decimal code example Example: java format double no decimal places int x = (int) y