Hello all,
I am trying to display time in the following format that represents hours and minutes:
hh:mm
public String getTime()
{
String time = String.format("%tI:%tM", hours, minutes);
return time;
}
For some reason I keep getting the following error:
"The method format(String, Object[]) in the type String is not applicable for the arguments (String,
int, int)". Both time and minutes are integers. I am not sure what the problem could be. Any assistance will be appreciated.
Thanks Kim