2016年2月2日
摘要: 后期会补充建表语句。 现有两张表,westemp员工表,有(wtdempid,wtdempname,wtddeptid)列,westdept部门表,有(wtddeptid,wtddeptname,wtddeptaddress)列.其中westemp.wtddeptid可以等于westdept.wtd 阅读全文
posted @ 2016-02-02 15:19 WesTward 阅读(4405) 评论(1) 推荐(0) 编辑
  2016年2月1日
摘要: String比较相等的问题探索 工作上,有个同事犯了个低级错误,把字符串的计较用了==。由于代码已经交付客户,上了生产环境,给公司带了了损失。于是看了他的代码,自己根据以前学的知识,写了几个小demo,加深自己对 的认识。 !java public static void main(String[] 阅读全文
posted @ 2016-02-01 20:04 WesTward 阅读(665) 评论(0) 推荐(0) 编辑
摘要: Hi This is a [Markdown][1] live editor built using [WMD][2] and other open source tools. I use it to write entries for my [posterous][3] blog and othe 阅读全文
posted @ 2016-02-01 16:21 WesTward 阅读(250) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-02-01 15:06 WesTward 阅读(2) 评论(0) 推荐(0) 编辑
  2016年1月29日
摘要: 1 package com.wtd; 2 3 import java.util.ArrayList; 4 import java.util.HashSet; 5 import java.util.Iterator; 6 import java.util.List; 7 import java.uti 阅读全文
posted @ 2016-01-29 22:03 WesTward 阅读(633) 评论(0) 推荐(0) 编辑
  2016年1月28日
摘要: 之前一直对i++和++i很模糊,这次通过两个小demo来探究下。 例1: 1 public static void main(String[] args) { 2 int i=2; 3 System.out.println(i++); 4 System.out.println(i); 5 6} ru 阅读全文
posted @ 2016-01-28 23:07 WesTward 阅读(2238) 评论(1) 推荐(0) 编辑
摘要: http://jingyan.baidu.com/article/dca1fa6fb8c408f1a5405242.html 阅读全文
posted @ 2016-01-28 20:02 WesTward 阅读(227) 评论(0) 推荐(0) 编辑
  2016年1月27日
摘要: 工作时,一直对try块中throw的异常对象,在catch中如何处理此异常,以及trycatchfinally完毕,程序是否就此停止还是继续运行很迷惑,于是参考网上的资料,自己写了些demo,去慢慢探索。 例1. 1 public static void main(String[] args) { 阅读全文
posted @ 2016-01-27 23:46 WesTward 阅读(9535) 评论(0) 推荐(0) 编辑
摘要: 工作时,我每天早上到公司,打开自己的电脑,都会有几个固定的软件(myeclipse,飞信,firefox,foxmail等).文件夹和文件需要打开,每天如此,感到很烦,浪费时间做重复的工作,于是想到一键点点击,然后可以打开所有自己需要打开的软件.文件.文件夹。想法很不错,用什么来实现呢?想来想去,觉 阅读全文
posted @ 2016-01-27 22:11 WesTward 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/hguisu/article/details/6155636 补充:检查异常(checkedException)与运行异常,什么时候throw,什么时候throws,什么时候trycatch的探索。 Demo1:testException方法中throw的是 阅读全文
posted @ 2016-01-27 19:25 WesTward 阅读(1358) 评论(1) 推荐(1) 编辑