reset password
Author Message
sirgeeooh
Posts: 5
Posted 23:03 Mar 03, 2017 |

I'm really having trouble with displaying whether the first string is a substring of the other and was wondering if someone can help me out.

Thanks

jzunig20
Posts: 38
Posted 23:28 Mar 03, 2017 |

you can use contains, but i don't know how to determine whether it appears at beginning middle or end 

KA1997
Posts: 31
Posted 00:18 Mar 04, 2017 |

Also, you have to ignore the case. I don't know how to do that because the "contains" method doesn't have ignore case.

jzunig20
Posts: 38
Posted 00:19 Mar 04, 2017 |

you can method chain 

kknaur
Posts: 540
Posted 09:02 Mar 04, 2017 |

Be sure to familiarize yourself with all the methods that we went over in class.  You should be writing test programs which use these methods so you know how they work and that should give you an idea of how to apply them to the homework problems.  Also, even if there isn't a direct "ignores case" version of a method, doesn't mean there isn't a way to accomplish what you want.  You might have to do a few extra steps to get there.