// CSE 143, Winter 2012
// This program tests whether HtmlTags can be compared by seeing whether a
// TreeSet can successfully store and sort a set of HtmlTag objects.
import java.util.*; // for Set
public class HtmlTagTest {
public static void main(String[] args) {
//
hellohow are you
Set tags = new TreeSet();
tags.add(new HtmlTag("html", true)); //
tags.add(new HtmlTag("body", true)); //
tags.add(new HtmlTag("b", true)); //
tags.add(new HtmlTag("b", false)); //
tags.add(new HtmlTag("i", true)); //
tags.add(new HtmlTag("b", true)); //
tags.add(new HtmlTag("b", false)); //
tags.add(new HtmlTag("br")); //
tags.add(new HtmlTag("i", false)); //
tags.add(new HtmlTag("body", false)); //
tags.add(new HtmlTag("html", false)); //
System.out.println(tags);
}
}