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

Method Matches

BalancedParanthesis.java:18–25  ·  view source on GitHub ↗
(char a, char b)

Source from the content-addressed store, hash-verified

16 }
17
18 public static boolean Matches(char a, char b)
19 {
20 if(a=='{' && b=='}') return true;
21 if(a=='(' && b==')') return true;
22 if(a=='[' && b==']') return true;
23 return false;
24
25 }
26
27 static boolean ispar(String x)
28 {

Callers 1

isparMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected