Validando fecha con clases en java
Validando fecha en java Archivo test.java import java.util.Scanner; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author Alejandro hdez g */ public class TestFecha { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int d, m, a; //Se pide por teclado el dia, mes y año System.out.println("Introduce fecha: "); System.out.print("dia: "); d = sc.nextInt(); System.out.print("mes: "); m = sc.nextInt(); System.out.print("año: "); a = sc.nextInt(); ...