Advertisement
progra1

Martes 18/9 Fechaprueba

Sep 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. package martes18;
  2.  
  3. public class pruebafecha {
  4.  
  5.     public static void main(String[] args) {
  6.         Fecha otra=new Fecha(32,1,2000);
  7.         Fecha f=new Fecha();
  8.         otra.mostrar();
  9.         f.mostrar();
  10.         System.out.println(Fecha.diasDelMes(4,2020));
  11.         otra.avanzarDia();
  12.         otra.mostrar();
  13.         System.out.println(f.esAntesQue(otra));
  14.         System.out.println(f.fechaValida());
  15.         System.out.println(otra.fechaValida());
  16.     }
  17.  
  18.  
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement