You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**A new feature was introduced by JDKJREJVM 7 which allows to write numeric literals using the underscore character.
* Numeric literals are broken to enhance the readability.
* This feature enables us to separate groups of digits in numeric literals, which improves readability of code.
* For instance, if our code contains numbers with many digits, we can use an underscore character to separate digits in groups of three, similar to how we would use a punctuation mark like a comma, or a space, as a separator.**/
public class UnderscoreInNumber {
public static void main(String[] args) throws java.lang.Exception{