Commit 3dcf778
authored
Suggestion on example in Part1-4
Has a repeat for an example on what variable names should/shouldn't look like.
int 7variable = 4; // Not Allowed!
int variable7 = 4; // Allowed, but not a descriptive variable name
is repeated twice, despite the paragraph talking about not naming variables using commands provided by Java instead. I replaced it with names System.out.print and System.out.println since those were the examples given. Though in reality, even if they were commands provided by Java, they still wouldn't work as variable names due to having periods in them. Maybe other commands or keywords would be a better example, i.e. new.1 parent bb87fe6 commit 3dcf778
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
493 | | - | |
| 492 | + | |
| 493 | + | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| |||
0 commit comments