易截截图软件、单文件、免安装、纯绿色、仅160KB

[vb]使用vb统计.java的行数

 工作需要,针对java文件,作了一个行数统计的工具。统计的主要代码如下:
    Set srcIn = fso.OpenTextFile(fileNm, ForReading)
    
    Do While Not srcIn.AtEndOfStream
        buf = srcIn.ReadLine
       
        'java总行数
        allLinex = allLinex + 1
        'java空白行
        If Not flg And Trim(Replace(buf, vbTab, "")) = "" Then
            'Debug.Print fileNm & ":" & allLinex
            blankLinex = blankLinex + 1
        End If
        'java注释行
        If flg Then
            If InStr(buf, "*/") > 0 Then
                flg = False
            End If
            commentLinex = commentLinex + 1
        ElseIf InStr(Trim(Replace(buf, vbTab, "")), "//") = 1 Then
            commentLinex = commentLinex + 1
        End If
        If InStr(Trim(Replace(buf, vbTab, "")), "/*") = 1 Then
            flg = True
            commentLinex = commentLinex + 1
        End If
        If flg An


相关文档:

用Rational Rose逆向工程(java)生成类图

 http://hi.baidu.com/suofang/blog/item/b4190de9846ea53eb80e2d1e.html
拿到了项目框架工程代码却没有uml图,那么方法之间的调用关系功能流转就不容易看出来,那么如何产生类图呢?
1.新建一个ROSE工程,选择J2EE模板,
2.如图
3.在出现的界面中,CLASSPATH中加入源代码的目录,加入支持的包,点'ADD RECURSIVE'点 ......

Java 基础常用功能语句

 
2009-08-18 15:49
////设置居中(注意,要在设置窗体大小下面设置该句)
this.setLocationRelativeTo(null);
********************
String[] kecheng = {"Java","英语","数学"};
   JComboBox jComboBox3 = new JComboBox(kecheng);  
JComboBox jComboBox2 = new JComboBox();
******* ......

JAVA配置JNDI数据源

 本案例是使用SQLSERVER2005作为数据源,使用TOMCAT6.0
第一步,把以下代码拷贝到tomcat的安装目录conf文件夹context.xml文件下。
数据库连接请修改
<Resource name="jdbc/demo"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.microsoft.sqlserver.j ......

JAVA编程题

1.现在输入n个数字,以逗号,分开;然后可选择升或者降序排序;按提交键就在另一页面显示按什么排序,结果为,提供reset
import java.util.*;
public class bycomma{
 public static String[] splitStringByComma(String source){
   if(source==null||source.trim().equals(""))
    ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号