ITeye博客

hellsing42

hellsing42 · 共 94 篇文章

111

infancy 幼年

2008-05-16 21:18 · 学习笔记 · 评论(0)

111

exquisite 优美的 mechanism 机制 manipulate 操作 wind up with: have as a result

2008-05-15 19:54 · 学习笔记 · 评论(0)

111

run sth against sth else:compare sth with another go through: review go about sth: approach sth take a nap:打盹

2008-05-13 20:56 · 学习笔记 · 评论(0)

111

all hell breaks loose 场面失控(a crazy situation beigins) on the edge of 非常接近 very close to about very ten years or so though ..., do sth left and right = do sth a lot stand up to 站出来跟某人对着干。。。 even now and then though

2008-05-12 19:47 · 学习笔记 · 评论(0)

111

bank line 最高授信额度 waste away 削弱

2008-05-09 20:38 · 学习笔记 · 评论(0)

Java中的位操作

对于java这种语言来说,位操作符比较少用到 &:按位与。 |:按位或。 ^:按位异或。 ~:按位取反。 <<:左移,高位插0,否则插1; :右移,高位插0,否则插1; :无符号右移,无论正负,高位插0 1.<< 逻辑左移,右边补0,符号位和其他位一样. 正数: x<<1一般相当于2x,但是可能溢出. 溢出范围: 230~(231-1) 二进制表示 010000...000到01111....1111,移位后最高为变为1了,变成负数了. 负数: x<<1一般也相当于2x,也有可能溢出.所以, x*32可以写成x<<5 溢出范围: -231~-(230+1)二进制表示10000...000到1…

2008-04-09 15:40 · j2se基础 · 评论(0)

Java 工厂模式

一. 程序设计目标 我们组写了个简单的水果生产程序,描述农场种植水果的过程,旨在通过此次设计更进一步了解工程设计模式,加强编程的结构化能力。 开发环境:JDK1.5 开发工具:JBuilder 2006 二.程序设计介绍 1.程序结构 我们组为一个水果公司写了个简单的生产程序,该公司专门向市场销售各类水果。我们为程序建立了一个名为farm的工程,程序结构比较简单,总共有7个类,并且都放在一个默认的包中。其层次结构可从下图体现出来: 对各个类的说明: Fruit类:水果接口,实现水果方法 Apple类:苹果类,实现Fruit接口 Grape类:葡萄类,实现Fruit接口 Strawberry类…

2008-02-26 10:50 · j2se基础 · 评论(0)

形近词

instant 立即的 intact 完整无缺的 consensus 一致的 conscious 有意识的 infect 传染 insect 昆虫 devise 设计,发明 decisive 决定性的 scare 恐吓的 sacred 神圣的,庄严的 scarce 缺乏的 expend 花费 expand 扩张 extend 扩充,延伸 reject 拒绝 inject 注射 eject 逐出,弹出 reflect 反射,反映 inflect 弯曲 instinct 本能 distinct 清楚的,明显的 extinct 灭绝的,耗尽的 distinct 清楚的,明显的,独特的 instin…

2008-01-24 11:51 · 英语 · 评论(0)

意近词

争论:aruge debate contest controversal dispute 基础的:radical fundament basic 名声: fame reputation 一致的: coincide consensus 串,一捆: bunch cluster 宏伟的: epic majestic 劝告,建议: advise suggest recommend counsel 严厉的: stern strict rigorous 假设: assume assess 深思: mull chew 精确的: accurate precise exact 复制: copy replica…

2008-01-24 11:49 · 英语 · 评论(0)

写得蛮好的linux学习笔记

linux目录架构 / 根目录 /bin 常用的命令 binary file 的目錄 /boot 存放系统启动时必须读取的档案,包括核心 (kernel) 在内 /boot/grub/menu.lst GRUB设置 /boot/vmlinuz 内核 /boot/initrd 核心解壓縮所需 RAM Disk /dev 系统周边设备 /etc 系统相关设定文件 /etc/DIR_COLORS 设定颜色 /etc/HOSTNAME 设定用户的节点名 /etc/NETWORKING 只有YES标明网络存在 /etc/host.conf 文件说明用户的系统如何查询节点名 /etc/hosts 设定用…

2008-01-18 09:18 · 评论(0)

使用URLClassLoader动态加载类

一般动态加载类都是直接用Class.forName()这个方法,但这个方法只能创建程序中已经引用的类,并且只能用包名的方法进行索引,比如Java.lang.String,不能对一个.class文件或者一个不在程序引用里的.jar包中的类进行创建。但使用URLClassLoader就可以直接根据创建一个单独的.class文件,并且每当重新载入后并实例化后都是最新的方法。类似于jsp,当你在eclipse中改了一个jsp并且存储后,只要刷新页面就可以得到最新的结果而不用重新启动服务器。 URLClassLoader是在java.net包下的一个类。他的构造函数输入参数需要输入1个URL数组。假设…

2008-01-17 10:29 · j2se基础 · 评论(2)

用J2se的java.util.jar进行jar文件的解压

由于需要做一个在线更新模块,需要在程序里对jar文件解压,测试程序如下 开始的测试程序如下: package test; import java.io.BufferedInputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.Enumeration; import java.util.jar.*; public class TestJarFile extends Thread { /** * @param args */ pub…

2008-01-16 15:36 · j2se基础 · 评论(0)

/和\\的区别

C:\Windows\system32 \是windows中的写法,在linux下是不认的 C:/root/local/ / 在linux下也可被识别 所以通用写法应该使用/从而保证跨平台后程序正确运行

2008-01-11 09:52 · j2se基础 · 评论(0)

关于InstantiationException错误的原因

could not initialization Dammanage:com.ibatis.dao.client.DaoException: Error while configuring DaoManager. Cause: com.ibatis.dao.client.DaoException: Error configuring DAO. Cause: java.lang.InstantiationException: com.finance.ProductDaoImpl Caused by: java.lang.InstantiationException: com.finance.P…

2007-11-01 10:42 · j2se基础 · 评论(1)

遍历HashMap

HashMap staff = new HashMap(); Set entries = staff.entrySet(); Iterator iter = entries.iterator(); while(iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); Object key = entry.getKey();得么关键字 Object value = entry.getValue();得到值 }

2007-09-28 14:28 · j2se基础 · 评论(0)