System.out.println("startStatement: " + selector);
System.out.print("startStatement: "); for (int i = 0; i < selector.length; i++) { System.out.print(selector[i]); if (i < selector.length - 1) System.out.print(','); else System.out.println(); }
  public static void main(String[] args)  {    try      {        String name = "/javax/swing/text/html/default.css";        InputStream in = CSSScanner.class.getResourceAsStream(name);        BufferedInputStream bin = new BufferedInputStream(in);        InputStreamReader r = new InputStreamReader(bin);        CSSParserCallback cb = new CSSParserCallback()        {          public void startStatement(String selector)          {            System.out.println("startStatement: " + selector);          }          public void endStatement()          {            System.out.println("endStatement");          }          public void declaration(String property, String value)          {            System.out.println("declaration: " + property + ", " + value);          }        };        CSSParser p = new CSSParser(r, cb);        p.parse();      }    catch (IOException ex)      {        ex.printStackTrace();      }  }