Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. neeljoshi86

    How do I check for duplicates in an ArrayList?

    I see your point Mikey - although, your code returns the number of duplicates in an array (unless I am mistaken), when what I was trying to acheive was to retreive the number of times string "xyz" was duplicated in an array. Since my original post, I have modified my code and now it is working...
  2. neeljoshi86

    How do I check for duplicates in an ArrayList?

    Thanks guys. From what Dian had suggested I realised that earlier in my code I had defined allResponses as this: ArrayList<String[]> allResponses = new ArrayList<String[]>(); Once I had changed this to: ArrayList<String> allResponses = new ArrayList<String>(); I was then effectivley...
  3. neeljoshi86

    How do I check for duplicates in an ArrayList?

    Hi there. I have an ArrayList with a bunch of String values in it. I want to be able to check if a particular string appears X amount of times. To add some context to the dilemma, the strings are date/times (in the format DD/MM/YYYY-HHMM) for which certain attendees are available for a meeting...

Part and Inventory Search

Back
Top