public static void test(String str) {<br /> int check = 4; <br /> if (check = str.length()) { <br /> System.out.print(str.charAt(check -= 1) +“, “); <br /> } else { <br /> System.out.print(str.charAt(0) + “, “); <br /> } <br /> } <br /> and the invocation: <br /> test(”four”); <br /> test(”tee”);<br /> test(”to”); <br /> What is the result?() 
A、 r, t, t,
B、 r, e, o,
C、 Compilation fails.
D、 An exception is thrown at runtime.