Java Convert Integer to Long
摘要: In Java, we can use Long.valueOf() to convert an Integer to a Long
In Java, we can use Long.valueOf() to convert an Integer to a Long
TestInteger.java
package com.mkyong.example; public class TestInteger { public static void main(String[] args) { Integer num = 1; System.out.println(num); // 1 Long numInLong = Long.valueOf(num); System.out.println(numInLong); // 1
上一篇:
java.sql.SQLException: The server time zone value xx time is unrecognized
下一篇: Java 8 Parallel Streams Examples
下一篇: Java 8 Parallel Streams Examples