Which of the following code has the best style?
I:
public class Test {
public static void main(String[] args) {
| System.out.println("Welcome to Java!"); |
}
}
II:
public class Test {
| public static void main(String[] args) { |
| System.out.println("Welcome to Java!"); |
}
}
III:
public class Test {
public static void main(String[] args) {
System.out.println("Welcome to Java!");
}
}
IV:
public class Test {
public static void main(String[] args) {
| System.out.println("Welcome to Java!"); |
}
}
◦ I
◦ II
◦ III
◦ IV