Java为啥运行不了

问题遇到的现象和发生背景
用代码块功能插入代码,请勿粘贴截图
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果

为啥运行不了

package com.tt;


import java.util.Random;
import java.util.Scanner;

public class hw14 {
    public static void main(String[] args) {
Guess g = new Guess();
g.computer();
    }
}
class Guess{
    public void computer(){
        Scanner sc = new Scanner(System.in);
        Random r = new Random();
        int times = 0;
       for(int i = 0;i<3;i++) {
           int hum = sc.nextInt();
           int con = r.nextInt(3);
           if (con == 0 && hum == 2) {
               times++;
           } else if (con == 1 && hum == 0) {
               times++;
           } else if (con == 2 && hum == 1) {
               times++;
           }
       }
        System.out.println("赢了"+times+"次");
    }
}

可以运行啊,你这个程序是需要你在控制台输入的

img