These are just a collection of samples I wrote down while preparing my Java courses here and there.
Most of the examples works fine with any Java version from 5 on. Some of them are specific for Java 7 and Java 8.
- Modern Java development: https://github.com/giorgiosironi/game-of-life-modern-java?target=https://github.com
- Awesome Java: https://github.com/akullpp/awesome-java?target=https://github.com
- Awesome Java8: https://github.com/tedyoung/awesome-java8?target=https://github.com
- A list of useful Java frameworks, libraries, software and hello worlds examples: https://github.com/Vedenin/useful-java-links?target=https://github.com
- Java Koans: https://github.com/matyb/java-koans?target=https://github.com
- Programmr | Your Online Code Lab: http://www.programmr.com/challenges/palindrom-string-2
- Coder Dojo: http://cyber-dojo.org/setup/show_exercises/?language=Java&test=JUnit
- CodingBat, code practice (http://codingbat.com/java)
- String Calculator (https://github.com/xpeppers/string-calculator-kata?target=https://github.com)
- Bowling Game Kata (http://butunclebob.com/ArticleS.UncleBob.TheBowlingGameKata)
- Sales Tax Kata (https://github.com/xpeppers/sales-taxes-problem?target=https://github.com)
- Number Gaps Kata (https://github.com/andreabertagnolli/numbers-gaps-kata?target=https://github.com)
- Opening Hours Kata (https://github.com/christian-fei/opening-hours-kata?target=https://github.com)
- GildedRose Refactoring Kata: https://github.com/emilybache/GildedRose-Refactoring-Kata?target=https://github.com
- Tennis Refactoring Kata: https://github.com/emilybache/Tennis-Refactoring-Kata?target=https://github.com
-
"Clean Code” by Robert C. Martin (http://www.amazon.it/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882), really a great starter book.
- See also UncleBob's videos at https://cleancoders.com
-
"Effective Java" by J.Bloch, to learn the idiomatic way to Java :)