import java.util.Scanner; /** Sample final */ public class Question3PartA { /** Problem: Count # of words that are capital */ public static void main(String[] args) { String sentence="The name is Bond, JAMES Bond"; int numCap=0; /*Solution 1:*/ // first set numCap to 1 if the first letter of sentence is capital if (Character.isUpperCase(sentence.charAt(0))) numCap++; for (int i=1;i