

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A cheat sheet that provides information on constructing various collections in Java. It includes methods found in all collections, methods found in both lists and sets, list methods, stack methods, and queue methods. The cheat sheet is useful for students studying Java programming and data structures.
Typology: Cheat Sheet
1 / 2
This page cannot be seen from the preview
Don't miss anything!


List
public class IntTreeNode { public int data; // data stored in this node public IntTreeNode left; // reference to left subtree public IntTreeNode right; // reference to right subtree public IntTreeNode(int data) { ... } public IntTreeNode(int data, IntTreeNode left, IntTreeNode right) {...} } public class IntTree { private IntTreeNode overallRoot; methods } public class ListNode { public int data; public ListNode Next; } public class LinkedIntList { private ListNode front; methods }