How to get max value of an integer in Java

1 Answer

0 votes
public class MyClass {
    public static void main(String args[]) {
        int max = Integer.MAX_VALUE;
        
        System.out.println(max);
    }
}




/*
run:

2147483647

*/

 



answered Apr 3, 2016 by avibootz
edited Nov 22, 2023 by avibootz

Related questions

4 answers 381 views
1 answer 279 views
1 answer 253 views
1 answer 212 views
212 views asked Nov 5, 2021 by avibootz
1 answer 204 views
1 answer 207 views
1 answer 217 views
...