Store Unicodes in an arraylist or somewhere (you could access), get the unicode, compare it with the stored unicodes and place the character to the output.