long to int java 8
import static java.lang.Math.toIntExact;
long foo = 10L;
int bar = toIntExact(foo);
Are there any code examples left?
New code examples in category Java
import static java.lang.Math.toIntExact;
long foo = 10L;
int bar = toIntExact(foo);