- code about gtk++ for MID intel develop in Linux moblin. interface write as language c in linux
- shop 完整的ASP电子商务网站
- Modbus-Rtu-Library-for-avr atmel avr modbus library
- vc-P-P--image-processing-code vc++图像处理源代码
- CRM crm客户管理系统
- -pcb下载站 火焰检测传感器程序与原理图 关于火焰传感器ttl编程的使用方法(Flame detection sensor procedures and schematics)
文件名称:JavaCodeAnalyzer
-
所属分类:
- 标签属性:
- 上传时间:2015-03-04
-
文件大小:46.27kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Java语言共有50个关键字(自行查找相关文档),已知Java源程序是以“.java”为扩展名的文本文件。可以考虑在Java源程序中共有3类元素:
<1> 代码行,可运行的Java源代码;
<2> 注释行,3种注释均可;
<3> 空行,既无代码,也无注释;
编写一个类名为JavaCodeAnalyzer的类,实现以下功能:
<1> 该类可以以一个Java源程序文件名创建一个对象,如果文件不存在,或扩展名不是“.java”,应提示文件错误;
<2> 对该源程序文件进行分析其中的:代码行数、注释行数和空行数。说明:行是指以回车结束的。
<3> 统计并按从多到少输出出现次数最多的5个关键字及其出现次数。
<4> 统计分析的结果输出到名为:result.txt的文本文件中,输出格式如下:
分析XXXXX.java源程序的结果:
代码行数:xxx,占xx.xx
注释行数:xxx,占xx.xx
空白行数:xxx,占xx.xx
源程序总行数:xxxx
出现最多的5个关键字是:
关键字1:xx次
关键字2:xx次
关键字3:xx次
关键字4:xx次
关键字5:xx次
分析时间:年-月-日,时-分-秒-A total of 50 Java language keyword (self locate relevant documents), known Java source code is .java extension of the text file. There are three types of elements can be considered in the Java source code:
<1> line of code, you can run the Java source code
<2> comment line, three kinds of comments can be
<3> a blank line, neither the code nor comment
Write a class named class JavaCodeAnalyzer achieve the following functions:
<1> class can create an object with a Java source file name, if the file does not exist, or the extension is not a .java , should prompt file error
<2> where the source files are analyzed: the number of lines of code, comments, number of rows and empty rows. Descr iption: A row is ending with a carriage return.
<3> Statistical press more to less output occurs most frequently five keywords and number of occurrences.
<4> The results of statistical analysis of the output to a file named: result.txt text file, t
<1> 代码行,可运行的Java源代码;
<2> 注释行,3种注释均可;
<3> 空行,既无代码,也无注释;
编写一个类名为JavaCodeAnalyzer的类,实现以下功能:
<1> 该类可以以一个Java源程序文件名创建一个对象,如果文件不存在,或扩展名不是“.java”,应提示文件错误;
<2> 对该源程序文件进行分析其中的:代码行数、注释行数和空行数。说明:行是指以回车结束的。
<3> 统计并按从多到少输出出现次数最多的5个关键字及其出现次数。
<4> 统计分析的结果输出到名为:result.txt的文本文件中,输出格式如下:
分析XXXXX.java源程序的结果:
代码行数:xxx,占xx.xx
注释行数:xxx,占xx.xx
空白行数:xxx,占xx.xx
源程序总行数:xxxx
出现最多的5个关键字是:
关键字1:xx次
关键字2:xx次
关键字3:xx次
关键字4:xx次
关键字5:xx次
分析时间:年-月-日,时-分-秒-A total of 50 Java language keyword (self locate relevant documents), known Java source code is .java extension of the text file. There are three types of elements can be considered in the Java source code:
<1> line of code, you can run the Java source code
<2> comment line, three kinds of comments can be
<3> a blank line, neither the code nor comment
Write a class named class JavaCodeAnalyzer achieve the following functions:
<1> class can create an object with a Java source file name, if the file does not exist, or the extension is not a .java , should prompt file error
<2> where the source files are analyzed: the number of lines of code, comments, number of rows and empty rows. Descr iption: A row is ending with a carriage return.
<3> Statistical press more to less output occurs most frequently five keywords and number of occurrences.
<4> The results of statistical analysis of the output to a file named: result.txt text file, t
(系统自动生成,下载前可以参看下载内容)
下载文件列表
JavaCodeAnalyzer/
JavaCodeAnalyzer/build/
JavaCodeAnalyzer/build.xml
JavaCodeAnalyzer/build/built-jar.properties
JavaCodeAnalyzer/build/classes/
JavaCodeAnalyzer/build/classes/file/
JavaCodeAnalyzer/build/classes/file/JavaCodeAnalyzer$1.class
JavaCodeAnalyzer/build/classes/file/JavaCodeAnalyzer.class
JavaCodeAnalyzer/build/classes/file/JavaCodeAnalyzer.java
JavaCodeAnalyzer/build/empty/
JavaCodeAnalyzer/build/generated-sources/
JavaCodeAnalyzer/build/generated-sources/ap-source-output/
JavaCodeAnalyzer/dist/
JavaCodeAnalyzer/dist/README.TXT
JavaCodeAnalyzer/manifest.mf
JavaCodeAnalyzer/nbproject/
JavaCodeAnalyzer/nbproject/build-impl.xml
JavaCodeAnalyzer/nbproject/genfiles.properties
JavaCodeAnalyzer/nbproject/private/
JavaCodeAnalyzer/nbproject/private/config.properties
JavaCodeAnalyzer/nbproject/private/private.properties
JavaCodeAnalyzer/nbproject/private/private.xml
JavaCodeAnalyzer/nbproject/project.properties
JavaCodeAnalyzer/nbproject/project.xml
JavaCodeAnalyzer/src/
JavaCodeAnalyzer/src/file/
JavaCodeAnalyzer/src/file/JavaCodeAnalyzer.java
JavaCodeAnalyzer/String.java
JavaCodeAnalyzer/build/
JavaCodeAnalyzer/build.xml
JavaCodeAnalyzer/build/built-jar.properties
JavaCodeAnalyzer/build/classes/
JavaCodeAnalyzer/build/classes/file/
JavaCodeAnalyzer/build/classes/file/JavaCodeAnalyzer$1.class
JavaCodeAnalyzer/build/classes/file/JavaCodeAnalyzer.class
JavaCodeAnalyzer/build/classes/file/JavaCodeAnalyzer.java
JavaCodeAnalyzer/build/empty/
JavaCodeAnalyzer/build/generated-sources/
JavaCodeAnalyzer/build/generated-sources/ap-source-output/
JavaCodeAnalyzer/dist/
JavaCodeAnalyzer/dist/README.TXT
JavaCodeAnalyzer/manifest.mf
JavaCodeAnalyzer/nbproject/
JavaCodeAnalyzer/nbproject/build-impl.xml
JavaCodeAnalyzer/nbproject/genfiles.properties
JavaCodeAnalyzer/nbproject/private/
JavaCodeAnalyzer/nbproject/private/config.properties
JavaCodeAnalyzer/nbproject/private/private.properties
JavaCodeAnalyzer/nbproject/private/private.xml
JavaCodeAnalyzer/nbproject/project.properties
JavaCodeAnalyzer/nbproject/project.xml
JavaCodeAnalyzer/src/
JavaCodeAnalyzer/src/file/
JavaCodeAnalyzer/src/file/JavaCodeAnalyzer.java
JavaCodeAnalyzer/String.java
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
