Java语言程序设计基础篇_第十版_梁勇_3.16随机点课后答案
Java语言程序设计基础篇_第十版_梁勇_3.16随机点课后答案package nameyu;import java.util.Scanner;public class Test { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int wide=(int)(Math.random()*101+(-50)); int high=(int)(Math.random()*201+(-100)); Scanner input=new Scanner(System.in); System.out.println("The coordinate is " + "(" + wide + "," + high + ")"); } }
页:
[1]