This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Thank you for using the code button, but you haven't quite got the tags in the right places. Don't worry; I corrected the tags for you, and doesn't it look better now Unfortunately it shows inconsistent indentation; be very careful to indent your code because it makes it easier for you to find your way around it.
Write System.out.println(); instead of System.out.println(""); Junilu is right; you should seek a pattern and work that out before you write any code.
permaculture is largely about replacing oil with people. And one tiny ad: