Results 1 to 8 of 8
Like Tree1Likes
  • 1 Post By awinston

Thread: Need help from pros in java"please Read"

  1. #1
    Join Date
    Jul 2012
    Posts
    4
    Rep Power
    0

    Default Need help from pros in java"please Read"

    hello i'm new in java. but i'd like to learn more..
    can someone help me in using "for,while and do while loop".
    i have a problem making these.



    Need help from pros in java"please Read"-ass.jpg





    it would be a pleasure if you could help me with this simple problem of mine.. Thanks

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Need help from pros in java"please Read"

    Don't double post, and don't post beginner questions in the Advanced Java section. Your other thread has been removed.

    Please go through all of the following:
    Forum Rules -- especially the second and third paragraphs
    Guide For New Members
    BB Code List - Java Programming Forum
    How to ask questions the smart way

    Note that this is a forum, not a free homework service. To get help here, you have to show some effort and make it clear what exactly you need help in understanding.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Join Date
    Jul 2012
    Posts
    4
    Rep Power
    0

    Default Re: Need help from pros in java"please Read"

    sorry for bothering. but in a way that i want to learn more about java..
    sometimes starts with questioning someone more familiar with it...

    db ^_^

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Need help from pros in java"please Read"

    Six minutes isn't long enough to read through the four web pages I linked. My conclusion is that you aren't interested in taking advice, you're just looking for some sucker to do your homework for you.

    I invite you to prove me wrong.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    Join Date
    Jul 2012
    Posts
    4
    Rep Power
    0

    Default Re: Need help from pros in java"please Read"

    public static void main(String[] args)
    {

    int Array[] = new int [5];

    for(int number = 1;number <= Array.length;number++)
    {
    for(int number2 = 1;number2 <= number;number2++)
    {
    System.out.print(number+" ");
    }
    System.out.println();
    }

    }


    }

    here... i just got confused in the while loop so... i hoped someone could help me here...
    i'm not looking for someone to make my assignment.. 4hrs of thinking for the while and do while for the number 1.. and i just cant figure it out..

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Need help from pros in java"please Read"

    You didn't read the links did you, because if you had you might have thought ot add [code] tags [/code] to your code.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  7. #7
    awinston is offline Student
    Join Date
    Jul 2012
    Location
    United States
    Posts
    328
    Rep Power
    3

    Default Re: Need help from pros in java"please Read"

    Quote Originally Posted by latenight7dusk View Post
    Java Code:
    public static void main(String[] args)
        {
    
        	int Array[] = new int [5];
    
        for(int number = 1;number <= Array.length;number++)
        	{
        		for(int number2 = 1;number2 <= number;number2++)
        		{
        			System.out.print(number+" ");
        		}
        			System.out.println();
        	}
    
        }
    
    
    }
    here... i just got confused in the while loop so... i hoped someone could help me here...
    i'm not looking for someone to make my assignment.. 4hrs of thinking for the while and do while for the number 1.. and i just cant figure it out..
    I don't see a while loop here, actually. I think that you might mean "for-loop." Since you mentioned that you need to use a for-loop, while loop, and do-while loop in your first post, I recommend that you learn about those first: The while and do-while Statements (The Java™ Tutorials > Learning the Java Language > Language Basics) + The for Statement (The Java™ Tutorials > Learning the Java Language > Language Basics)

    Once you understand the mechanics of what you are trying to do, you now have the power to complete this assignment. I have full faith that you can figure out the logic necessary to produce those patterns.
    latenight7dusk likes this.
    "Success is not final, failure is not fatal: it is the courage to continue that counts." - Winston Churchill

  8. #8
    Join Date
    Jul 2012
    Posts
    4
    Rep Power
    0

    Default Re: Need help from pros in java"please Read"

    thanks man ... all i need is an advice... and a PDF java tutorials file XD...

Similar Threads

  1. Replies: 5
    Last Post: 12-21-2011, 07:44 PM
  2. Replies: 8
    Last Post: 11-05-2010, 12:03 AM
  3. Java, Military Format using "/" and "%" Operator!!
    By sk8rsam77 in forum New To Java
    Replies: 11
    Last Post: 02-26-2010, 04:03 AM
  4. Replies: 1
    Last Post: 10-20-2008, 08:35 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
  •