Skip to content

Commit 282c172

Browse files
committed
Removed an unnecessary note at the end of the new section.
1 parent 1186f64 commit 282c172

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

source/ch4_conditionals.ptx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -393,12 +393,6 @@ The <c>switch</c> statement is not used very often, and we recommend you do not
393393
Next, we will look into the try/catch blocks themselves. As with most other structures in Java, the blocks must be encased with braces <c>{}</c>. The most important part of this code is, after <c>catch</c>, there is a set of parenthesis with an exception type and a variable name <c>catch (InputMismatchException e)</c>. This is where we declare a <c>InputMismatchException</c> exception and name it with the variable name <c>e</c>. It is common practice to name exception variables <c>e</c> in this manner.
394394
</p>
395395

396-
<note>
397-
<p>
398-
Typically, Java is more "strict" than Python. Variable data types must be declared along with the variable, braces must be used, etc. A notable exception occurs in print statements as seen in the code in this section. In Python, strings can only be concatenated with other strings, but in Java, strings can be concatenated with other data types.
399-
</p>
400-
</note>
401-
402396
</section>
403397

404398
<section xml:id="boolean-operators">

0 commit comments

Comments
 (0)