Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - If you want to define a long integer in java, how?
If you want to define a long integer in java, how?
I know what you mean. In java, the integer to the right of the equal sign defaults to type int. If long

A =111111111.

You need to add an L after the number to indicate that the number is of type long. It is best to use capital letters, lest others think it is the number 1.