Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Siete{
- public static void main(String args[]){
- Scanner x = new Scanner(System.in);
- String array[] = new String [10];
- int valueof = 0;
- for(int i=0; i<10; i++){
- array[i] = x.nextLine().toUpperCase();
- if(array[i].charAt(0) == 'S')
- valueof += 1;
- }
- System.out.println("Char compatible with S Exception is "+valueof);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement