This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Tosin: I my opinion, you already found one of the best sites for beginners: JavaRanch! You might try browsing through the forums. You will find many, many code examples of the type you are looking for.
For my latest books on Java, including Introducing JavaFX 8 Programming, see HerbSchildt.com