`
文章列表

JAVA Queue队列

Person类 public class Person { @Override public String toString() { return this.getName()+" "+this.getAge(); } private String name; private int age; public Person(String name, int age) { this.age = age; thi ...
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="methodcomment_context" deleted="false" description="Comment for non-overriding methods" enabled="true" ...
 去官网下载eclipse3.7 版本,再下载本文章下面的附件 eclipse3.7汉化版.rar , 将eclipse3.7汉化版.rar 文件解压缩后,进入eclipse_plugins\language\eclipse\会看到两个文件夹features、plugins,分别将这两个文件夹里面的内容复制出来粘贴到eclipse根目录下的对应的features、plugins中。 完成了这个就启动eclipse则默认的是中文显示界面(前提是中文操作系统)。 若要可以多种方式打开,参考下面内容: 第一种方法: 在桌面的快捷路径加上参数即可: 英文->   - ...

java 队列

先进先出 1、先写个队列类 package com.zg; class Queue //队列类 { private int maxSize; //队列长度,由构造函数初始化 private long[] queArray; // 队列 private int front; //队头 private int rear; //队尾 private int nItems; //元素的个数 //----------------------------------------------------------- ...
http://www.webservicex.net/globalweather.asmx?wsdl
文件式数据库是一种很特别的数据库。因为他们没有网络接口,通常不可以分布式调用。但是他们有很巨大的优点,如果用于数据的配置和数据的缓存就可以提高软件的效率。    这么多种的文件数据库,我比较青睐SQList,    1、是一个稳定的数据库;    2、不分数据类型,减少开发时候遇到数据类型的转换;    3、比access等其他文本数据更加稳定;       sqlitejdbc-v056.jar:www.sqlite.org 下载      下面是一些JAVA对SQList操作的源代码:   public String[][] localHostQuery(String ...
1、MyStore.js MyStore = Ext.extend(Ext.data.JsonStore, { constructor: function(cfg) { cfg = cfg || {}; MyStore.superclass.constructor.call(this, Ext.apply({ storeId: 'MyStore', root: 'root', totalProperty: 'totalProperty', url ...

Page分页

package util; import java.util.List; public class Page { private int total; private int pageSize; private int totalPage; private int pageNo; private int prePage; private int nextPage; private List list; public int getTotal() { return total; } public void setTotal(int tot ...
在使用ireport3.7编译生成jasper文件后放在S2SH的项目中使用,一切配置完成,出现了以下错误 java.lang.ClassCastException: cannot assign instance of net.sf.jasperreports.engine.base.JRBaseImage to field net.sf.jasperreports.engine.base.JRBasePen.penContainer of type net.sf.jasperreports.engine.JRPenContainer in instance of net.sf.jasperr ...
1、先用ireport工具新建jrxml文件,再制作报表样式!     2、可以通过在控件的右键上设置边框,这是为了产生表格效果     好了 初步工作已经有了,我们经过编译后得到了一个jasper文件,那么我们怎么用在J2EE的项目中呢?   3、将下列信息配置在web.xml <servlet> <servlet-name>ImageServlet</servlet-name> <servlet-class>net.sf.jasperreports.j2ee.servlets.ImageServlet&l ...
一 创建托管账户1 首先应有一个 google 帐号(用你的gmail邮件地址可以注册)2 访问项目托管地址:http://code.google.com/hosting/ 点击下面的 "Sign in to create a project" 链接3 点击 页面下方的 "Create a new project" 创建一个项目4 以此填写 项目名称、摘要、介绍、开源协议等等(除了项目名称不能更改之外其他选项在项目创建之后都可以更改)5 在注册完之后会自动跳转到项目主页了(我们注册的项目名称为 xxxx,随意项目主页的链接地址为http://code.go ...
Google code 获取密码页打不开的解决办法# Project members authenticate over HTTPS to allow committing changes. svn checkout https://yourprj.googlecode.com/svn/trunk/ yourprj --username youraccountWhen prompted, enter your generated googlecode.com password. 在文件 C:/Windows/System32/drivers/etc/hosts 中加入 66.249.89.99 ...
巧用Google Code备份代码 http://code.google.com/能做什么呢?我是个程序员,我平时也自己写些小程序,我要为老板打工,在公司有一台专门给我使用的机器,我自己有台属于我自己的笔记本,不工作的时候我喜欢在我自己的笔记本写点程序。问题来了,我经常要在两台机器上开发同一个程序,因此我经常使用移动硬盘或者U盘之类的相互拷贝文件,这种方式极其头疼,感觉很混乱,这个时候我需要的是一个版本管理系统。我希望能将我的代码存储到网络上,然后在两台机器上随时利用SVN或者CVS代码版本工具随时更新到本地代码仓库中,当本地代码仓库中做了改动,也可以将代码随时上传到网络上去。这个时候googl ...
1、获取指定类的构造器相关信息 import java.lang.reflect.*; import java.io.IOException; /** *获取指定类的构造器相关信息 */ public class ConstructorTest { private int i; private double j; //默认的构造器 public ConstructorTe ...
<s:set name="str" value="'Hello World'"></s:set> <s:property value="%{@com.common.Constant@func(#str)}"/> 或 ?<s:property value="%{@ccom.common.Constant@func(属性)}"/> ? func是类com.common.Constant里面的一个静态方法 str是动态的参数 ...
Global site tag (gtag.js) - Google Analytics