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 114
114
<Match >
115
115
<Bug pattern =" CLI_CONSTANT_LIST_INDEX" />
116
116
</Match >
117
- <Match >
118
- <Bug pattern =" BED_BOGUS_EXCEPTION_DECLARATION" />
119
- </Match >
120
117
<Match >
121
118
<Bug pattern =" CNC_COLLECTION_NAMING_CONFUSION" />
122
119
</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