We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
public static String timeConversion(String s) {
// Write your code here
int hour = Integer.parseInt(s.substring(0, 2));
String meridian = s.substring(s.length() - 2);
Time Conversion
You are viewing a single comment's thread. Return to all comments →
public static String timeConversion(String s) { // Write your code here int hour = Integer.parseInt(s.substring(0, 2)); String meridian = s.substring(s.length() - 2);