Java如何按空格读取内容

String s = input.nextLine();
String[] data = s.split(" ");
原文地址:https://www.cnblogs.com/tenghaoxiang/p/9892991.html