Write an expression to detect that the first character of userinput matches firstLetter. import java.util.Scanner: public class CharMatching { public static void main (String args) { String userInput = "": char firstLetter = '-': userInput = "banana": firstLetter = 'b': if (userInput.charAt(0)=='b') { System.out.println("Found match: " + firstLetter): } else { System.out.println("No match: " + firstletter): } return: }

Q&A Education