Okay, here's a simple program to help you out, you'll still have to edit it.
public class arraySearch {
public static void main(String args[]) {
char[] alphabets = {'A', 'B', 'C', 'D'};
int[] numbers = {4, 3, 2, 1};
char userInput;
//Code to get the user's input
for(int i = 0; i < alphabets.length; i++) {
if(userInput == alphabets[i]) {
System.out.println(numbers[i]);
break;
}
}
}
}