From 1e39363e93b991ffa97edeb71d4394bde050abe9 Mon Sep 17 00:00:00 2001 From: Alok Lal Date: Wed, 12 Dec 2018 11:47:45 -0800 Subject: [PATCH 1/2] Removed redundent import from the example to reinforce the precision and avoid confusion --- _overviews/tutorials/scala-for-java-programmers.md | 1 - 1 file changed, 1 deletion(-) diff --git a/_overviews/tutorials/scala-for-java-programmers.md b/_overviews/tutorials/scala-for-java-programmers.md index 5fc255585c..f0bee533f4 100644 --- a/_overviews/tutorials/scala-for-java-programmers.md +++ b/_overviews/tutorials/scala-for-java-programmers.md @@ -104,7 +104,6 @@ classes in the Scala class library--we can simply import the classes of the corresponding Java packages: import java.util.{Date, Locale} - import java.text.DateFormat import java.text.DateFormat._ object FrenchDate { From fc946d582f78dcddcef304b94a2ed8f8fe706186 Mon Sep 17 00:00:00 2001 From: Alok Lal Date: Thu, 13 Dec 2018 10:32:11 -0800 Subject: [PATCH 2/2] Addressed the review comments --- _overviews/tutorials/scala-for-java-programmers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/tutorials/scala-for-java-programmers.md b/_overviews/tutorials/scala-for-java-programmers.md index f0bee533f4..ada65a08f7 100644 --- a/_overviews/tutorials/scala-for-java-programmers.md +++ b/_overviews/tutorials/scala-for-java-programmers.md @@ -122,7 +122,7 @@ package or class, one uses the underscore character (`_`) instead of the asterisk (`*`). That's because the asterisk is a valid Scala identifier (e.g. method name), as we will see later. -The import statement on the third line therefore imports all members +The import statement on the second line therefore imports all members of the `DateFormat` class. This makes the static method `getDateInstance` and the static field `LONG` directly visible.