export/copy the list (1) see inside the program, export the list and add it to whatever app or program you use to make java function (2) copy and paste the list then run the program (I use "Eclipse IDE for Java Developers 2020-06" to program with Java and I would recommend it)
All code by me this is my first Java program. this program uses console