The test methoid should end up looking like this:
void test(String s1, String s2)
{
if (s1.equals(s2))
{
System.out.println("...");
}
else
{
System.out.println("...");
}
}
You just have to make sure the right things are printed.