Answers for "should i avoid conversion between int and integer java"

3

long to int java 8

import static java.lang.Math.toIntExact;

long foo = 10L;
int bar = toIntExact(foo);
Posted by: Guest on April-03-2020

Code answers related to "should i avoid conversion between int and integer java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language