Kindly please anyone who knows is the any method to know
what is the limit of length of a counter?
Depsite from initiliazed variable''s types (either int, byte, long etc)
is there any way for me to check my variable (counter)''s max lenght?
Please share the info with me...
Thank you in advance.
解决方案
Kindly please anyone who knows is the any method to know
what is the limit of length of a counter?
Depsite from initiliazed variable''s types (either int, byte, long etc)
is there any way for me to check my variable (counter)''s max lenght?
Please share the info with me...
Thank you in advance.
What type is your counter ?
What type is your counter ?
Integer type.
Is there any method that I could check it despite initialize int type the max would be 32 lenght?
Integer type.
Is there any method that I could check it despite initialize int type the max would be 32 lenght?
I''m not sure I got you right but maximum value an int can take is (2^31) - 1.
You can get this using Integer.MAX_VALUE