0
Scanner in = new Scanner(System.in); String str=in.nextLine(); int n=0; for(int i=0; i<str.length(); i++) if(str.charAt(i)>='a' && str.charAt(i)<='z' || str.charAt(i)>='A' && str.charAt(i)<='Z') n++;
2nd Nov 2017, 12:58 AM
Chriptus13
Chriptus13 - avatar