₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,153 members, 8,420,579 topics. Date: Friday, 05 June 2026 at 04:01 AM

Toggle theme

Coding Challenge 4: Finding Strings Within Strings - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingCoding Challenge 4: Finding Strings Within Strings (872 Views)

1 Reply (Go Down)

Coding Challenge 4: Finding Strings Within Strings by Fayimora(op): 1:43pm On Jul 07, 2011
Challenge
Your task is to implement using iteration recursion a method that checks if a string is in a larger string, i.e a substring in a string.
Given the word "Mississipi" and a String 'sip', your method should return true.

Further more, implement an integer method that returns the starting position of the smaller string, in this case, sip. So in total, given the above inputs you program should print

true
6

Goodluck.
Re: Coding Challenge 4: Finding Strings Within Strings by Nobody:
Re: Coding Challenge 4: Finding Strings Within Strings by Fayimora(op): 6:00pm On Jul 07, 2011
You are supposed to have 2 methods, A boolean and an int method
Re: Coding Challenge 4: Finding Strings Within Strings by Nobody:
1 Reply

Mini Web Application Coding Challenge For ProgrammersJava Coding Challenge: Task SchedulerCoding Challenge 5: Substring Generator234

Ideas on this?sellAdsense For Website Owners For Sale. Working Well