Skip to content

Commit 39eac50

Browse files
nshizirungudieumerci@gmail.comnshizirungudieumerci@gmail.com
authored andcommitted
added refrence to section 9.3 where it needed to be placed
1 parent 2a7c18d commit 39eac50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/ch9_commonmistakes.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
</program>
141141
</listing>
142142
<p>
143-
You may notice that this error message looks similar to the previous one, however, it has an entirely different cause. In Java, classes like <c>Scanner</c> that are part of external packages (like <c>java.util</c>) must be explicitly imported into your source file. Java does not automatically recognize these classes. To resolve this error, you need to add an import statement for the <c>Scanner</c> class at the beginning of your <c>Histo.java</c> file, typically import <c>java.util.Scanner;</c>.
143+
You may notice that this error message looks similar to the previous one <xref ref="undeclared-variable" text="type-global"/>, however, it has an entirely different cause. In Java, classes like <c>Scanner</c> that are part of external packages (like <c>java.util</c>) must be explicitly imported into your source file. Java does not automatically recognize these classes. To resolve this error, you need to add an import statement for the <c>Scanner</c> class at the beginning of your <c>Histo.java</c> file, typically import <c>java.util.Scanner;</c>.
144144
</p>
145145

146146
</section>

0 commit comments

Comments
 (0)