It's going on 4 hours now, and I have yet to find an answer on how to do this.
All I want to do access and manipulate data in a list, from another class.
The 2 classes:
GetList.java
public class GetList {
public static void main(String args[])
{
MakeList xx = new MakeList();
System.out.println(xx.NameHere() + " " ); // < < < < Error
}
}
And
MakeList.java
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class MakeList {
public List<String> NameHere (String args[])
{
List<String> listname = new ArrayList<String>();
listname.addAll(Arrays.asList("e","f","g") );
return listname;
}}