<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title><![CDATA[渣渣曰曰的东西]]></title>
        <image>
        <title>http://hi.baidu.com</title>
        <link>http://hi.baidu.com</link>
        <url>http://img.baidu.com/img/logo-hi.gif</url>
        </image>
<description><![CDATA[Welcome to LHY&#39;s webspace!]]></description>
<link>http://hi.baidu.com/lhylwh</link>
<language>zh-cn</language>
<generator>www.baidu.com</generator>
<ttl>5</ttl>


<item>
        <title><![CDATA[Web service]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/38ab53fbc9c3f9176c22eb64.html]]></link>
        <description><![CDATA[
		
		<div class="postText">Web service到底是什么；在什么情况下你应该使用Web service。 <br>
<br>
<ccid_nobr></ccid_nobr><strong>分布式应用程序和浏览器</strong> <br>
<br>
研究一下当前的应用程序开发，你会发现一个绝对的倾向：人们开始偏爱基于浏览器的瘦客户应用程序。这当然不是因为瘦客户能够提供更好的用户界面，而是因为它能够避免花在桌面应用程序发布上的高成本。发布桌面应用程序成本很高，一半是因为应用程序安装和配置的问题，另一半是因为客户和服务器之间通信的问题。 <br>
<br>
传统的Windows富客户应用程序使</div> <a href="http://hi.baidu.com/lhylwh/blog/item/38ab53fbc9c3f9176c22eb64.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/38ab53fbc9c3f9176c22eb64.html#comment">查看评论</a>]]></description>
        <pubDate>2007-05-24  09:45</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/38ab53fbc9c3f9176c22eb64.html</guid>
</item>

<item>
        <title><![CDATA[SCJP的一些题]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/fd1ad70037d0fb10738b655c.html]]></link>
        <description><![CDATA[
		
		<p><span style="FONT-SIZE: 10.5pt; COLOR: black;  ">1. 1)&nbsp;&nbsp; public class ReturnIt{ <br>
 2)&nbsp;&nbsp; returnType methodA(byte x, double y){ <br>
 3)&nbsp;&nbsp; return (short)x/y*2; <br>
 4)&nbsp;&nbsp; } <br>
 5)&nbsp;&nbsp; } <br>
 what is valid returnType for methodA in line 2? <br>
Answer:double </span></p>
<p><span style="FONT-SIZE: 10.5pt; COLOR: black;  ">2. 1)&nbsp;&nbsp; class Super{ <br>
 2)&nbsp;&nbsp; public float getNum(){return </span></p> <a href="http://hi.baidu.com/lhylwh/blog/item/fd1ad70037d0fb10738b655c.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/fd1ad70037d0fb10738b655c.html#comment">查看评论</a>]]></description>
        <pubDate>2007-04-04  19:01</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/fd1ad70037d0fb10738b655c.html</guid>
</item>

<item>
        <title><![CDATA[Properties的基本用法]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/9be90108b3c06230e82488db.html]]></link>
        <description><![CDATA[
		
		<a name="1"><span class="atitle2"><font color="#000000">Properties&nbsp;基本知识</font></span></a><br>
如果不熟悉&nbsp;<font face="Arial"><code>java.util.Properties</code>&nbsp;类，那么现在告诉您它是用来在一个文件中存储键-值对的，其中键和值是用等号分隔的，如清单&nbsp;1&nbsp;所示。&nbsp;</font>
<p>&nbsp;<a name="listing1"><strong><font color="#000000">清单&nbsp;1.&nbsp;一组属性示例</font></strong></a><br>
<table cellspacing="0" cellpadding="5" bgcolor="#cccccc" border="1">
</table></p> <a href="http://hi.baidu.com/lhylwh/blog/item/9be90108b3c06230e82488db.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/9be90108b3c06230e82488db.html#comment">查看评论</a>]]></description>
        <pubDate>2006-12-25  22:11</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/9be90108b3c06230e82488db.html</guid>
</item>

<item>
        <title><![CDATA[HashTable and HashMap]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/d7dd08f44c27d06edcc474dc.html]]></link>
        <description><![CDATA[
		
		<p>Hashtable和HashMap类有三个重要的不同之处。第一个不同主要是历史原因。Hashtable是基于陈旧的Dictionary类的，HashMap是Java&nbsp;1.2引进的Map接口的一个实现。<br>
<br>
也许最重要的不同是Hashtable的方法是同步的，而HashMap的方法不是。这就意味着，虽然你可以不用采取任何特殊的行为就可以在一个多线程的应用程序中用一个Hashtable，但你必须同样地为一个HashMap提供外同步。一个方便的方法就是利用Collections类的静态的synchronizedMap()方法，它创建一个线程安全的Map对象，并把它作为一个封装的对象来返回。这个对象</p> <a href="http://hi.baidu.com/lhylwh/blog/item/d7dd08f44c27d06edcc474dc.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/d7dd08f44c27d06edcc474dc.html#comment">查看评论</a>]]></description>
        <pubDate>2006-12-25  21:50</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/d7dd08f44c27d06edcc474dc.html</guid>
</item>

<item>
        <title><![CDATA[Vista尝鲜]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/96d5b67e24ad1d380cd7da90.html]]></link>
        <description><![CDATA[
		
		<p>&nbsp;</p>
<div forimg="1" align="center"><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/lhylwh/pic/item/9449a6ecf8876e3c27979121.jpg">&nbsp;
<div forimg="1" align="center"><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/lhylwh/pic/item/b5b8cc804d4633d69023d921.jpg">&nbsp;
</div></div> <a href="http://hi.baidu.com/lhylwh/blog/item/96d5b67e24ad1d380cd7da90.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/96d5b67e24ad1d380cd7da90.html#comment">查看评论</a>]]></description>
        <pubDate>2006-12-20  18:34</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/96d5b67e24ad1d380cd7da90.html</guid>
</item>

<item>
        <title><![CDATA[HTML如何关闭窗口大全(经典+有用+常用)]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/bbcf6d6324571f600d33fa5e.html]]></link>
        <description><![CDATA[
		
		<p>window.close关闭窗口，不弹出系统提示，直接关闭<br>
===================================================<br>
当我们用这种方法:Response.Write("&lt;script&gt;window.close()&lt;/script&gt;") <br>
总是提示什么:你查看的网页试图关闭的提示 <br>
如何去掉提示，直接关闭窗体? <br>
可以用以下方法: <br>
Response.Write("&lt;script&gt;window.opener=null;window.close()&lt;/script&gt;") <br>
只有ie6才支持. <br>
opener只要设为任何值都可以,不会出现提示 </p>
<p><br>
如果是通过子窗体关闭父窗体时怎么做呢 <br>
</p> <a href="http://hi.baidu.com/lhylwh/blog/item/bbcf6d6324571f600d33fa5e.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/bbcf6d6324571f600d33fa5e.html#comment">查看评论</a>]]></description>
        <pubDate>2006-12-17  01:56</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/bbcf6d6324571f600d33fa5e.html</guid>
</item>

<item>
        <title><![CDATA[关于在Eclipse中写servlet之serialVersionUID]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/c608c5fdab48e645d7887d75.html]]></link>
        <description><![CDATA[
		
		<font size="2">
<p style="LINE-HEIGHT: 16pt"><span class="bt">我在Eclipse中写Servlet的时候总是有黄色提示,这表示该"东西"没有被使用或是残缺.我就点它的提示,结果给我弄个serialVersionUID,查了查资料.可以了解一下.</span></p>
<p style="LINE-HEIGHT: 16pt"><span class="bt">serialVersionUID作用：&nbsp;<br>
序列化时为了保持版本的兼容性，即在版本升级时反序列化仍保持对象的唯一性。&nbsp;<br>
<br>
你可以随便写一个，在Eclipse中它替你生成一个，有两种生成方式：<br>
一个是默认的1L，比如：private</span></p></font> <a href="http://hi.baidu.com/lhylwh/blog/item/c608c5fdab48e645d7887d75.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/c608c5fdab48e645d7887d75.html#comment">查看评论</a>]]></description>
        <pubDate>2006-12-16  22:53</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/c608c5fdab48e645d7887d75.html</guid>
</item>

<item>
        <title><![CDATA[Singleton]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/9de4740edbcbbfca7bcbe19b.html]]></link>
        <description><![CDATA[
		
		<p class="MsoNormal" >所谓的<font >singleton</font >指的是在整个<font >webapplication</font >的生命周期内<font >,</font >始终只有一个实例运行的设计模式<font >,</font >这种<font >singleton</font >模式<font >,</font >通常在外部环境和对象的属性相对较为稳定的条件下采用的模式<font >,singleton</font >模式可以节约资源<font >,</font >减少系统不必要的开销<font >,</font >因而最终可以提高系统的性能<font >.</font ></p >
<p class="MsoNormal" >目前可以采用两种方式实现<font >singleton</font >模式<font >,</font >其共同点是把构造器都声明为<font >private,</font >并提供一个<font >public static</font >成员<font >(</font >成员方法或者成员变量<font >),</font >允许客户存取唯一一个实体<font >.</font >下面将具体介绍这两种实现<font >singleton</font >模式的方法<font >:</font ></p >
<p class="MsoNormal" > 方法一:把public static成员声明为final形式   </p >
<p class="MsoNormal" >例如<font >:</font ></p >
<p class="MsoNormal" ><font >public class SingletonClass{</font ></p >
<p class="MsoNormal" align="center" > <a href="http://hi.baidu.com/lhylwh/blog/item/9de4740edbcbbfca7bcbe19b.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/9de4740edbcbbfca7bcbe19b.html#comment">查看评论</a>]]></description>
        <pubDate>2006-12-06  17:11</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/9de4740edbcbbfca7bcbe19b.html</guid>
</item>

<item>
        <title><![CDATA[血泪教训]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/a96928ddb5be1dd98c10295c.html]]></link>
        <description><![CDATA[
		
		<h4 class="TextColor1" style="MARGIN-BOTTOM: 0px" >JAVA程序员面试32问</h4 >
 
 第一，谈谈final, finally, finalize的区别。 <br />
final-修饰符（关键字）如果一个类被声明为final，意味着它不能再派生出新的子类，不能作为父类被继承。因此一个类不能既被声明为 abstract的，又被声明为final的。将变量或方法声明为final，可以保证它们在使用中不被改变。被声明为final的变量必须在声明时给定初值，而在以后的引用中只能读取，不可修改。被声明为final的方法也同样只能使用，不能重载 <br />
finally-再异常处理时提供 finally 块来执行任何清除操作。如果抛出一个异常，那么相匹配的 catch 子句就会执行，然后控制就会进入 finally 块（如果有的话）。 <br />
finalize-方法名。Java 技术允许使用 finalize() 方法在垃圾收集器将对象从内存中清除出去之前做必要的清理工作。这个方法是由垃圾收集器在确定这个对象没有被引用时对这个对象调用的。它是在 Object 类中定义的，因此所有的类都继承了它。子类覆盖 finalize() 方法以整理系统资源或者执行其他清理工作。finalize() 方法是在垃圾收集器删除对象之前对这个对象调用的。  
 第二，Anonymous Inner Class (匿 <a href="http://hi.baidu.com/lhylwh/blog/item/a96928ddb5be1dd98c10295c.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/a96928ddb5be1dd98c10295c.html#comment">查看评论</a>]]></description>
        <pubDate>2006-12-01  01:00</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/a96928ddb5be1dd98c10295c.html</guid>
</item>

<item>
        <title><![CDATA[J2EE的准备篇，写的不错，看看也好！]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/9449a6ecdd4c0b3d27979119.html]]></link>
        <description><![CDATA[
		
		<p >1 什么是J2EE？它和普通的Java有什么不同？ <br />
答：J2EE全称为Java2 Platform, Enterprise Edition。 <br />
&ldquo;J2EE平台本质上是一个分布式的服务器应用程序设计环境&mdash;&mdash;一个Java环境，它提供了： <br />
&middot;宿主应用的一个运行基础框架环境。 <br />
&middot;一套用来创建应用的Java扩展API。&rdquo;（引自《J2EE服务器端高级编程》） <br />
<br />
2 J2EE好学吗？ <br />
答：J2EE是很多技术的集合体，并且还在成长中。 <br />
你会遇到很多专有名词：比如(X)HTML，Servlet/JSP，JDBC，JMS，JNDI，EJB，XML，Web Service&hellip;&hellip;。 <br />
尤其是XML和Web Service正在快速成长。幸运的是，你不需要等到学会所有技术后再开始编程。 <br />
大体上J2EE可以分成3个主要应用：Servlet/JSP，EJB，XML/Web Service 和一些支撑技术例如JDBC和JNDI。 <br />
你可以一个一个的学。 <br />
<br />
3 J2EE有什么用？ <br />
答：用来建设大型的分布式企业级应用程序。或者用更时髦的名词说就是&ldquo;电子商务&rdquo;应用程序。 <br />
这些企业可能大到拥有中心数据库服务器，Web服务器集群和遍布全国的办公终端，也可能小到只不过想做一个网站 <a href="http://hi.baidu.com/lhylwh/blog/item/9449a6ecdd4c0b3d27979119.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/9449a6ecdd4c0b3d27979119.html#comment">查看评论</a>]]></description>
        <pubDate>2006-11-25  16:15</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/9449a6ecdd4c0b3d27979119.html</guid>
</item>

<item>
        <title><![CDATA[String str=&#34;abc&#34;的工作机制（要弄清楚了哈）]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/899292eeb6f274292cf534d7.html]]></link>
        <description><![CDATA[
		
		<p >先说说关于String str = &quot;abc&quot;的内部工作。Java内部将此语句转化为以下几个步骤：</p >
<p >　　(1)先定义一个名为str的对String类的对象引用变量：String str；</p >
<p >　　(2)在栈中查找有没有存放值为&quot;abc&quot;的地址，如果没有，则开辟一个存放字面值为&quot;abc&quot;的地址，接着创建一个新的String类的对象o，并将 o的字符串值指向这个地址，而且在栈中这个地址旁边记下这个引用的对象o。如果已经有了值为&quot;abc&quot;的地址，则查找对象o，并返回o的地址。</p >
<p >　　(3)将str指向对象o的地址。</p >
<p >　　值得注意的是，一般String类中字符串值都是直接存值的。但像String str = &quot;abc&quot;；这种场合下，其字符串值却是保存了一个指向存在栈中数据的引用！</p > 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/899292eeb6f274292cf534d7.html#comment">查看评论</a>]]></description>
        <pubDate>2006-11-13  00:57</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/899292eeb6f274292cf534d7.html</guid>
</item>

<item>
        <title><![CDATA[一道Java牛题]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/59a632a81035c3b1ca130cd4.html]]></link>
        <description><![CDATA[
		
		<p >（Java练习题）</p >
<div forimg="1" align="left" ><a target="_blank" href="http://hiphotos.baidu.com/lhylwh/abpic/item/e30b7d899f99ecb30e2444ea.jpg" ></a ></div >
<p ><a target="_blank" href="http://hiphotos.baidu.com/lhylwh/abpic/item/e30b7d899f99ecb30e2444ea.jpg" ><img class="blogimg" border="0" small="1" src="http://hiphotos.baidu.com/lhylwh/abpic/item/e30b7d899f99ecb30e2444ea.jpg" /></a ></p >
<p >要求从键盘输入一数字，然后中文输出（要符合中文语法）<br />
例：12434&nbsp;&nbsp; 输出 一万二千四百三十四。</p >
<p ><br />
</p >
<div forimg="1" align="left" ><a target="_blank" href="http://hiphotos.baidu.com/lhylwh/abpic/item/e30b7d899f99ecb30e2444ea.jpg" ></a ></div > 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/59a632a81035c3b1ca130cd4.html#comment">查看评论</a>]]></description>
        <pubDate>2006-11-13  00:20</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/59a632a81035c3b1ca130cd4.html</guid>
</item>

<item>
        <title><![CDATA[关于集合类的几个问题]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/c608c5fd81c4dc45d7887de9.html]]></link>
        <description><![CDATA[
		
		 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Collection&lt;--List&lt;--Vector<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Collection&lt;--List&lt;--ArrayList<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Collection&lt;--List&lt;--LinkedList<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Collection&lt;--Set&lt;--HashSet<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Collection&lt;--Set&lt;--HashSet&lt;--LinkedHashSet<br />
&n <a href="http://hi.baidu.com/lhylwh/blog/item/c608c5fd81c4dc45d7887de9.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/c608c5fd81c4dc45d7887de9.html#comment">查看评论</a>]]></description>
        <pubDate>2006-11-12  20:50</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/c608c5fd81c4dc45d7887de9.html</guid>
</item>

<item>
        <title><![CDATA[学了这么久的java。其实我连堆栈都不知道，哎~今天弥补一下。]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/4f2b28734f18ff1c8601b0f7.html]]></link>
        <description><![CDATA[
		
		堆栈是一种执行&ldquo;后进先出&rdquo;算法的数据结构。 <br />
<br />
设想有一个直径不大、一端开口一端封闭的竹筒。有若干个写有编号的小球，小球的直径比竹筒的直径略小。现在把不同编号的小球放到竹筒里面，可以发现一种规律：先放进去的小球只能后拿出来，反之，后放进去的小球能够先拿出来。所以&ldquo;先进后出&rdquo;就是这种结构的特点。 <br />
<br />
堆栈就是这样一种数据结构。它是在内存中开辟一个存储区域，数据一个一个顺序地存入（也就是&ldquo;压入&mdash;&mdash;push&rdquo;）这个区域之中。有一个地址指针总指向最后一个压入堆栈的数据所在的数据单元，存放这个地址指针的寄存器就叫做堆栈指示器。开始放入数据的单元叫做&ldquo;栈底&rdquo;。数据一个一个地存入，这个过程叫做&ldquo;压栈&rdquo;。在压栈的过程中，每有一个数据压入堆栈，就放在和前一个单元相连的后面一个单元中，堆栈指示器中的地址自动加1。读取这些数据时，按照堆栈指示器中的地址读取数据，堆栈指示器中的地址数自动减 1。这个过程叫做&ldquo;弹出pop&rdquo;。如此就实现了后进先出的原则。 <br />
<br />
堆栈是计算机中最常用的一种数据结构，比如函数的调用在计算机中是用堆栈 <a href="http://hi.baidu.com/lhylwh/blog/item/4f2b28734f18ff1c8601b0f7.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/4f2b28734f18ff1c8601b0f7.html#comment">查看评论</a>]]></description>
        <pubDate>2006-11-10  16:04</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/4f2b28734f18ff1c8601b0f7.html</guid>
</item>

<item>
        <title><![CDATA[setAttribute()和getAttribute()！]]></title>
        <link><![CDATA[http://hi.baidu.com/lhylwh/blog/item/76368402f996e80f4bfb519b.html]]></link>
        <description><![CDATA[
		
		<p >HttpServletRequest类既有getAttribute()方法，也有getParameter()方法，这两个方法有以下区别：<br />
<br />
（1）HttpServletRequest类有setAttribute()方法，而没有setParameter()方法<br />
<br />
（2）当两个Web组件之间为链接关系时，被链接的组件通过getParameter()方法来获得请求参数，例如假定welcome.jsp和authenticate.jsp之间为链接关系，welcome.jsp中有以下代码：<br />
<br />
&lt;a href=&quot;authenticate.jsp?username=weiqin&quot;&gt;authenticate.jsp &lt;/a&gt;<br />
<br />
或者：<br />
<br />
&lt;form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;authenticate.jsp&quot;&gt;<br />
&nbsp;&nbsp;请输入用户姓名：&lt;input type=&quot;text&quot; name=&quot;username&quot;&gt;<br />
&nbsp;&nbsp;&lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;提交&quot;&gt;<br />
&lt;/form&gt;<br />
<br />
在authenticate.jsp中通过request.getParameter(&quot;username&quot;)方法来获得请求参数username:<br />
<br />
&lt;% String username=request.getParameter(&quot;username&quot;); %&gt; <a href="http://hi.baidu.com/lhylwh/blog/item/76368402f996e80f4bfb519b.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/lhylwh/blog/category/%D4%FD%BC%C7">札记</a>&nbsp;<a href="http://hi.baidu.com/lhylwh/blog/item/76368402f996e80f4bfb519b.html#comment">查看评论</a>]]></description>
        <pubDate>2006-11-09  21:30</pubDate>
        <category><![CDATA[札记]]></category>
        <author><![CDATA[为爱去杀猪]]></author>
		<guid>http://hi.baidu.com/lhylwh/blog/item/76368402f996e80f4bfb519b.html</guid>
</item>


</channel>
</rss>