0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Javaインストール後の実行環境テスト

0
Posted at

最終確認

インストール、Version確認後
VSCordでフォルダを作成し、期待する結果が出力されるまでテストする
Javaの環境構築はこちら

実行環境テスト

# テスト用ディレクトリを作成
$ mkdir -p ~/java/test

# ディレクトリへ移動
$ cd ~/java/test

# テスト用のファイルを作成
$ touch test.java

#  テスト用のファイルを編集
$ vi test.java

//test.java

class Main {
  public static void main(String[] args) {
    String msg = "";
    msg += "Hello ";
    msg += "World!";
    System.out.println(msg);
  }
}
# 作成したディレクトリへ移動
$ cd ~/java/hello

:wqで保存

実行する

$ java test.java
Hello World

実行環境テストはクリア!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?