Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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);
        }
    }
}
/*
A
    
B
C
*/