public void timeToSpeech(String time){
  String theTime=timeToString(time);
  if (theTime != null) {
    textToSpeech(theTime);
  }
 else {
    throw new IllegalArgumentException("Bad time format");
  }
}

public void timeToSpeech ( String time ) { String theTime = timeToString ( time ) ; if ( theTime != null ) { textToSpeech ( theTime ) ; } else { throw new IllegalArgumentException ( "Bad time format" ) ; } }
speaks the given time . time should be in the exact form hh : mm where hh is the hour 00 to 23 , and mm is the minute 00 to 59 .
