Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package martes18;
- public class pruebafecha {
- public static void main(String[] args) {
- Fecha otra=new Fecha(32,1,2000);
- Fecha f=new Fecha();
- otra.mostrar();
- f.mostrar();
- System.out.println(Fecha.diasDelMes(4,2020));
- otra.avanzarDia();
- otra.mostrar();
- System.out.println(f.esAntesQue(otra));
- System.out.println(f.fechaValida());
- System.out.println(otra.fechaValida());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement