登录
首页 » 算法 » java统计单词

java统计单词

于 2022-05-10 发布 文件大小:1.88 kB
0 189
下载积分: 2 下载次数: 1

代码说明:

资源描述 本java程序实现:统计文章中单词出现的次数,并显示出现过的行号。 程序功能实现方式如下: 1.输入一行,对行号计数(也可一次输入全部文本,对行号计数) 2.为一行里的单词建立一个临时的数组,遍历每一个单词:若在单词表中没有,添加进入单词表(word + count +line); 若存在,个数加一(对应word的count++,line加上当前行号)。 3.输出单词表。 属性列名,word:单词;  count:出现次数;   line:出现行数

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 解调
    本方案用于PIC与测量加速器和角度的角度传感器的连接。您必须创建一个mikroC项目并将这个C文件添加到这个项目中。请记住,不要修改此文件中的任何内容
    2022-11-19 20:35:03下载
    积分:1
  • 指纹识别源码
    基于Gabor的指纹识别系统,有源码,有Demo,指纹图像预处理,Gabor增强,二值化,细化,特征点提取,模板保存与匹配。
    2022-06-15 23:09:49下载
    积分:1
  • 根据前序序列和中序序列生成二叉树并进行遍历。
    根据前序序列和中序序列生成二叉树并进行遍历。-sequence and the sequence sequence sequence generation and binary tree traversal.
    2022-01-26 00:59:22下载
    积分:1
  • 复杂网络最短路径,详细而有条理,很有帮助
    复杂网络最短路径算法,详细而有条理,很有帮助-Complex network shortest path algorithm, detailed and structured, very helpful
    2023-07-24 18:00:03下载
    积分:1
  • 数值 RungeKutta
    数值算法 RungeKutta-numerical algorithm RungeKutta
    2023-07-10 22:45:02下载
    积分:1
  • massive mimo THP algrorithm
    应用背景On the Design of ZF and MMSE Tomlinson-Harashima Precoding in Multiuser MIMO Amplify-and-Forward Relay System,it is main described the mimo system in the multi-user  scenario.the main precoding algrithm is combined the zf precoding and the MMSE precoding.关键技术we design a zero-forcing (ZF) Tomlinson-Harashima precoding (THP) and a minimum mean square error (MMSE) THP for multiuser MIMO relay system with direct link. Based on these precoding structures, we propose the optimal combining weights of the ZF THP and the MMSE THP in half duplex relay system, and the sub-optimal weights of MMSE THP to reduce feedback channel state information(CSI). Through the Monte Carlo simulation, we verify that the optimal weights combining method outperforms the constant weights combining method. In addition, we confirm that the performance of the sub-optimal weights combining method is&
    2023-02-25 18:10:03下载
    积分:1
  • Levenberg-Marquardt
    文件中包含一篇关于Levenberg-Marquardt算法的详细介绍,和一个关于LM算法的简单实现
    2022-03-15 05:46:39下载
    积分:1
  • 数值分析中的N皇后问题,程序中含输入/显示界面,N的数值可在界面中自行设定。...
    数值分析中的N皇后问题,程序中含输入/显示界面,N的数值可在界面中自行设定。-Numerical Analysis of N Queen
    2022-07-02 00:25:13下载
    积分:1
  • CTM DAGANZO SIMILATION
    当高速公路交通堵塞的原因,如事故、短暂的失速、暂时拥挤的高速公路入口或出口等被消除或不再有效时,堵塞不会瞬间消失。这样做需要时间。这和红色交通信号灯前排队的汽车没什么区别,当绿灯亮时,红色交通信号灯不会立即消失。无论是高速公路还是街道,拥堵都需要时间消散,交通越拥挤,过程越长。在交通高峰期,高速公路拥堵的消失可能比最初的增长要长得多。不断演变的拥堵在高速公路上以与交通相反的方向移动,影响它远离最初原因的位置。驶出塞车的司机们没有看到任何异常,这让他们大吃一惊。
    2022-01-25 22:05:54下载
    积分:1
  • 用盛金公式解一元三次方程aX3+bX2+cX+d=0,(a,b,c,d∈R,且a≠0)。...
    用盛金公式解一元三次方程aX3+bX2+cX+d=0,(a,b,c,d∈R,且a≠0)。-Jin-Sheng Xie used the formula three times a dollar equation aX3 bX2 cX d = 0, (a, b, c, d ∈ R, and a ≠ 0).
    2022-07-09 03:58:39下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载