Site updates
Testing New System now...

How do you check if two strings are equal?

To compare two strings, use the equals method.
String firstname="lee";
String secondname="lee";

System.out.println("That's a strange name");
Download compare.class
NOTE: The Java section is mostly in maintenence mode. I don't have time to work on it right now. Errors will be corrected if pointed out, but they are not actively being searched for. Newer site features, like alternate stylesheets, may cause problems with these pages.