Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #25229

Re: Creating a diamond shape wtih java

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!fx29.iad.POSTED!not-for-mail
From Arved Sandstrom <asandstrom2@eastlink.ca>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: Creating a diamond shape wtih java
References <ccc6b9c6-617f-4a17-b14c-9dab366d9025@googlegroups.com> <BLSVt.125549$ob7.52360@fx03.iad> <l09buc$1sl$1@dont-email.me>
In-Reply-To <l09buc$1sl$1@dont-email.me>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Lines 52
Message-ID <01%Vt.267521$Z84.78576@fx29.iad> (permalink)
X-Complaints-To abuse@newsgroups-download.com
NNTP-Posting-Date Thu, 05 Sep 2013 12:44:44 UTC
Organization Public Usenet Newsgroup Access
Date Thu, 05 Sep 2013 09:44:44 -0300
X-Received-Bytes 2340
Xref csiph.com comp.lang.java.programmer:25229

Show key headers only | View raw


On 09/05/2013 04:32 AM, Jeff Higgins wrote:
> On 09/04/2013 11:20 PM, Arved Sandstrom wrote:
>> On 09/04/2013 09:15 PM, johnnyringo888@gmail.com wrote:
>>> I have to create a diamond shape for my java class.
>>>
>>>       *
>>>      ***
>>>     *****
>>>    *******
>>>   *********
>>>    *******
>>>     *****
>>>      ***
>>>       *
>>>
>>> Here is the code I have written so far. Can any provide assistance?
>>>
>> [SNIP]
>>
>> I agree with Eric, kudos for acknowledging that this is for a class.
>>
>> Here's another hint: the solution is always in your head, not in code.
>> Code is just an implementation of a solution.
>>
>> Pseudocode is often a good first approach. Pen (or pencil) and paper -
>> describe how you'd solve that problem. You can even execute and debug
>> pseudocode. :-)
>
> For my own future memento.
> Attempto Controlled English (ACE)
> <http://attempto.ifi.uzh.ch/site/>
>
>>
>> 9 times out of 10, we make mistakes because we are hasty. We are not
>> Donald Knuthian. We leap into coding.
>>
>> AHS
>
Scan http://www.codinghorror.com/blog/2009/05/pseudocode-or-code.html

And read the comments too.

Everyone is different as to what works. But I've often found that laying 
out a program structure in comments first works pretty good. I mentioned 
Knuth on purpose too: literate programming.

AHS

-- 
When a true genius appears, you can know him by this sign:
that all the dunces are in a confederacy against him.
-- Jonathan Swift

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Creating a diamond shape wtih java johnnyringo888@gmail.com - 2013-09-04 17:15 -0700
  Re: Creating a diamond shape wtih java Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-09-04 20:33 -0400
    Re: Creating a diamond shape wtih java Roedy Green <see_website@mindprod.com.invalid> - 2013-09-07 14:10 -0700
  Re: Creating a diamond shape wtih java John Stephens <johnnyringo888@gmail.com> - 2013-09-04 17:46 -0700
  Re: Creating a diamond shape wtih java Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-09-05 00:20 -0300
    Re: Creating a diamond shape wtih java Jeff Higgins <jeff@invalid.invalid> - 2013-09-05 03:32 -0400
      Re: Creating a diamond shape wtih java Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-09-05 09:44 -0300
  Re: Creating a diamond shape wtih java John Stephens <johnnyringo888@gmail.com> - 2013-09-08 09:00 -0700

csiph-web