pablosotol

Ayuda (x2)

Apr 13th, 2016
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.90 KB | None | 0 0
  1. package principal;
  2. import java.util.Scanner;
  3.  
  4. public class Principal {
  5.     public static void main(String[] args){
  6.             Scanner ent=new Scanner(System.in);
  7.             System.out.println("Ingrese el anio: ");
  8.             int anio=ent.nextInt();
  9.             System.out.println("Ingrese la hora: ");
  10.             int hora=ent.nextInt();
  11.             System.out.println("Ingrese los minutos: ");
  12.             int minutos=ent.nextInt();
  13.             System.out.println("Ingrese el dia: ");
  14.             int dia=ent.nextInt();
  15.             System.out.println("Ingrese los segundos: ");
  16.             int segundos=ent.nextInt();
  17.             System.out.println("Ingrese el mes: ");
  18.             int mes=ent.nextInt();
  19.             FechaHora f=new FechaHora(anio,hora,minutos,dia,segundos,mes);
  20.             f.laHora();
  21.             f.laFecha();
  22.            
  23.                      
  24.     }
  25. }
Add Comment
Please, Sign In to add comment