You are going about your exercise the wrong way. You ought to write down very carefully and very simply what you need to do, with pencil and paper. If you use words with more than one syllable, then it doesn't count as "very simply".
Joined: Jul 23, 2010
I'm really sorry about that.... I was not aware of the rules(Writing) at that time.....really sorry about it....
So anybody who can help to build this triangle
i need the triangle with asterics...as i have shown above.......
1) printing the correct number of '*' characters on each line
2) spacing them correctly.
You can do either part first. once you have that working, add the second. I'd try and find some relationship between the number of things (spaces or *'s) and the line number (i.e. loop counter) I'm currently on.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Joined: Oct 13, 2005
I earlier wrote: . . . please note what is says on the "Beginning Java" contents page.
We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers.
It does not favours to anybody simply to hand out an answer . . .
Naman Patidar, did you not see that post? I have taken your solution out
And I agree with Fred that such an exercise is much easier if broken into smaller parts.