Write a java code segment that will count and print the


Write a java code segment that will count and print the number of times the letter 'a' or the letter 'A' appear in a generic String s (you must use this variables in your code). For example, if the String s originally contains the word "ABCabc", the code should print the number 2. You are not required to write a whole program, only a code segment.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write a java code segment that will count and print the
Reference No:- TGS02391946

Now Priced at $10 (50% Discount)

Recommended (94%)

Rated (4.6/5)