if we have a Arraylist of type node then how we will iterate Arraylist node data
Arraylist how we get data?
Hey @amankumar7017
Enhanced for Loop
ArrayList children = new ArrayList<>();
for(Node node : children) {
}
if we have Arraylist<Arraylist> (graph situation) then how we print only vertex of graph (adjacency list )