控制台输出结果:
32,13,J,30,Q,79,A,Z,T,41
Exception in thread "main" java.lang.NumberFormatException: For input string: "A
"
at java.lang.NumberFormatException.forInputString(NumberFormatException.
java:48)
at java.lang.Integer.parseInt(Integer.java:449)
at java.lang.Integer.parseInt(Integer.java:499)
at Test5.optionString(Test5.java:119)
at Test5.main(Test5.java:42)