How can I convert a long to int in Java?
long x = 3; int y = (int) x;
but that assumes that the long can be represented as an int, you do know the difference between the two?
long
int