Archives from S:\ Drive

Good to keep around methinks
This commit is contained in:
Amrit Panesar committed 2015-04-01 21:23:15 -07:00
1 parent eadaf70b9e
commit 6dd63cc439
606 files changed
+50212

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
public class DebugSeven4
{
public static void main(String[] args)
{
String aString = "The sly brown fox jumped over the lazy dog";
int numLetters = 0;
int stringLength = aString.length();
for(int i=0; i < stringLength; i++)
{
char ch = Character.toLowerCase(aString.charAt(i));
if(Character.isLetter(ch))
numLetters++;
}
System.out.println("The number of letters is " + numLetters);
}
}