4 jshell> /! 2 + 2 $2 ==> 4 jshell> int z z ==> 0 jshell> /-1 int z; z ==> 0 jshell> /-4 2 + 2 $5 ==> 4 The snippets to re-evaluate may be specified by snippet ID or ID range. An ID range is represented as a two IDs separated by a hyphen, e.g.: 3-17 Startup and error snippets maybe used, e.g.: s3-s9 or e1-e4 Any number of IDs or ID ranges may be used, e.g.: /3-7 s4 14-16 e2 See also '/help id'. Finally, you can search backwards through history by entering Ctrl+R followed by the string to search for.