Skip to content

Fix a typo: DateForat -> DateFormat #1903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _ja/tutorials/scala-for-java-programmers.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Scala のインポート文は Java と同等のものととてもよく似て
また別の違いとして、パッケージやクラスのすべての名前をインポートするときは、アスタリスク `*` の代わりにアンダースコア文字 `_` を使います。
というのもアスタリスクは、あとで見るように Scala の識別子(例えばメソッド名)として有効だからです。

それゆえ2行目のインポート文は、`DateForat` クラスのすべてのメンバーをインポートします。
それゆえ2行目のインポート文は、`DateFormat` クラスのすべてのメンバーをインポートします。
これによって static メソッド `getDateInstance` や static フィールド `LONG` が直接利用可能になります。

`main` メソッドの中では、まず Java の `Date` クラスのインスタンスを作成します。
Expand Down