Skip to content

Commit 3dcf778

Browse files
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

File tree

data/part-1/4-variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ int camelCase = 5; // Ei sallittu -- muuttuja camelCase on jo käytössä!
489489
``` -->
490490

491491
```java
492-
int 7variable = 4; // Not Allowed!
493-
int variable7 = 4; // Allowed, but not a descriptive variable name
492+
int System.out.print = 4; // Not Allowed!
493+
int System.out.println = 4; // Not Allowed!
494494
```
495495

496496
```java

0 commit comments

Comments
 (0)