MCPcopy Create free account
hub / github.com/Tiwarishashwat/InterviewCodes / opening

Method opening

BalancedParanthesis.java:4–16  ·  view source on GitHub ↗
(char ch)

Source from the content-addressed store, hash-verified

2{
3 //Function to check if brackets are balanced or not.
4 public static boolean opening(char ch)
5 {
6 switch(ch)
7 {
8 case '{':
9 return true;
10 case '(':
11 return true;
12 case '[':
13 return true;
14 }
15 return false;
16 }
17
18 public static boolean Matches(char a, char b)
19 {

Callers 1

isparMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected