logo image

What are all the snippets are automatically loaded with Java9 JShell

1 Answer

2 years ago by

You can see what are all the snippets loaded on startup by using the command /list -start This will output the following

jshell> /list -start

  s1 : import java.io.*;
  s2 : import java.math.*;
  s3 : import java.net.*;
  s4 : import java.nio.file.*;
  s5 : import java.util.*;
  s6 : import java.util.concurrent.*;
  s7 : import java.util.function.*;
  s8 : import java.util.prefs.*;
  s9 : import java.util.regex.*;
 s10 : import java.util.stream.*;

2 years ago by Megamind