Skip to content

Extending Project to Level 5

Englishificational edited this page Apr 22, 2021 · 2 revisions
  1. Unzip RandomGenerator.zip and place the cs2030 folder into your main directory.
  2. Move your non-main files into cs2030/simulator
  3. Add package cs2030.simulator; to the top of your non-main files and change your class, constructors and methods to be public.
  4. Add import cs2030.simulator.YourClassFiles; to the top of your MainX files in your main directory.
  5. I used RandomGenerator directly in MainX, so I created a public wrapper class in cs2030/simulator so MainX can access it.