+ 1
Computer java question.
String x; // used to store any sentence with multiple words . String y; // used to store a single word string. Write a single line statement using String functions to do : Check whether the string y is present in string x or not.
1 ответ
+ 4
boolean tf = "Your string sentence x here".toLowerCase().contains("your word y here".toLowerCase());