Whats wrong with this bit of code?
Time t2 =new Time(12, 11);
if(t2.getAsString() =="12:11"){
System.out.println("Test passed");
}
else{
System.out.println("Test failed");
}
getAsString method:
public String getAsString()
{
return asTwoDigits(hour)+":"+ asTwoDigits(minute);
}

