directory structure change, organize by class number as opposed to mod number
Signed-off-by: Amrit Panesar <apanesar@4195tech.com>
This commit is contained in:
1 parent
2a3d6fc042
commit
8683384387
480 files changed
+7
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user