出现解析错误已达到文件结尾,但找不到问题

import java.util.Scanner;
public class CTest{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int count = 0;//游戏局数
String computerHand=""; //电脑状态
String userHand=""; //玩家状态
int random = (int)(Math.random()*3);
System.out.println(random);

     for(int i = 5;i>count;){
        System.out.println("请输入3个数字---》 0:表示“石头   1:表示剪刀  2: 表示布 ");
            int user = scan.nextInt();
        
        switch (random){
        case 0:
            computerHand = "石头";
        break;
        case 1:
            computerHand = "剪刀";
        break;
        case 2:
            computerHand ="布";
        break;
            }
        
        switch (random){
        case 0:
             userHand = "石头";
        break;
        case 1:
             userHand = "剪刀";
        break;
        case 2:
             userHand ="布";
        break;
            }
        if(ranmom>=0 &&random<=2){
            switch (random){
            case 0:
                if(user ==0){
            System.out.println("系统"+computerHand + "用户输出" + userHnand +"<----平局");
            }else if(user ==1){
                System.out.println("系统"+computerHand + "用户输出" + userHnand +"<----你输了");
                
                count++;
                
                }else if(user ==2){
                    System.out.println("系统"+computerHand + "用户输出" + userHnand +"<----恭喜你,你赢了");
                    }
            case 1:
                if(user ==0){
            System.out.println("系统"+computerHand + "用户输出" + userHnand +"<----恭喜你,你赢了");
            }else if(user ==1){
                System.out.println("系统"+computerHand + "用户输出" + userHnand +"<----平局");
                }else if(user ==2){
                    System.out.println("系统"+computerHand + "用户输出" + userHnand +"<----你输了");

                    count++;
                    }
            case 2:
                if(user ==0){
            System.out.println("系统"+computerHand + "用户输出" + userHnand +"<----你输了");

            count++;

            }else if(user ==1){
                System.out.println("系统"+computerHand + "用户输出" + userHnand +"<----恭喜你,你赢了");
                }else if(user ==2){
                    System.out.println("系统"+computerHand + "用户输出" + userHnand +"<----平局");
                }
            }
            
        }
    System.out.println("你输了--->"+count+"次数");    
    
}

}

上面变量userHand,下面用userHnand ??28行 ranmom >= 0
你是用记事本写代码?

新手少写一大段一大段的代码
每写一小段先编译一下试试看有没有错误
你这满屏错误编译器都不知道该给你显示什么

第二个switch应该是switch(nUser)
后面一段中的switch(random)中,所有case都没有加break