Implement the getStackTrace() method, which must return the passed exception's entire stack trace as one string (a single String object).
Use an appropriate method from the Throwable class. It will help you write the stack trace to a StringWriter.
The main() method is not tested.
Writing a stack trace
- 14
Locked
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet