

This is my response. But it is loose. Could you succor to re-examine that ?
Write an look to unmask that the original sign of userinput matches originalLetter. meaning java.util.Scanner: general tabulate CharMatching { general static useless ocean (String args) { String userInput = “”: char originalLetter = ‘-‘: userInput = “banana”: originalLetter = ‘b’: if (userInput.charAt(0)==’b’) { System.out.println(“Found match: ” + originalLetter): } else { System.out.println(“No match: ” + originalletter): } return: }
Explanation::
Regulation in java:
meaning java.util.Scanner;
general tabulate CharMatching{
general static useless ocean(String[] args){
String userInput=””;
char originalLetter=’-‘;
userInput=”1,2,Buckl my shoe.”;
firstLetter=’1’;
/*
* In if mood beneath I possess qualifyd from ‘b’ to shifting name
* originalLetter that stores original sign to be checked.
*/
if(userInput.charAt(0)==firstLetter){
System.out.println(“Found match: “+firstLetter);
}else{
System.out.println(“No match:”+firstLetter);
}
return;
}
}
Output::
Another account of regulation in java where user is asked to penetrate userInput string and originalLetter sign::
Regulation in java::
meaning java.util.Scanner;
general tabulate CharMatching{
general static useless ocean(String[] args){
Scanner sc=new Scanner(System.in);
String userInput=””;
char originalLetter=’-‘;
System.out.println(“nPenetrate the string as userInput::”);
userInput=sc.nextLine();
System.out.println(“nPenetrate the sign as originalLetter::”);
firstLetter=sc.next().charAt(0);;
if(userInput.charAt(0)==firstLetter){
System.out.println(“Found match: “+firstLetter);
}else{
System.out.println(“No match:”+firstLetter);
}
return;
}
}
Output::
Test condition 1::
Test condition 2::
Test condition 3::
Thank you!!