Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

long to int java 8

import static java.lang.Math.toIntExact;

long foo = 10L;
int bar = toIntExact(foo);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #long #int #java
ADD COMMENT
Topic
Name
3+5 =