+ 1
How to convert double or float to integer in java?
2 Respostas
+ 5
Type casting:
double d = 3.5;
int i = (int) d;
There is a lesson about it in Java course.
https://www.sololearn.com/learn/Java/2168/
+ 3
Mohsin Uddin Search about type casting in Google. You may find best results.