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.
I have a some jdbc stuff in my constructor and i want to use printStackTrace in my catch block so that i can see the error msg. However, it is not working and here is the msg i saw after compiling "'void' type not allowed here". Can anyone explain to me how to use printStackTrace()? Thank you!
I think you are passing printStackTrace() as a parameter to System.out.println().just check your code, if you are doing so. Actually simple printStackTrace() is enough and you need not pass it to System.out.println() for printing it. If you still hv this problem, plz post the code you hv written in catch block.
------------------ Amit Agrawal, New Delhi, India. [This message has been edited by A Agrawal (edited July 27, 2001).]