Java中怎么读入一行输入空格隔开的多个数据

日期:2019-11-10 10:53:37 人气:1

Java中怎么读入一行输入空格隔开的多个数据

import java.util.Scanner; public class ReadData{ public static void main(String[] args) { ReadData r=new ReadData(); Scanner input=new Scanner(System.in); //Scanner input=new Scanner("abc 123 bb ss"); String s=input.nextLine(); String[]
    A+
热门评论