Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这些数据,我试图将其拆分为单独的部分,唯一的问题是每个值之间的空格不一样。例如:
2010 1 5.1 0.9 11 55.4 86.1#
有任何想法吗?
String[] values = input.split("\\s+");
罗尔夫
标记字符串,然后删除空格。如果这是家庭作业,我将把实施留给你。