public class ParenthesisMatcher extends Object
| Constructor and Description |
|---|
ParenthesisMatcher() |
| Modifier and Type | Method and Description |
|---|---|
static int |
findMatchingParenthesis(String str,
int openParenthesisIndex)
Computes the position of a matching closing parenthesis given the
position of the opening parenthesis
|
static void |
main(String[] args) |
public static int findMatchingParenthesis(String str, int openParenthesisIndex)
str - String in which the parenthesis should be matchedopenParenthesisIndex - index of the parenthesis which should be matched with a
closing onepublic static void main(String[] args)
Copyright © 2018. All rights reserved.