What are all the snippets are automatically loaded with Java9 JShell

Views: 3 Ask New Question

On By

1 Answer

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.*;

On By

Answer This Question