HelloWorld
来源:互联网 发布:网络骗贷十六万借呗 编辑:程序博客网 时间:2024/06/11 03:24
先用javac把java源文件(.java) 编译 为字节码文件(.class),再通过JVM 解释。
1.新建txt文档,并输入
public class HelloWorld{ public static void main(String[] args) { System.out.println("Hello World!"); }}
保存并修改文件为HelloWorld.java
2.进入dos界面,输入javac -d . HelloWorld.java会在当前路径生成HelloWorld.class文件,继续输入java HelloWorld(这里的HelloWorld是class文件名)将会输出结果
阅读全文
0 0
- helloworld
- HelloWorld
- helloworld
- helloworld
- HelloWorld
- HelloWorld
- HelloWorld
- HelloWorld
- HelloWorld
- HelloWorld
- helloWorld!
- helloworld!
- HelloWorld
- HelloWorld
- HelloWorld
- HelloWorld
- HelloWorld
- helloworld
- 【WebDriver】selenium自动化测试入门到进阶 二
- CoreOS有状态应用管理的框架--Operator详解
- 限制input输入类型(多种方法实现)
- 页面实战应用(持续更新)
- 初创企业想扩大工程师团队?先了解这五件事!
- HelloWorld
- Hadoop环境配置参考一
- 深度工作法让你超越自我
- Centos7安装mplayer播放器和一些简单开发环境的配置
- LSP相关
- iOS 我理解的MVC和MVVM
- CSS-小记
- 暑期项目开发实训 Day23
- 机器学习基石 3.1 Learning with Different Output Space