Hello can I input 3 integers in one line in java?

im writing time converter

I want to input hh:mm:ss with : as separator for int hh, mm, ss

this is my code with 3 lines input

```
public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int hh = in.nextInt();
    int mm = in.nextInt();
    int ss = in.nextInt();
    int result;
    result = (hh*3600)+(mm*60)+(ss);
    System.out.println(result);
}

```