用代码实现以下需求
(1)有如下字符串"If you want to change your fate I think you
must come to the dark horse to learn java"(用空格间隔)
(2)打印格式:
to=3
think=1
you=2
//........
(3)按照上面的打印格式将内容写入到D:\\count.txt文件中(要求用高效流)
解题思路:
1,切割字符串
2,统计相同字符个数
3,打印字符串 + 个数
4,将字符串写入到 D