Question: Write a program that takes in a string as input and output's the number of time the letter 'a' is in the string. For example:

 Write a program that takes in a string as input and

Write a program that takes in a string as input and output's the number of time the letter 'a' is in the string. For example: Input: banana Output: 3 287956.1731522 LAB ACTIVITY 13.7.1: String Parsing DH 0/4 LabProgram.java Load default template... 1 import java.util.Scanner; 2 3 public class LabProgram { 4 public static void main(String[] args) { 5 Scanner scnr = new Scanner(System.in); 6 String str = scnr.nextLine(); 7 [/write your code here 9 10 } 11 } 8 9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!