The following line will working perfectly fine because I manually input the "new item(1,2,3)" into the item array?
But what i'm trying to do here is loop through a file and push "new item(1,2,3)" dynamically into "Lines[] item"
Which I currently got no idea how to go about pushing it in. THe following image is what happens when i do ** item.(Function)**
Any advice?
Lines[] item
= {new item(0, 2, 1),
new item(0, 3, 4),
new item(0, 4, 2),
};
Test test = new Test(item);
// Test is a java file which will accept this
public Test(List<Lines> item) {
this.edges = edges;
}