Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2013
    Posts
    1
    Rep Power
    0

    Default I need some help

    Ok so i am trying to make a half diamond out of *'s and just something is going wrong I need some help.

    public class learning
    {

    public static void main(String[] args)
    {
    int input = Integer.parseInt(args[0]);
    {

    for(int i = 1; i<input; i++)
    for(int j = 1; j<input; j++)
    {
    System.out.println("*");

    }
    }
    }
    }

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,784
    Rep Power
    7

    Default Re: I need some help

    Quote Originally Posted by Ian_computerman View Post
    something is going wrong
    That provides zero information. Are we supposed to guess what went wrong. How about you describe what went wrong. Error message, incorrect output, you burnt your toast!

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: I need some help

    Quote Originally Posted by Ian_computerman View Post
    I need some help
    Please go through the Forum Rules with special reference to the third paragraph. Also go through the Guide For New Members and BB Code List - Java Programming Forum - Learn Java Programming and edit your post accordingly.


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

Tags for this Thread

Posting Permissions

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