建立一个文本文件,其内容如下。对于任一给定的单词,在该文本中找寻匹配的字符串,输出结果
Information security means protecting
information and information systems from unauthorized access, use, disclosure,
disruption, modification, or destruction. The terms information security,
computer security and information assurance are frequently used
interchangeably.
具体要求:
1、实现文件的读取操作,而不是将文本以字符串形式预存于程序中
2、进行单词匹配时,不区分大小写
3、统计需要匹配的单词在该文本中出现的次数和位置(即该单词是文本的第几个单词),并输出
4、对于基本匹配但不完全匹配的单词,能够给出提醒信息(例如,当用户试图匹配单词“securite”时,系统能够提示用户,是否是需要匹配“security”)
最好是java的图形化界面,其他的也可以