Like String A = "34000.898989"; int a =Integer.parseInt(A); String result = String.format
You have parse the string like this,After then you can remove decimals from the string See this code.
String A = "34000.898989"; double bDouble = Double.parseDouble(A); int finalA = (int)bDouble;
I hope you got my point.