自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

bo_hai的专栏

博海软件

  • 博客(18)
  • 资源 (6)
  • 问答 (1)
  • 收藏
  • 关注

EJBFactory 设计方法。

tialContext;import javax.naming.NamingException;import javax.rmi.PortableRemoteObject;import javax.jms.JMSException;import javax.jms.ObjectMessage;import javax.jms.Queue;import javax.jms.QueueConnection;import javax.jms.QueueConnectionFac

2011-01-30 13:02:24 112

synchronized 同步块的实现。

......} 

2011-01-27 10:28:08 67

原创 java.lang.reflect.Method 中getWriteMethod() 的使用方法

d; } public void setId(String id) { this.id = id; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } } 二、测试类如下:import java.beans.BeanInfo;import jav

2011-01-25 17:01:37 651

原创 Attempted to lock an already-locked dir

2011-01-25 10:13:55 55

原创 讨论 Introspector 的简单使用

lic String getId() { return id; } public void setId(String id) { this.id = id; } public String getUsreName() { return usreName; } public void setUsreName(String usreName) { this.usreName = usreName; } } import java.beans.B

2011-01-21 17:02:18 76

原创 使用request.getAttribute() 获取 form 表单中数据的方法。

2011-01-20 17:43:12 715

原创 用JAVA实现折半查找

* @param end 结束下标 * @return 数据在数组中下标的位置,如果数据不在数组中,返回 -1 * 功 能:折半查找 */ public static int splitHalf(int[] arrayData,int searchData,int start,int end){ int index = (start + end)/2; int data = arrayData[index]; if(start > end ){

2011-01-20 09:55:24 220

原创 二叉树中查找算法。

thor hbliu * @param node * @param data * @return * 功 能:二叉树中查找数据元素 */ private Node searchNode(Node node,int data){ Node searchResutlNode = null; if(node == null){ return null; } if(node.data == data){ return node;

2011-01-19 13:19:37 94

原创 JAVA 二叉树的遍历

u * @param node * 功 能:二叉树后序遍历输出 */ private void PostOrder(Node node){ if (node == null){ return ; } PostOrder(node.leftNode); PostOrder(node.rightNode); System.out.print(node.data + " "); } /** * @

2011-01-19 09:52:11 87

原创 JAVA 实现二叉树。

<br />一、创建结点类:<br />public class Node { public Node leftNode; public Node rightNode; int data; /** * @author hbliu * @param newData */ public Node(int newData) { this.data = newData; this.leftNode = null; this.rightNode = nu

2011-01-18 13:35:00 852

JAVA 实现二叉树。

e(int newData) { this.data = newData; this.leftNode = null; this.rightNode = null; } }二、创建树类:package com.test.tree;public class BinaryTree { private Node root; /** * 功 能:创建一个空的二凡树 */ public BinaryTree() { root = nul

2011-01-18 13:35:00 54

现有系统中 弹出提示信息 的工作原理

ctionMessages().addMessage("导入成功!");b) pageInfo.success(); /* 没有明白这行代码在程序中的功能 */2. 在V页面引入 &lt;jsp:include page="/ShowMessage.jsp"/&gt; 。这样就可以弹出提示信息;3. V 页面和 C 页面使用相同JavaBean,其作用范围是:scope="session"注:程序不便在这里发布。

2011-01-14 10:30:00 99

原创 使用JAVA生成zip文件的方法:

<br /> public static void createZipFile(){ String [] fileNames = {"E://upload//glentry//test1.txt","E://upload//glentry//test2.txt", "E://upload//glentry//test3.txt","E://upload//glentry//test4.txt"}; String compressFileName = "E://upload//g

2011-01-13 15:28:00 1544

使用JAVA生成zip文件的方法:

}; String compressFileName = "E:\\upload\\glentry\\text.zip"; byte b[] = new byte[1024]; try { ZipOutputStream zout = new ZipOutputStream(new FileOutputStream(compressFileName)); for(int i = 0; i &lt; fileNames.length; i

2011-01-13 15:28:00 115

原创 FileWriter(String) 写文件换行的方法。

<br /> public static void TestBufferedWriter(){ try{ String filePath = "E://upload//glentry//test.txt"; File myFile = new File(filePath); if( !myFile.exists() ){ myFile.createNewFile(); } FileWriter resultFile = new FileWriter(m

2011-01-13 13:10:00 14921

FileWriter(String) 写文件换行的方法。

} FileWriter resultFile = new FileWriter(myFile); BufferedWriter buffer = new BufferedWriter(resultFile); String fileContent = "This is my name.\n we are isoftsotne.com \n chinesebillboy at here。\n"; String contentSt

2011-01-13 13:10:00 360

原创 MyEclipse快捷键大全

<br />(1)Ctrl+M切换窗口的大小<br />(2)Ctrl+Q跳到最后一次的编辑处<br />(3)F2当鼠标放在一个标记处出现Tooltip时候按F2则把鼠标移开时Tooltip还会显示即Show Tooltip Description。<br />          F3跳到声明或定义的地方。<br />          F5单步调试进入函数内部。<br />          F6单步调试不进入函数内部,如果装了金山词霸2006则要把“取词开关”的快捷键改成其他的。<br />     

2011-01-06 13:22:00 967 1

MyEclipse快捷键大全

ription。 F3跳到声明或定义的地方。 F5单步调试进入函数内部。 F6单步调试不进入函数内部,如果装了金山词霸2006则要把“取词开关”的快捷键改成其他的。 F7由函数内部返回到调用处。 F8一直执行到下一个断点。(4)Ctrl+Pg~对于XML文件是切换代码和图示窗口(5)Ctrl+Alt+I看Java文件中变量的相关信息(6)Ctrl+PgUp对于代码窗口是打开“Show List”下拉框,在此下拉框里显示有最近曾打开的文件(7)Ctrl+/ 在代码窗口中是这种//~注释。 Ctrl+Shift

2011-01-06 13:22:00 93

Scratch 飞机大战素材

Scratch 飞机大战素材,这个视频中需要用到的素材 【【Scratch】中级系列教程之飞机大战】 https://www.bilibili.com/video/BV1fi4y1b7xF/?share_source=copy_web&vd_source=6e8b67cd7c328ae891ec00d28ee35756

2023-04-20

使用贝叶斯进行新闻分类数据集

https://blog.csdn.net/bo_hai/article/details/108870754 文中用到的数据集

2020-09-29

mtcars.csv 资源下载

mtcars 数据集,下载地址: http://forge.scilab.org/index.php/p/rdataset/source/tree/master/csv/datasets/mtcars.csv

2020-07-29

SQLYog Enterprise v8.1

SQLYog Enterprise v8.1 有注册码。

2011-02-25

KMP 播放 rmvb 要用到 dll 文件

将解压后的dll复制到 kmp 的安装目录下,就可以播放rmvb 文件了。

2011-01-14

SnagIt9的注册机。

SnagIt9 的注册机!可以放心下载!

2010-12-08

phpcms 2008正式版

我是phpcms 的正式版,请大家相互学习!!

2009-07-10

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除