Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. import java.io.BufferedReader;
  2. import java.io.IOException;
  3. import java.io.InputStreamReader;
  4.  
  5.  
  6. public class Solution {
  7.     public static void main(String[] args) throws IOException {
  8.         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  9.         String read = br.readLine();
  10.         int brojac = 0;
  11.         for(int i=0;i<read.length();i++) {
  12.             if(Character.isLetter(read.charAt(i))) {
  13.                 brojac++;
  14.             }
  15.         }
  16.         System.out.println(brojac);
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement