public class Test {
public static void main(String[] args) {
String string="a b c  d e f g";
String Count[] = string.split(" ");   //遇到空格就拆分。
for(int i=0;i<Count.length;i++)
{
  System.out.println(Count[i]);      //输出数组Count的数
   }
}
}

相关文章:

  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案