1.安装JDK

2.编写 Example.java 程序放到C 盘

  public class Example

  {

    public static void main(string[] args)

    {

      system.out.println("Hello world");

    }

  }

3.进 cmd ,输入 “cd c:\”

4. 输入 “javac Example.java”

5. 输入 “java Example” 得到运行结果

相关文章:

  • 2022-12-23
  • 2021-11-27
猜你喜欢
  • 2021-12-20
  • 2021-03-31
  • 2022-03-09
  • 2022-02-08
相关资源
相似解决方案