大佬们我有个憨批问题
public void tikee(String s1)
{
String a=s1;
Toast.makeText(MainActivity.this,
s1,Toast.LENGTH_SHORT).show();
if(a.equals("0059")) {
showInputDialog();
} else if (a.equals("")) {
showInputDialog();
}else if (a.equals("")) {
showInputDialog();
}else if (a.equals("23:30")) {
showInputDialog();
}else if (a.equals("00:00")) {
showInputDialog();
}else if (a.equals("00:30")) {
showInputDialog();
}else if (a.equals("1:4")) {
showInputDialog();
}else if (a.equals("01:30")) {
showInputDialog();
}else if (a.equals("02:00")) {
showInputDialog();
}else if (a.equals("02:30")) {
showInputDialog();
}else if (a.equals("03:00")) {
showInputDialog();
}else if (a.equals("03:30")) {
showInputDialog();
}else if (a.equals("04:00")) {
showInputDialog();
}else if (a.equals("04:30")) {
showInputDialog();
}else if (a.equals("05:00")) {
showInputDialog();
}else if (a.equals("05:00")) {
showInputDialog();
}else if (a.equals("06:00")) {
showInputDialog();
}
}
有没有什么改进办法啊 s1是从获取的网络时间然后转的字符串