问题描述:1、有两个字符串;分别是:
String str=“Mr. Jones, of the Manor Farm, had locked the hen-houses for the night.”;//正确的
String str=“Mr. Jones, off the Mannor Farm, head locked the hen-houses for the night.”;//错误的 off Mannor head
现在两个字符串对比查找出不相同元素 例如:错误的off Mannor head 找出即可,并且知道错误元素位置,
2.错误元素 off Mannor head 在str位置。我怎么来做比较好,谢谢 |
|