id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

srp4379@lausd.net > substringOther
prev  |  next  |  chance

Given two strings, return true if either of the String parameters is a substring of the other, IGNORING upper/lower case differences (the method should be CASE INSENSITIVE). Your code should consider both partial and full/complete matches. Your code must also use indexOf().


substringOther("000hat", "hat") → true
substringOther("foot", "FOOT000") → true
substringOther("hand", "footHaNdarm") → true

...Save, Compile, Run (ctrl-enter)

public boolean substringOther(String a, String b) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 1

Copyright Nick Parlante 2017 - privacy