Java display three messages console window

Question

We would like to write a program that displays:

  • Java
  • Programming
  • demo2s.com

Code structure

public class Main {
  public static void main(String[] args) {
    //your code here
  }
}



public class Main {
  public static void main(String[] args) {
    System.out.println("Java");
    System.out.println("Programming");
    System.out.println("demo2s.com");
  }
}



PreviousNext

Related