Scanner sc=new ScannerSystemin; Systemoutprintln请输入日期; String time = scnext; Systemoutprintln最小金额; int min = scnextInt; Systemoutprintln最大金额; int max = scnext
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("请输入日期"); String time = sc.nextLine(); System.out.println("最小金额"); int min = sc.nextInt(); System.out.println("最大金额"); int max = sc.nextInt(); System.out.println("窗口编号"); int id = sc.nextInt(); } }
原文地址: https://www.cveoy.top/t/topic/ioZG 著作权归作者所有。请勿转载和采集!