Is this homework? Have you tried anything yet? If you've tried something and you're stuck, let us see what you've done and we'll help. In addition, since this doesn't really pertain to the SCJP certification, I'm moving this to Java in General (Beginner). Corey
Are the duplicates allowed in the first place? If not, a HashSet may be a more appropriate data structure. If you insist on using an array, consider an ArrayList collection. Eugene. [ March 31, 2003: Message edited by: Eugene Kononov ]
No Duplicates are not allowed in first place. Actually first place is a key. Had it been one-dimesional array, I would have used HashSet. I don't know for 2d array. Could anybody help me as I'm not an experienced guy in java.