I found a cool recursive method in Python, I'd like to use it in Java. Here's the link: Ideone.com | Online Python Interpreter & Debugging Tool
Any idea how I can use this and play with it in Java?
Printable View
I found a cool recursive method in Python, I'd like to use it in Java. Here's the link: Ideone.com | Online Python Interpreter & Debugging Tool
Any idea how I can use this and play with it in Java?
This type of print a diamond code has been done time and time again here on the forums.
Please do a quick search and you should find your answer.
You basically need a series of 'for loops'
One link which may help - http://www.javaprogrammingforums.com...a-program.html
Post what code you have started and we will help you move forward..