/**
* Q02.java
* Copyright (C) Cam Moore 2016
*//**
* Q02: A program that capitalizes the vowels in a string and counts the non-vowels.
*
* @author Cam Moore
*
*/publicclassQ02{/**
* @param args the command line arguments.
*/publicstaticvoidmain(String[]args){if(args.length>0){intnonVowels=0;StringtheInput=args[0];for(inti=0;i<theInput.length();i++){charc=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':Strings=""+c;System.out.print(s.toUpperCase());break;default:nonVowels++;System.out.print(c);}}System.out.println();System.out.println(" There are "+nonVowels);}}}