I am new to Java and this site. My assignment is to write a program that displays a time in this format(00:00:00) in one line of code. can anyone help me with this. the following is what i have started......
Please help!!!!!

import java.util.Scanner;

public class time {

public static void main(String[] args){


Scanner time = new Scanner(System.in);


String hour = time.next();


System.out.print("" + hour + ":";");"

String min = time.next();
String sec = time.next();



}
}