Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
List students = Arrays.asList("Deepak", "Bhawna", "Charmy", "Vinisha");
// Create a Pvector collection.
PVector pVector1 = TreePVector.from(students);
PVector rahul = pVector1.plus("Rahul");
System.out.println(pVector1); // Output - [Deepak, Bhawna, Charmy, Vinisha]
System.out.println(rahul); // Output - [Deepak, Bhawna, Charmy, Vinisha, Rahul]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment