how to convert long into int androud java code example
Example: long to int java 8
import static java.lang.Math.toIntExact;
long foo = 10L;
int bar = toIntExact(foo);
import static java.lang.Math.toIntExact;
long foo = 10L;
int bar = toIntExact(foo);