can you please give an idea for our program to ignore spaces and count only alphabets is even small other wise caps : can you please give an idea for our program to ignore spaces and count only alphabets is even small other wise caps
public class evennumbersloop {

	public static void main(String[] args) {

		String str = "Hello World uuuu iii pppp jjj";

		int count = 0;

		for (int i = 0; i <= str.length() - 1; i++) {

			if (str.charAt(i) != ' ') {
				if (count % 2 == 0) {
					String str1 = "";
					str1 = str1 + str.charAt(count);
					System.out.print(str1.toUpperCase());
				} else {
					System.out.print(str.charAt(count));
				}

				count++;
			}
		}

	}
}
