Counting letter occurrence

前端 未结 4 435
隐瞒了意图╮
隐瞒了意图╮ 2021-01-17 05:19

The program needs to count and display the number of times that the specified charector appears in the text file.

Currently turning up zero for the total. I\'m not i

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-17 05:52

    String line=""
    while(inputFile.hasNext()) {
      line = inputFile.nextLine();
      for(int i=0; i

提交回复
热议问题