package time;
import java.util.Scanner;
public class Time {
public static void main(String[] args) {
Scanner entrada = new Scanner (System.in);
Tiempo t = new Tiempo();
System.out.println("Ingrese hora en formato universal");
t.hora = entrada.nextInt();
System.out.println("Ingrese los minutos");
t.min = entrada.nextInt();
System.out.println("Ingrese los segundos");
t.seg = entrada.nextInt();
System.out.println(t.toString());
System.out.println(t.mostrarE());
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.