class strb { static public void main(String...string) { StringBuilder s1 = new StringBuilder(\"Test\"); StringBuilder s2 = new StringBuild
Agreed with both of the above responses, but I'm worth noting to actually compare contents you can do:
System.out.println(s1.toString().equals(s2.toString())); //Line 1