« Back
package com.string; public class StringContains { public static void main(String[] args) { String s = "hello codersarts"; System.out.println(s.contains("ell")); System.out.println(s.contains("help")); } }
true
false
×
Report a Problem:
Description:
Submit