Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - The topic of JAVA. Compile and run the following application, enter 12345 in the command line interface, and press enter to output the screen.
The topic of JAVA. Compile and run the following application, enter 12345 in the command line interface, and press enter to output the screen.
According to the steps, string str= bur.readLine () is to get your input 12345, which is a string type. Through Integer, parseInt(str), it is converted Into int type, that is, x= 12345, and the output is x/ 100. That is 12345/ 100, the result should be 123.45, but the int type is an integer, and the decimal point will be discarded, that is 123. Remember to adopt