I have just put together a set of Java Programming exercises if anyone is looking for material to use to teach new team members programming. The exercises are all written in casual language and should be easy enough to understand. If you feel the exercises are missing anything, and would like to contribute, let me know and I can give you edit access so you can add what you feel is missing. You can find the exercises at the link below:
1 Like
Cool. I will share this with my mentor
A note for the author of the document, when checking string equality in java with a string literal as one of the arguments, it almost always make sense to call equals on the literal rather than the variable: "Humphrey Bogart".equals(s)
. The reason is that this is less error prone to cases when s is null.
When s is null:
"Humphrey Bogart".equals(s)
-> false
s.equals("Humphrey Bogart")
-> Null Pointer Exception
1 Like
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.