algs4 official website link: here ;
Algs4 official website configuration tutorial: here ;//Just follow the above step by step
algs4 test data download: here ;
Some notes:
- It is best to use the next timeshift , if there is a problem with the environment configuration, it can be restored to the original version and reconfigured;
- Call the official library:
import edu.princeton.cs.algs4.*;
- If you want to input a file, copy the file to the same directory of the program;
- If the operation in drjava fails, try the terminal;
- When saving the program in drjava, do not change the default file name, otherwise it may get stuck, and then your code will be gone;