src/main/java/wniemiec/util/java/RoundBracketBalance.java
private int countOpenRoundBrackets(String text)
	{
		final Pattern patternOpenRoundBrackets = Pattern.compile("\\(");
		Matcher openCBMatcher = patternOpenRoundBrackets.matcher(text);
		
		int size;
		for (size = 0; openCBMatcher.find(); size++)
			;
		
		return size;
	}
/**
	 * Counts how many open round brackets are in a text.
	 * 
	 * @param		text Text to be analyzed
	 * 
	 * @return		Amount of open round brackets in the text
	 */
Counts how many open round brackets are in a text.

@param               text Text to be analyzed

@return              Amount of open round brackets in the text
Counts how many open round brackets are in a text . @param text Text to be analyzed @return Amount of open round brackets in the text
private int countOpenRoundBrackets(String text)
	{
		final Pattern patternOpenRoundBrackets = Pattern.compile("\\(");
		Matcher openCBMatcher = patternOpenRoundBrackets.matcher(text);
		int size;
		for (size = 0; openCBMatcher.find(); size++)
			;
		return size;
	}
private int countOpenRoundBrackets ( String text ) { final Pattern patternOpenRoundBrackets = Pattern . compile ( "\\(" ) ; Matcher openCBMatcher = patternOpenRoundBrackets . matcher ( text ) ; int size ; for ( size = 0 ; openCBMatcher . find ( ) ; size ++ ) ; return size ; }
Counts how many open round brackets are in a text.
Counts how many open round brackets are in a text .