Your problem is with your reading in a character this way:
Code:
selection = Character.toUpperCase((char) System.in.read());
This doesn't handle the end of line character and I think that this is what is tripping you up. Instead, use your BufferedReader to read in a line and only take the first character from the String read in via String's charAt method:
Code:
selection = Character.toUpperCase(in.readLine().charAt(0));
Oh, and while you're new here, you've been here long enough so that you should start using code tags when posting code as this will allow your code to retain its formatting and thus be readable. For e.g.,
Code:
import java.io.*;
public class Assignment {
public static void main(String[] args) throws Exception {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
char selection;
int number1, number2;
String strnum1, strnum2;
System.out.println("PRESS [A] FOR ADDITION");
System.out.println("PRESS [S] FOR SUBSTRACTION");
System.out.println("PRESS [M] FOR MULTIPLICATION");
System.out.println("PRESS [D] FOR DIVISION");
System.out.println("Enter your choice: ");
// selection = Character.toUpperCase((char) System.in.read());
selection = Character.toUpperCase(in.readLine().charAt(0));
if (selection == 'A') {
System.out.println("ADD TWO NUMBERS: ");
System.out.println("Enter First Number: ");
strnum1 = in.readLine();
number1 = Integer.parseInt(strnum1);
System.out.println("Enter Second Number: ");
strnum2 = in.readLine();
number2 = Integer.parseInt(strnum2);
System.out
.println("The Sum of Two numbers is: " + (number1 + number2));
} else if (selection == 'S') {
System.out.println("SUBSTRACT TWO NUMBERS: ");
System.out.println("Enter First Number: ");
strnum1 = in.readLine();
number1 = Integer.parseInt(strnum1);
System.out.println("Enter Second Number: ");
strnum2 = in.readLine();
number2 = Integer.parseInt(strnum2);
System.out.println("The Difference of Two numbers is: "
+ (number1 - number2));
} else if (selection == 'M') {
System.out.println("MULTIPLY TWO NUMBERS: ");
System.out.println("Enter First Number: ");
strnum1 = in.readLine();
number1 = Integer.parseInt(strnum1);
System.out.println("Enter Second Number: ");
strnum2 = in.readLine();
number2 = Integer.parseInt(strnum2);
System.out.println("The Product of Two numbers is: "
+ (number1 * number2));
} else if (selection == 'D') {
System.out.println("DIVIDE TWO NUMBERS: ");
System.out.println("Enter First Number: ");
strnum1 = in.readLine();
number1 = Integer.parseInt(strnum1);
System.out.println("Enter Second Number: ");
strnum2 = in.readLine();
number2 = Integer.parseInt(strnum2);
System.out.println("The Quotient of Two numbers is: "
+ (number1 / number2));
}
else {
System.out.println("INVALID CHOICE");
}
}
}
The link in my signature will show you how to do this.
Also one more nitpick: please use an informative thread title. "Hello guys" tells us nothing about your problem. Instead use something useful such as "problem reading in user input" or some-such.