public class Main { public static void main(String args[]) throws Exception { String s3 = "A B C"; String[] words = s3.split(" "); for (String s : words) { System.out.println(s); } }}/*ABC*/