Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Department Chart

 
shumani edzani
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So ... what does the code do? Where does it go wrong?

In the future, please UseCodeTags when posting code of any length.
 
Campbell Ritchie
Sheriff
Posts: 48910
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic