String Contains in Java

public class StringContains {
        public static void main(String args[]){
                String str1 = "Forget Code";
                String str2 = "Forget";

                boolean blnFound = str1.contains(str2);
                System.out.println("String contains another string? : " + blnFound);
             
        }
}