File tree 2 files changed +0
-11
lines changed
src/main/java/com/thealgorithms/stacks
2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change 120
120
<Match >
121
121
<Bug pattern =" CLI_CONSTANT_LIST_INDEX" />
122
122
</Match >
123
- <Match >
124
- <Bug pattern =" BED_BOGUS_EXCEPTION_DECLARATION" />
125
- </Match >
126
123
<Match >
127
124
<Bug pattern =" CNC_COLLECTION_NAMING_CONFUSION" />
128
125
</Match >
Original file line number Diff line number Diff line change 8
8
// e.g.'
9
9
// ((a + b) + (c + d)) -> false
10
10
// (a + b) + ((c + d)) -> true
11
- import java .util .Scanner ;
12
11
import java .util .Stack ;
13
12
14
13
public final class DuplicateBrackets {
@@ -36,11 +35,4 @@ public static boolean check(String str) {
36
35
}
37
36
return false ;
38
37
}
39
-
40
- public static void main (String [] args ) throws Exception {
41
- Scanner sc = new Scanner (System .in );
42
- String str = sc .nextLine ();
43
- System .out .println (check (str ));
44
- sc .close ();
45
- }
46
38
}
You can’t perform that action at this time.
0 commit comments