import java.util.Random;
import java.io.*;


public class GMB {

        public static void main(String[] args) throws IOException{
        Random r = new Random();
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader in = new BufferedReader(isr);
        int a = r.nextInt(3);
        System.out.println(\"가위바위보 게임!!\");
        System.out.println(\"*힌트 : 컴퓨터 : \"+ a);
        System.out.println(\"당신의 선택은!?  (가위 : a // 바위 : b // 보 : c)\");
        String b = in.readLine();                        //0          1         2  

        if(a == 0){ // 컴퓨터 : 가위
                if(b == \"a\") System.out.println(\"컴퓨터 : 가위 // 비겼습니다\");
                if(b == \"b\") System.out.println(\"컴퓨터 : 가위 // 이겼습니다\");
                if(b == \"c\") System.out.println(\"컴퓨터 : 가위 // 졌습니다\");
                        
        }
        if(a == 1){ // 컴퓨터 : 바위
                if(b == \"a\") System.out.println(\"컴퓨터 : 바위 // 졌습니다\");
                if(b == \"b\") System.out.println(\"컴퓨터 : 바위 // 비겼습니다\");
                if(b == \"c\") System.out.println(\"컴퓨터 : 바위 // 이겼습니다\");
        }
        if(a == 2){ // 컴퓨터 : 보
                if(b == \"a\") System.out.println(\"컴퓨터 : 보 // 이겼습니다\");
                if(b == \"b\") System.out.println(\"컴퓨터 : 보 // 졌습니다\");
                if(b == \"c\") System.out.println(\"컴퓨터 : 보 // 비겼습니다\");
        
        }
        }

}

--------------------------

횽들 늅늅이좀 구원해주십쇼
방학이라 잉여잉여거리면서 혼자 자바 독학중인데

일단 소스넣고 돌리면 실행은 되는데

짤방처럼 된뒤 그담 아무 변화가 없음 ㅠㅠ

교재 안보고짠건데 막상 교재보면 if 문에서 키보드입력(b) 랑 랜덤값(a) 위치만 바꾼정도더라구

솔까 별 차이 없는거같은데 난 왜 실행이 제대로 안되죠 ㅠㅠ