I have a function that I want to output a list of all the names in the object. What is the easiest way to do this?
Requirement object has a names variable and a method called getChildren which contains a list of Requirements.
Void updateItems(Requirement r)
{
System.out.println(r.getChildren.names) //doesnt work
}
I want to output all the names of the children objects like this:
Hello1, Hello2, Hello3