Snippets tagged “long-to-int”
1 snippet uses this tag.
- How can I convert a long to int in Java?Java
To convert a long value to an int value in Java, you can use the intValue method of the java.lang.Long class. This method returns the value of the specified long as an int.