Java Review (Solution)

/**
 * VowelCaps.java
 * Copyright (C) Cam Moore 2015
 */

/**
 * Represents a VowelCaps.
 *
 * @author Cam Moore
 *
 */
public class VowelCaps {

  /**
   * @param args the command line arguments.
   */
  public static void main(String[] args) {
    if (args.length > 0) {
      int nonVowels = 0;
      String theInput = args[0];
      for (int i = 0; i < theInput.length(); i++) {
        char c = theInput.charAt(i);
//        if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
//          String s = "" + c;
//          System.out.print(s.toUpperCase());
//        }
//        else {
//          nonVowels++;
//          System.out.print(c);
//        }
        switch (c) {
        case 'a':
        case 'e':
        case 'i':
        case 'o':
        case 'u':
        case 'A':
        case 'E':
        case 'I':
        case 'O':
        case 'U':
          String s = "" + c;
          System.out.print(s.toUpperCase());
          break;
        default:
          nonVowels++;
          System.out.print(c);
        }
      }
      System.out.println(" There are " + nonVowels);

    }

  }

}