Java tutorial
//package com.java2s; public class Main { public static boolean containStr(String totalStr, String destStr) { if (totalStr != null) return totalStr.indexOf(destStr) >= 0; return false; } }