id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Warmup 1Searching2

prev  |  next  |  chance
public static boolean search(String a, String b, String c) {
    int len = c.length();

    if (a.contains(c))
        return true;

    if (b.contains(c))
        return true;

    return false;
}
Function Call  Return Value
search("Bohemian", "Rhapsody", "pa")
search("Hello", "World", "!")
search("!!", "??", "aaaa")
search("Ok", "Then...", "...")
search("Hello", "World", "e")
search("Computational", "Thinking", "Hi")

Experiment with this code on Gitpod.io

⬅ Back