Merge two sorted array without duplicates

/**
 * MergeTwoSortedArrayWithoutDuplicates.java
 * 
 * Description: Write code to merge two arrays in sorted order such that
if an
 * integer is in both arrays, it only gets put into the new array once.
 * 
 * Follow up: What if you knew that one array was much longer than the
other? Could you optimize it?
 * 
 * @author John Qiao <qiaoshun8888@gmail.com> Date: Jan 25, 2014
 */