Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to convert double type into int type in java
How to convert double type into int type in java
Convert a double into an integer through math class. If it is a type to be converted, it can be achieved by forced type conversion, as shown in the following figure:

Knowledge expansion:

Java is an object-oriented programming language, which not only absorbs the advantages of C++ language, but also abandons the concepts of multiple inheritance and pointers that are difficult to understand in C++, so Java language has two characteristics: powerful function and simple use. As the representative of static object-oriented programming language, Java language perfectly realizes the object-oriented theory and allows programmers to carry out complex programming in an elegant way of thinking.