Converting Java hashset function to Array
HashSet <Nodeimpl> Nodes=new HashSet <Nodeimpl>();
//Node Array Declaration
"// Hashset function
HashSet <Nodeimpl> Nodes=new HashSet <Nodeimpl>();
//Node Array Declaration
Node[] nodeArray = new Node[Nodes.size()];//Converting
Nodes.toArray(nodeArray);
return nodeArray;
"
No comments:
Post a Comment