Answer:
Hope this helps
Step-by-step explanation:
import java.util.Scanner;
public class CharMatching {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
String inputStr;
char inputChar;
int strIndex;
inputStr = scnr.nextLine();
inputChar = scnr.next().charAt(0);
strIndex = scnr.nextInt();
if (inputStr.charAt(strIndex) == inputChar) {
System.out.println("Found match");
} else {
System.out.println("No match");
}
scnr.close();
}
}