title: Java substring check
body: <p>I have a String2.  I want to check whether String2 exists in String1.  String1's length can be less or greater or equal than String2.  Also String2 can be null or empty sometimes.  How can I check this in my Java code?</p>