package CurrentGame; //Class for holding current characters public class Party { //This works :) public static void partygen() { // declares an array of integers Person.Info Peep = new Person.Info(); Peep.name="one"; System.out.println(Peep.name); //This doesn't work :( Person.Info[] PeepArr = new Person.Info[2]; PeepArr[1].name ="one"; System.out.println(PeepArr[1].name); } }
PeepArr[1]
Person.Info[] PeepArr = new Person.Info[2]; PeepArr[1].name = new Person.Info(); PeepArr[1].name ="one"; System.out.println(PeepArr[1].name);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)