Java如何按空格读取内容

String s = input.nextLine();
String[] data = s.split(" ");

猜你喜欢

转载自www.cnblogs.com/tenghaoxiang/p/9892991.html