-5

if I want to set the max value for the variable and its from (double) we say: double.MAX_VALUE; but how can I do that with a variable from ( int ) I hope you understand what I mean;

1 Answers1

1

The property you're looking for is Integer.MAX_VALUE, which holds the maximum value a java int can have, that is 231 - 1.

Federico klez Culloca
  • 26,308
  • 17
  • 56
  • 95