LoginSignup
0
0

More than 1 year has passed since last update.

文字の出力その他

Last updated at Posted at 2022-07-29

文字の出力

前回の記事にもあるように、文字列の場合は「” ”」でかこってあげます。

■改行について
System.out.println("今日も良い天気です");
System.out.print("今日も良い天気です");
→ln(LN)を削除すると、改行がなくなります。
Eclips初期設定13.png
Eclips初期設定14.png

エスケープシーケンスについて
文章として「"」を表示したいとき(文字列出力の意味ではない単なる記号として表示させたい場合)
は、「¥”」と入力する必要がある。
※海外では「\"」(バックスラッシュ)である。

Eclips初期設定15.png

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