Results 1 to 2 of 2
  1. #1
    wishmaster is offline Member
    Join Date
    Apr 2014
    Posts
    7
    Rep Power
    0

    Default Nested FOR loops

    Hello everyone!

    This is my first post here,so excuse me if i write something wrong.
    I was looking at this tpic,and i havent found question like mine.

    Im absolute beginner in java,but i need to write a class,that will give me output like this:


    *
    ***
    ****
    ***
    *

    I have to use for loop,i know that i have to use nested for loops,for rows and columns. I just cant figure it out the thing with spaces,and how to turn it to count back.
    Hope you guys understand what i want. Thank you all! Greetings and happy holidays!

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Nested FOR loops

    What have you tried? Please post your code.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Help with nested for-loops ???
    By Jar in forum New To Java
    Replies: 1
    Last Post: 01-27-2014, 02:17 PM
  2. Nested Loops Help!
    By spendogw in forum New To Java
    Replies: 2
    Last Post: 03-16-2012, 05:20 AM
  3. Replies: 20
    Last Post: 03-22-2011, 05:02 AM
  4. Nested loops
    By Aestuv in forum New To Java
    Replies: 3
    Last Post: 02-11-2011, 12:40 AM
  5. nested for loops
    By Implode in forum New To Java
    Replies: 4
    Last Post: 09-01-2009, 09:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •