Java String Examples

Java String Array Example

Want to learn quickly?
Try one of the many quizzes. More than Java 400 questions with detailed answers.

Add Comment

  • Given an array of strings as input, return an array of all strings that have repeated chars that appear together. For e.g. in “hello” l and in “summer” s is a repeated char that appears together. However in “robot” o is not a repeated char as it does not appear together.
    repeatChars({“hello”,”robot”,”summer”,”elephant”}) = {“hello”,”summer”}

Sponsors

Facebook Fans