import java.util.*; public class BracketMatchTestProgram { public static boolean bracketsMatch(String s) { int count = 0; char c; for (int i=0; i aStack; char c; aStack = new Stack(); for (int i=0; i to quit)"); aString = keyboard.nextLine(); if (bracketsMatch(aString)) System.out.println("The brackets match"); else System.out.println("The brackets do not match"); } while (aString.length() > 0); } }