This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Department Chart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Department Chart" Watch "Department Chart" New topic

Department Chart

shumani edzani

Joined: Oct 03, 2008
Posts: 9

i want to print department chart with this code and the code is unable to do that please help

[edit]Add code tags. CR[/edit]
[ October 07, 2008: Message edited by: Campbell Ritchie ]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
So ... what does the code do? Where does it go wrong?

In the future, please UseCodeTags when posting code of any length.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 43935
Originally posted by Ulf Dittmer:
So ... what does the code do? Where does it go wrong?
It appears to return null, which looks to me as though it would be better with void return type. It also declares "Exception," and catches it simultaneously. Both those features will make that method hard to use.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Department Chart
It's not a secret anymore!