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;
            Asked
            
        
        
            Active
            
        
            Viewed 2,055 times
        
    -5
            
            
        - 
                    4Guess what: `Integer.MAX_VALUE` exists as well. – Federico klez Culloca Jun 08 '20 at 13:44
- 
                    thank you very very much, I thought:( int.MAX_VALUE ); what a stupid mistake ♂️ – mahermosly Jun 08 '20 at 13:47
- 
                    Does this answer your question? [max value of integer](https://stackoverflow.com/questions/15004944/max-value-of-integer) – Valdrinium Jun 08 '20 at 15:25
1 Answers
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
- 
                    I couldn't find a duplicate. If someone does find one, please let me know. I'll happily delete this. – Federico klez Culloca Jun 08 '20 at 14:31
