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 3 years have passed since last update.

Javaの基本

Posted at

## はじめに
これは自分メモです

## 出力の仕方

kane.java
System.out.println()

()内にリテラルを入力することで出力できる

kane.java
System.out.println("Hello!")

文字列の場合""(ダブルクォーテーション)で囲む

kane.java
System.out.println("Hello!");

しっかりセミコロンをつける

System.out.println()というのは、()の中身を出力(表示)せよ」という「命令」

print(), println() の使い方

kane.java
System.out.print("バナナ");
System.out.println("バナナ");

print() は末尾に改行は付きませんが、println() は自動的に末尾に改行を挿入します。

終わりに

ほんとはもっと書けることがあったが理解があいまいのでやめました。
次回はコンパイラとインタープリタの違いを自分の言葉で書けたらな..と

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?