I am attempting to create a shell in Java, and one part of this is implementing the Uniq function in the bash shell. The way Uniq works is that it checks if the previous lin