Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #72.7K
public static void sentencesChecker(String essay) { int count = 0; int countcap = 0; int i , j; for ( i = 0; i < essay.length(); i++) { if (essay.charAt(i) == '.') { count++; } for ( char e= 'A'; e<='Z';e++) { if (essay.charAt(i)==e){ countcap++; } } } System.out.print("\n\t\t" + … | |
Re:
I am writing a java program. One of the functions of my program is to count all the uppercase letters in a paragraph of text I import. I am not sure how to set this up. Is it something like, isUpperCase.(char) Any help would be great Thanks |