Please write new code:
1. A Java program contains various pairs of grouping symbols, such as: - Parentheses: ( and ) -
Braces: { and } - Brackets: [ and ] Note the grouping symbols cannot overlap. For example, (a{b)}
is illegal. Write a Java program to check whether a Java source code file has correct pair of
grouping symbols. In your program, ask the user enter the name of the Java file that is checked.

Please write new code 1 A Java program contains various pa.pdf

  • 1.
    Please write newcode: 1. A Java program contains various pairs of grouping symbols, such as: - Parentheses: ( and ) - Braces: { and } - Brackets: [ and ] Note the grouping symbols cannot overlap. For example, (a{b)} is illegal. Write a Java program to check whether a Java source code file has correct pair of grouping symbols. In your program, ask the user enter the name of the Java file that is checked.