我帮你改了改,问题应该解决了,问题原因是输入缓冲问题import java.io.*;public class t {
private BufferedReader breader= new BufferedReader( new InputStreamReader( System.in ) );private void showMainMenu() {
    try {
    System.out.println( "1 - \t2 - \t3 -" );
    switch ( System.in.read() ) {
    case '1': a(); break;
    case '2': b(); break;
    case '3': c(); break;
    default: ;
    }
    } catch ( Exception e ) {
    System.out.println( "an exception has occured." );
    }
}    private void a() {
    System.out.println( "function a:" );
    short s, j;    try {
    System.out.print( "s? " );
    while (breader.ready()) //<------------------------ 清除输入缓冲区
     breader.read();        s = Short.parseShort( breader.readLine() );
        System.out.print( "j? " );
    while (breader.ready()) //<------------------------ 清除输入缓冲区
     breader.read();        j = Short.parseShort( breader.readLine() );
        
        System.out.println( "s = " + s + "j = " + j );
    } catch ( Exception e ) {
    System.out.println( "an exception has occured." );
    }
    }    private void b() {
    System.out.println( "function b:" );
    short s, j;    try {
    System.out.print( "s? " );
    while (breader.ready()) //<------------------------ 清除输入缓冲区
     breader.read();        s = Short.parseShort( breader.readLine() );
        System.out.print( "j? " );
    while (breader.ready()) //<------------------------ 清除输入缓冲区
     breader.read();        j = Short.parseShort( breader.readLine() );
        
        System.out.println( "s = " + s + "j = " + j );
    } catch ( Exception e ) {
    System.out.println( "an exception has occured." );
    }
    }    private void c() {
    System.out.println( "function c:" );
    short s, j;
    
    try {
    System.out.print( "s? " );
    while (breader.ready()) //<------------------------ 清除输入缓冲区
     breader.read();        s = Short.parseShort( breader.readLine() );
        System.out.print( "j? " );
    while (breader.ready()) //<------------------------ 清除输入缓冲区
     breader.read();        j = Short.parseShort( breader.readLine() );
        
        System.out.println( "s = " + s + "j = " + j );
    } catch ( Exception e ) {
    System.out.println( "an exception has occured." );
    }
    }    public static void main( String[] args ) {
    t test = new t();
    
    test.showMainMenu();
}
}