Introduction
Here is the source code for Main.java
Source
public class Main {
public static void main(String args[]) throws Exception {
String s3 = "A BB CCC";
String[] words = s3.split("\\s+");
for (String str : words) {
System.out.println(str);
}
}
}
/*
A
BB
CCC
*/