求 java 的 helloworld 程序

求Java 的 hellworld 求Java 的 hellworld 求Java 的 hellworld 求Java 的 hellworld

 public class HelloWorld {
    /**
    * 输出一行字符串“Hello World!”
    * @param args
    */
    public static void main(String[] args) {
    System.out.println("Hello World!");
    }
}
class Hello{ 
                public static void main(String[] args){
                                System.out.println("helloworld");
                }
}
 public static void main(String[] args) {
    System.out.println("Hello World!");
   }

public static void main(String[] args) {
System.out.println("Hello World!");
}

System.out.println("helloworld");

在这个问题上我支持机器人。

class Hello{
public static void main(String[] args){
System.out.println("hello world");
}
}

除了main方法,还可以使用Test

import org.junit.Test;
public class QRCodeTest {
@Test
public void test() {
System.out.println("hello world");
}
}
注意:引入import org.junit.Test;

public static void main(String[] args) {
System.out.println("Hello World!");//建议使用“sysout加/+alt键”可快速生成代码
}

public class TestHelloWorld{
public static void main(String[] args){
System.out.println("HelloWorld");
}
}