### Question:
TimecodeUtils { public static float convertTimecodeToSeconds(String timecode) { String[] timeParts = timecode.split(":"); int hours = Integer.parseInt(timeParts[0]); int minutes = Integer.parseInt(timeParts[1]); float seconds = Float.parseFloat(timeParts[2]) + (60 * minutes) + (60 * 60 * hours); return seconds; }  static String convertSecondsToTimecode(float totalSeconds); static String convertSecondsToTimecode(float totalSeconds, int decimalScale); static float convertTimecodeToSeconds(String timecode);  }### Answer:
@Test public void testTimecodeToSeconds() { String timecode = "00:00:50.000"; assertEquals(50f, TimecodeUtils.convertTimecodeToSeconds(timecode)); timecode = "00:01:10.000"; assertEquals(70f, TimecodeUtils.convertTimecodeToSeconds(timecode)); timecode = "00:00:05.000"; assertEquals(5f, TimecodeUtils.convertTimecodeToSeconds(timecode)); timecode = "00:00:05.011"; assertEquals(5.011f, TimecodeUtils.convertTimecodeToSeconds(timecode)); timecode = "00:00:11.07"; assertEquals(11.07f, TimecodeUtils.convertTimecodeToSeconds(timecode)); timecode = "02:11:22.123"; assertEquals((60*60*2) + (60*11) + 22.123f, TimecodeUtils.convertTimecodeToSeconds(timecode)); }