Answers for "java parse long to int"

4

java long to int

public class LongToIntExample2{
      
    	public static void main(String args[]){
          
        	Long l= new Long(10);
        	int i=l.intValue();
        	System.out.println(i);
    	
        }
    }
Posted by: Guest on November-21-2020
1

java long to int

long foo = 10L;
int bar = (int) foo;
Posted by: Guest on August-14-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language