How to create and display a list in Java?
- by lox
i have to create a list of ,let's say 50 people, (in Java) and display the list, and i don't really know how to do that. so this is what i have tried to do so far . please correct and complete some of my code .
public class Person {
String name;
String stuff;
}
public class CreatePerson {
public static void ang() {
…