土家公子 - 个人博客

Java,你是我的初恋。

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年5月19日

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Xml;namespace Text_P{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private voi 阅读全文
posted @ 2011-05-19 13:58 我是HackAdmin他爹 阅读(295) 评论(0) 推荐(0)

2011年4月23日

摘要: public static void main(String[] args) { //Java冒泡排序法 int[] array = { 32,44,15,1,23,65,23 }; int lh=array.length; for(int i=0;i<lh-1;i++){ for(int j=lh-1;j>i;j--){ if(array[j]<array[j-1]){ int tep=array[j]; array[j]=array[j-1]; array[j-1]=tep; } } } for(int i:array){ System.out.println(i+&qu 阅读全文
posted @ 2011-04-23 22:58 我是HackAdmin他爹 阅读(476) 评论(0) 推荐(0)

2011年4月17日

摘要: Hibernate First Level Cache & Second Level Cache 原创文章,欢迎加入我们群:网络技术交流(118521779) 一、一级缓存Session的操作与维护 1.Hibernate对象的三种状态: transient, persistent, detached 1) transient:瞬时状态 利用new关键字创建的对象,没有与Hibernate实施交互的,也无法保证与数据库中某条记录对应的对象被称为瞬时状态,也就是生命周期非常短的意思,因为没有任何组件管理的对象非常容易被Java虚拟机回收。 例:Customer cus = new Customer();//瞬时状态对象 阅读全文
posted @ 2011-04-17 13:51 我是HackAdmin他爹 阅读(2512) 评论(0) 推荐(1)

2011年4月14日

摘要: JSP共有以下9种基本内置对象与方法 阅读全文
posted @ 2011-04-14 14:15 我是HackAdmin他爹 阅读(285) 评论(1) 推荐(0)

Click chat:点击这里给我发消息