}
public static void main(String[] args) {
/* Create linked list */
int[] vals = {1, 3, 7, 5, 2, 9, 4};
LinkedListNode head = new LinkedListNode(vals[0], null, null);
LinkedListNode current = head;
for (int i = 1; i < vals.length; i++) {
current = new LinkedListNode(vals[i], null, current);
}
System.out.println(head.printForward());
/* Partition */
LinkedListNode h = partition(head, 5);
/* Print Result */
System.out.println(h.printForward());
}