For now this changes nothing. The name of the source code file appears not to matter. However it will matter a great deal in the not too distant future so don't go arbitrarily changing the names of your .java files.
For now this changes nothing. The name of the source code file appears not to matter. However it will matter a great deal in the not too distant future so don't go arbitrarily changing the names of your .java files.
In French:
class HelloWorld {
  public static void main (String args[]) {
    System.out.println("Bonjour Monde!");
  }
  
}
class HelloWorld {
  public static void main (String args[]) {
    System.out.println("Hola Mundo!");
  }
  
}
class HelloWorld {
  public static void main (String args[]) {
    System.out.println("Vale Mundum!");
  }
  
}
/* THIS PROGRAM CANNOT BE EXECUTED
WITHOUT SYSADMIN PRIVILEGES */
All you need to do is change the word World to your name. For example
class HelloWorld {
  public static void main (String args[]) {
    System.out.println("Hello Rusty!");
  }
  
}
Hello World! It's been nice knowing you. Goodbye world!This is three lines of text so it needs three System.out.println() statements. In other words:
class HelloWorld {
  public static void main (String args[]) {
    System.out.println("Hello World!");
    System.out.println("It's been nice knowing you.");
    System.out.println("Goodbye world!");
  }
  
}
class HelloWorld {
  public static void main (String args[]) {
    System.out.println("Hello World!\nIt's been nice knowing you.\nGoodbye world!");
  }
  
}
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *Now modify it to draw them next to each other like above.
class DrawPicture1 {
  public static void main (String args[]) {
    System.out.println("* * * * *");
    System.out.println("* * * * *");
    System.out.println("* * * * *");
    System.out.println("* * * * *");
    System.out.println("    *");
    System.out.println("   * *");
    System.out.println("  * * *");
    System.out.println("* * * * *");
  }
  
}
class DrawPicture2 {
  public static void main (String args[]) {
    System.out.println("* * * * *             *  ");
    System.out.println("* * * * *            * * ");
    System.out.println("* * * * *           * * *");
    System.out.println("* * * * *         * * * * *");
  }
  
}