title: Check if a birth date is valid out of 3 integers (mm/dd/yyyy)
body: <p>I made a scanner which asks for 3 integer : month / day / year of birth
  For every integer, i check if this is a valid entry (i.e month &lt;12 &amp; month >0).
  If three entrees are valid i do a :</p>
  
  <pre><code>System.out.println(month + "-" + day + "-" + year);
  </code></pre>
  
  <p>full code following :</p>
  
  <pre><code>// TODO code application logic here
      Scanner sc = new Scanner(System.in);
      int intJour;
      int intMois;
      int intAnnee;
  
      do {
          System.out.println("Year of birth :");
          intJour = sc.nextInt();
          sc.nextLine();
      } while (intJour &lt; 0 || intJour &gt; 31);
  
      do {
          System.out.println("Month of birth :");
          intMois = sc.nextInt();
          sc.nextLine();
      } while (intMois &lt; 0 || intMois &gt; 12);
  
      do {
          System.out.println("Year of birth :");
          intAnnee = sc.nextInt();
          sc.nextLine();
      } while (intAnnee &lt; 0 || intAnnee &gt; Calendar.getInstance().get(Calendar.YEAR));
  
      System.out.println("Birth date: " + intJour + "-" + intMois + "-" + intAnnee);
  </code></pre>
  
  <p>I would like to make a date out of the user inputs, and check if that date existed. I.E not every month has a 31 regarding of the year involved.</p>