String time = "12:00";
if (time .matches("(0\\d{1}|1\\d{1}|2[0-3]):([0-5]\\d{1})")) {
return true;
}else{
return false;
}
String time = "12:00";
if (time .matches("(0\\d{1}|1\\d{1}|2[0-3]):([0-5]\\d{1})")) {
return true;
}else{
return false;
}