Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Principal {
- public static void main(String[] args){
- Scanner ent=new Scanner(System.in);
- System.out.println("Ingrese el anio: ");
- int anio=ent.nextInt();
- System.out.println("Ingrese el mes: ");
- int mes=ent.nextInt();
- System.out.println("Ingrese el dia: ");
- int dia=ent.nextInt();
- System.out.println("Ingrese la hora: ");
- int hora=ent.nextInt();
- System.out.println("Ingrese los minutos: ");
- int minutos=ent.nextInt();
- System.out.println("Ingrese los segundos: ");
- int segundos=ent.nextInt();
- FechaHora f=new FechaHora(anio,mes,dia,hora,minutos,segundos);
- f.laHora();
- f.laFecha();
- f.comprobarFechaYHora();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement