take only first decimal in an integer java code example
Example 1: how remove decimal points in java
String truncated = String.valueOf((int) doubleValue);
Example 2: java format double no decimal places
int x = (int) y
String truncated = String.valueOf((int) doubleValue);
int x = (int) y