Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Please Help: Need Help with my Nested Loop

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Thanked 0 Times in 0 Posts

    Post Please Help: Need Help with my Nested Loop

    Im having a lot of difficulties with this nested loopScan 3.jpg

    So far this is all i have but i know its wrong so can someone please help me
    public class LincolnField {

    * @param args
    public static void main(String[] args) {
    // TODO Auto-generated method stub

    for(int i = 0; i <= 20; i++)
    /*for(int j= 1; j <= 36; j++)

    for(int i = 1; i <= 9; i++)
    System.out.println("_/" + "\\_");
    for(int j = 0; j <= 22; j++)


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,614 Times in 2,564 Posts

    Default Re: Please Help: Need Help with my Nested Loop

    Please Edit your post and wrap your code with
    to get highlighting and preserve formatting.

    Can you post the program's output, explain what is wrong with it and show what it should be?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Please Help: Need Help with my Nested Loop
    By hiroprotagonist in forum What's Wrong With My Code?
    Replies: 5
    Last Post: November 20th, 2012, 03:49 PM
  2. Nested For Loop!
    By samadniz in forum Object Oriented Programming
    Replies: 3
    Last Post: September 3rd, 2012, 04:03 PM
  3. Help me out with this nested for loop plz..
    By samadniz in forum Loops & Control Statements
    Replies: 3
    Last Post: September 3rd, 2012, 10:00 AM
  4. Nested for loop
    By wolf_fcknHaley33 in forum Loops & Control Statements
    Replies: 2
    Last Post: May 23rd, 2012, 08:49 AM
  5. nested loop
    By b109 in forum Java Theory & Questions
    Replies: 1
    Last Post: May 30th, 2010, 10:05 AM

Tags for this Thread