Seconds between two time points

Report a typo

Implement a method that takes two instances of LocalTime and determines how many seconds are between them.

Sample Input 1:

00:00:01
00:00:05

Sample Output 1:

4

Sample Input 2:

02:00:03
00:00:01

Sample Output 2:

7202
Write a program in Java 17
import java.time.LocalTime;
import java.util.Scanner;

public class Main {

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// write your code here
}
}
___

Create a free account to access the full topic