Answers for "how to convert int to long in java"

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
0

int to long java

Long l= new Long(i); //first way
Long l2=Long.valueOf(i); //second way
Posted by: Guest on June-22-2020
0

int to long java

(long) intValue;
Posted by: Guest on April-29-2021

Code answers related to "how to convert int to long in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language