This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes In java pls.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "In java pls.." Watch "In java pls.." New topic

In java pls..

cathy joaqs

Joined: Nov 14, 2004
Posts: 2
Hi guys,I want to write a program which prints '*' in a diamond shape.
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
What have you done so far? This sounds a lot like a homework assignment, and it seems someone else in your class is asking for help with it, too. If you post your own ideas about how to get started, there are a lot of people here that will be more than willing to help clarify any parts you don't understand.

As a hint, you will probably need to use a for loop, or even a couple of nested for loops.

I hope you come back with some specific questions. Feel free to post short snippets of code as well as compiler errors or any other information that will describe the problems you encounter along the way.

Good Luck and Keep Coding!


Java API Documentation
The Java Tutorial
Matt Fielder
Ranch Hand

Joined: Oct 27, 2004
Posts: 158
Sounds like you and surya sadhu are in the same class.
Fisher Daniel
Ranch Hand

Joined: Sep 14, 2001
Posts: 582
You can have the answer here

Hope this help
It is sorta covered in the JavaRanch Style Guide.
subject: In java pls..