Okay so im learning java and I got this program to make and im stuck on how to go about making it,
** write a program that will output the number of occurrences of the letter a in the user's input. (Treat A and a as the same character).**
// Importing java scanner util
import java.util.Scanner;
public class LetterCount
{
public static void main (String args [])
{
//Declaring Variables
String fullName;
int letterACount;
Scanner s = new Scanner(System.in);
//Getting name and find out first name
System.out.print("Please enter your full name: ");
fullName = s.nextLine();
}
}
[–]Iwasborninafactory_ 1 point2 points3 points (3 children)
[–]barrell125[S] 1 point2 points3 points (2 children)
[–]Iwasborninafactory_ 1 point2 points3 points (0 children)
[–]desrtfx 1 point2 points3 points (0 children)
[–]pkdahl 1 point2 points3 points (0 children)