Scala综合案例
6. 综合实例
6.1 需求
- 统计单词出现次数
6.2 如何实现
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-0CfK7v4n-1655393698247)(assets/1649650988285.png)]
package com.gec.bigdata.scala.chapter07
import scala.collection.mutable.ArrayBuffer
import scala.io.{
BufferedSource, Source}
object Scala05_Collection_WordCount {
def main(args: Array[String]): Unit = {
// TODO 1. 读取文件,获取原始数据
//