I'm trying to create a program that adds random numbers together and show a message if the number is over 20

后端 未结 0 2016
囚心锁ツ
囚心锁ツ 2020-12-14 05:03
import java.util.Random;

public class Main {
    public static void main(String[] args) {

        Random rand = new Random();
        int a = rand.nextInt(6) + 1;
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题