Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Needing help with Printing Rows and Colums.

807598Mar 16 2006 — edited Mar 17 2006
I'm trying to print a hourglass with java code that takes input from the user, and prints it out in rows and colums.
When I input the number 5 in my code, it prints out as..
1

   212

  32123

 4321234

543212345
It prints out like I want, BUT I'm also needing some lines of code how to make it print upwards...so it looks like an hourglass almost.

I can provide what code I have so far if needed.
Thank you for your time in viewing this and any help I get (in advance)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 14 2006
Added on Mar 16 2006
8 comments
98 views