is there any command available that can print all newly created methods in current jshell session?
Something similar to /list but only for methods
Asked
Active
Viewed 230 times
7
Naman
- 21,685
- 24
- 196
- 332
Niraj Sonawane
- 8,519
- 8
- 64
- 96
1 Answers
4
You are looking for the command
/methods -all
which prints all the methods including those added when JShell was started, and methods that failed, were overwritten, or were dropped.
For active methods declared by you, use it simply without any argument as :
/methods
Naman
- 21,685
- 24
- 196
- 332