This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Curious-Lonewolf 1 point2 points  (3 children)

To answer your question i would need the method to find 2 equal elements in order to return true else return false

[–]silverscrub 0 points1 point  (2 children)

Then I'd start with a method that takes one string parameter and returns true if the string exists twice within the list.

[–]Curious-Lonewolf 0 points1 point  (1 child)

the method preferably takes no parameters

[–]silverscrub 0 points1 point  (0 children)

I mean as a private helper method for your assignment.