String input, parsing, split
<p>I need to write a program that makes a user to type string date (ex. 10/21) once, and convert that string into integers. I suppose splitting is necessary before parsing?</p>

<pre><code>import java.util.Scanner;
public class ConvertDates {
   public static void main(String[] args) {
      Scanner input = new Scanner(System.in);
      System.out.print("Please input a date (mm/dd): ");
      String k = input.next();
      k = String.split("/");
      int mm = Integer.parseInt(k);
      int dd = Integer.parseInt(k);
</code></pre>
