CodePudding user response:
Public class Test {Public static void main (String [] args) {
Int a=1001;
String STR=Integer. ToString (a);
Strings str1=STR. Replace (" 00 ", "");
System. The out. Println (str1);
}
}
Put the number into a string, and then put the "00" replace "."
CodePudding user response:
Problem lack of conditions