Extending Project to Level 5 - nus-cs2030/2021-s2 GitHub Wiki
- Unzip RandomGenerator.zip and place the cs2030 folder into your main directory.
- Move your non-main files into cs2030/simulator
- Add
package cs2030.simulator;
to the top of your non-main files and change your class, constructors and methods to be public.
- Add
import cs2030.simulator.YourClassFiles;
to the top of your MainX files in your main directory.
- I used
RandomGenerator
directly in MainX, so I created a public wrapper class in cs2030/simulator so MainX can access it.