并不像他们所说的那么复杂,选中此选项您不会后悔。
String sentence = "Check this answer and you can find the keyword with this pre";String search = "keyword";if ( sentence.toLowerCase().indexOf(search.toLowerCase()) != -1 ) { System.out.println("I found the keyword");} else { System.out.println("not found");}您可以
toLowerCase()根据需要更改。



