If i declare and ArrayList as follows "public static ArrayList<Media> mediaList = new ArrayList<Media>();" How can i access it in another class (main class)?
package Projekt; import Projekt.Media.rating; public class MainTest { static MediaHandler myreg ; public static void main(String[] args) { myreg.addMovie(title, playTime, year, seen, directory, path, rating.four, quality, subtitles, language, writer); } }
I also have the variables declared but didn't include them for readability.