Get max integer value in Java
Description
The following code shows how to get max integer value.
Example
/*from w w w .j av a 2s. co m*/
public class Main {
public static void main(String args[]) {
int v = Integer.MAX_VALUE;
System.out.println(v);
}
}
The code above generates the following result.
Home »
Java Tutorial »
Java Data Type »
Java Tutorial »
Java Data Type »