Advertisement
urksiful

Siete#Code#Jaguar

Nov 2nd, 2015
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Siete{
  4.    
  5.     public static void main(String args[]){
  6.         Scanner x = new Scanner(System.in);
  7.         String array[] = new String [10];
  8.         int valueof = 0;
  9.        
  10.         for(int i=0; i<10; i++){
  11.             array[i] = x.nextLine().toUpperCase();
  12.                 if(array[i].charAt(0) == 'S')
  13.                     valueof += 1;
  14.         }
  15.        
  16.         System.out.println("Char compatible with S Exception is "+valueof);
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement