<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[J2EE学习备忘录]]></title>
<link>http://mgc.name/</link>
<description><![CDATA[——不问世事,与技术相依为命;看破红尘,同电脑白头偕老]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2008 Magci]]></copyright>
<webMaster><![CDATA[webmaster@mgc.name(Magci)]]></webMaster>
<generator>J2EE学习备忘录</generator> 
<image>
	<title>J2EE学习备忘录</title> 
	<url>http://mgc.name/images/logos.gif</url> 
	<link>http://mgc.name/</link> 
	<description>J2EE学习备忘录</description> 
</image>

			<item>
			<link>http://mgc.name/default.asp?id=890</link>
			<title><![CDATA[Java中基本类型和引用类型赋值的区别——SCJP真题解析Q77]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,29 Jul 2011 10:20:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=890</guid>	
		<description><![CDATA[QUESTION&nbsp;77:<br/>Exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;three&nbsp;code&nbsp;fragments,&nbsp;added&nbsp;individually&nbsp;at&nbsp;line&nbsp;33,&nbsp;produce&nbsp;the&nbsp;output&nbsp;100?&nbsp;(Choose&nbsp;three.)<br/><br/>A.&nbsp;n&nbsp;=&nbsp;100;<br/>B.&nbsp;i.setX(100);<br/>C.&nbsp;o.getY().setX(100);<br/>D.&nbsp;i&nbsp;=&nbsp;new&nbsp;Inner();&nbsp;i.setX(100);<br/>E.&nbsp;o.setY(i);&nbsp;i&nbsp;=&nbsp;new&nbsp;Inner();&nbsp;i.setX(100);<br/>F.&nbsp;i&nbsp;=&nbsp;new&nbsp;Inner();&nbsp;i.setX(100);&nbsp;o.setY(i);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=889</link>
			<title><![CDATA[Java中设置classpath环境变量的问题——SCJP真题解析Q76]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,28 Jul 2011 15:39:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=889</guid>	
		<description><![CDATA[QUESTION&nbsp;76:<br/>A&nbsp;class&nbsp;games.cards.Poker&nbsp;is&nbsp;correctly&nbsp;defined&nbsp;in&nbsp;the&nbsp;jar&nbsp;file&nbsp;Poker.jar.<br/>A&nbsp;user&nbsp;wants&nbsp;to&nbsp;execute&nbsp;the&nbsp;main&nbsp;method&nbsp;of&nbsp;Poker&nbsp;on&nbsp;a&nbsp;UNIX&nbsp;system&nbsp;using&nbsp;the&nbsp;command:<br/>Java&nbsp;games.cards.Poker<br/>What&nbsp;allows&nbsp;the&nbsp;user&nbsp;to&nbsp;do&nbsp;this?<br/><br/>A.&nbsp;put&nbsp;Poker.jar&nbsp;in&nbsp;directory&nbsp;/stuff/java,&nbsp;and&nbsp;set&nbsp;the&nbsp;CLASSPATH&nbsp;to&nbsp;include&nbsp;/stuff/java<br/>B.&nbsp;put&nbsp;Poker.jar&nbsp;in&nbsp;directory&nbsp;/stuff/java,&nbsp;and&nbsp;set&nbsp;the&nbsp;CLASSPATH&nbsp;to&nbsp;include&nbsp;/stuff/java/*.jar<br/>C.&nbsp;put&nbsp;Poker.jar&nbsp;in&nbsp;directory&nbsp;/stuff/java,&nbsp;and&nbsp;set&nbsp;the&nbsp;CLASSPATH&nbsp;to&nbsp;include&nbsp;/stuff/java/Poker.jar<br/>D.&nbsp;put&nbsp;Poker.jar&nbsp;in&nbsp;directory&nbsp;/stuff/java/games/cards,&nbsp;and&nbsp;set&nbsp;the&nbsp;CLASSPATH&nbsp;to&nbsp;include&nbsp;/stuff/java<br/>E.&nbsp;put&nbsp;Poker.jar&nbsp;in&nbsp;directory&nbsp;/stuff/java/games/cards,&nbsp;and&nbsp;set&nbsp;the&nbsp;CLASSPATH&nbsp;to&nbsp;include&nbsp;/stuff/java/*.jar<br/>F.&nbsp;put&nbsp;Poker.jar&nbsp;in&nbsp;directory&nbsp;/stuff/java/games/cards,&nbsp;and&nbsp;set&nbsp;the&nbsp;CLASSPATH&nbsp;to&nbsp;include&nbsp;/stuff/java/Poker.jar]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=888</link>
			<title><![CDATA[Java中main函数的参数和数组的下标——SCJP真题解析Q75]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,28 Jul 2011 14:53:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=888</guid>	
		<description><![CDATA[QUESTION&nbsp;75:<br/>Given:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>and&nbsp;the&nbsp;command&nbsp;line&nbsp;invocation:<br/>java&nbsp;Yippee2&nbsp;a&nbsp;b&nbsp;c<br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;a&nbsp;b<br/>B.&nbsp;b&nbsp;c<br/>C.&nbsp;Compilation&nbsp;fails.<br/>D.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=885</link>
			<title><![CDATA[Java中垃圾回收的条件——SCJP真题解析Q74]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,28 Jun 2010 17:59:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=885</guid>	
		<description><![CDATA[QUESTION&nbsp;74:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;line&nbsp;of&nbsp;code&nbsp;marks&nbsp;the&nbsp;earliest&nbsp;point&nbsp;that&nbsp;an&nbsp;object&nbsp;referenced&nbsp;by&nbsp;intObj&nbsp;becomes&nbsp;a&nbsp;candidate&nbsp;for&nbsp;garbage&nbsp;collection?<br/>A.&nbsp;Line&nbsp;11<br/>B.&nbsp;Line&nbsp;12<br/>C.&nbsp;Line&nbsp;13<br/>D.&nbsp;Line&nbsp;14<br/>E.&nbsp;The&nbsp;object&nbsp;is&nbsp;NOT&nbsp;a&nbsp;candidate&nbsp;for&nbsp;garbage&nbsp;collection.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=884</link>
			<title><![CDATA[Java中枚举的用法——SCJP真题解析Q73]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,28 Jun 2010 17:32:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=884</guid>	
		<description><![CDATA[QUESTION&nbsp;73:<br/>Given&nbsp;the&nbsp;exhibit:<br/>enumExample&nbsp;{&nbsp;ONE,&nbsp;TWO,&nbsp;THREE&nbsp;}<br/>Which&nbsp;statement&nbsp;is&nbsp;true?<br/>A.&nbsp;The&nbsp;expressions&nbsp;(ONE&nbsp;==&nbsp;ONE)&nbsp;and&nbsp;ONE.equals(ONE)&nbsp;are&nbsp;both&nbsp;guaranteed&nbsp;to&nbsp;be&nbsp;true.<br/>B.&nbsp;The&nbsp;expression&nbsp;(ONE&nbsp;&lt;&nbsp;TWO&nbsp;)&nbsp;is&nbsp;guaranteed&nbsp;to&nbsp;be&nbsp;true&nbsp;and&nbsp;ONE.compareTo(TWO)&nbsp;is&nbsp;guaranteed&nbsp;to&nbsp;be&nbsp;less&nbsp;than&nbsp;one.<br/>C.&nbsp;The&nbsp;Example&nbsp;values&nbsp;cannot&nbsp;be&nbsp;used&nbsp;in&nbsp;a&nbsp;raw&nbsp;java.util.HashMap.;&nbsp;instead,&nbsp;the&nbsp;programmer&nbsp;must&nbsp;use&nbsp;a&nbsp;java.util.EnumMap.<br/>D.&nbsp;The&nbsp;Example&nbsp;values&nbsp;can&nbsp;be&nbsp;used&nbsp;in&nbsp;a&nbsp;java.util.SortedSet,&nbsp;but&nbsp;the&nbsp;set&nbsp;will&nbsp;not&nbsp;be&nbsp;sorted&nbsp;because&nbsp;enumerated&nbsp;Type&nbsp;do&nbsp;not&nbsp;implement&nbsp;java.lang.Comparable.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=883</link>
			<title><![CDATA[Java泛型类的边界控制——SCJP真题解析Q72]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,28 Jun 2010 15:49:22 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=883</guid>	
		<description><![CDATA[QUESTION&nbsp;72:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;two,&nbsp;inserted&nbsp;at&nbsp;line&nbsp;1&nbsp;will&nbsp;allow&nbsp;the&nbsp;code&nbsp;to&nbsp;compile?&nbsp;(Choose&nbsp;Two)<br/>A.&nbsp;public&nbsp;class&nbsp;MinMax&lt;?&gt;&nbsp;{<br/>B.&nbsp;public&nbsp;class&nbsp;MinMax&lt;?&nbsp;extends&nbsp;Number&gt;&nbsp;{<br/>C.&nbsp;public&nbsp;class&nbsp;MinMax&lt;N&nbsp;extends&nbsp;Object&gt;&nbsp;{<br/>D.&nbsp;public&nbsp;class&nbsp;MinMax&lt;N&nbsp;extends&nbsp;Number&gt;&nbsp;{<br/>E.&nbsp;public&nbsp;class&nbsp;MinMax&lt;?&nbsp;extends&nbsp;Object&gt;&nbsp;{<br/>F.&nbsp;public&nbsp;class&nbsp;MinMax&lt;N&nbsp;extends&nbsp;Integer&gt;&nbsp;{]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=882</link>
			<title><![CDATA[Java的HashMap中使用自定义类——SCJP真题解析Q71]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,28 Jun 2010 14:12:48 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=882</guid>	
		<description><![CDATA[QUESTION&nbsp;71:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>A&nbsp;programmer&nbsp;is&nbsp;developing&nbsp;a&nbsp;class&nbsp;Key,&nbsp;that&nbsp;will&nbsp;be&nbsp;used&nbsp;as&nbsp;a&nbsp;key&nbsp;in&nbsp;a&nbsp;standard&nbsp;java.util.HashMap.<br/>Which&nbsp;two&nbsp;methods&nbsp;should&nbsp;be&nbsp;overridden&nbsp;to&nbsp;assure&nbsp;that&nbsp;key&nbsp;works&nbsp;correctly&nbsp;as&nbsp;a&nbsp;key?&nbsp;(choose&nbsp;two)<br/>A.&nbsp;public&nbsp;int&nbsp;hashCode()<br/>B.&nbsp;public&nbsp;boolean&nbsp;equals(Key&nbsp;k)<br/>C.&nbsp;public&nbsp;int&nbsp;compareTo(Object&nbsp;o)<br/>D.&nbsp;public&nbsp;boolean&nbsp;equals(Object&nbsp;o)]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=881</link>
			<title><![CDATA[Java中的优先级队列PriorityQueue——SCJP真题解析Q70]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,28 Jun 2010 13:18:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=881</guid>	
		<description><![CDATA[QUESTION&nbsp;70:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;apple:apple<br/>B.&nbsp;carrot:apple<br/>C.&nbsp;apple:banana<br/>D.&nbsp;banana:apple<br/>E.&nbsp;carrot:carrot<br/>F.&nbsp;carrot:banana]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=880</link>
			<title><![CDATA[Java集合中泛型的边界控制——SCJP真题解析Q69]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,28 Jun 2010 10:43:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=880</guid>	
		<description><![CDATA[QUESTION&nbsp;69:<br/>DRAG&nbsp;Drop<br/>Place&nbsp;a&nbsp;result&nbsp;onto&nbsp;each&nbsp;method&nbsp;call&nbsp;to&nbsp;indicate&nbsp;what&nbsp;would&nbsp;happen&nbsp;if&nbsp;the&nbsp;method&nbsp;call<br/>were&nbsp;inserted&nbsp;at&nbsp;line&nbsp;9.&nbsp;Note:&nbsp;Results&nbsp;can&nbsp;be&nbsp;used&nbsp;more&nbsp;than&nbsp;once.<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Method&nbsp;Calls&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Results,place&nbsp;here&nbsp;&nbsp;Results,select&nbsp;from&nbsp;these<br/>m1(listA);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Place&nbsp;here&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Does&nbsp;not&nbsp;compile.<br/>m1(listB);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Place&nbsp;here&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compiles&nbsp;and&nbsp;runs&nbsp;without&nbsp;error.&nbsp;<br/>m1(listO);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Place&nbsp;here&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An&nbsp;exception&nbsp;is&nbsp;thown&nbsp;at&nbsp;runtime.<br/>m2(listA);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Place&nbsp;here<br/>m2(listB);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Place&nbsp;here<br/>m2(listO);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Place&nbsp;here]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=879</link>
			<title><![CDATA[Java中Map的泛型——SCJP真题解析Q68]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,25 Jun 2010 17:04:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=879</guid>	
		<description><![CDATA[QUESTION&nbsp;68:<br/>DRAG&nbsp;Drop<br/>Place&nbsp;the&nbsp;code&nbsp;into&nbsp;position&nbsp;to&nbsp;create&nbsp;a&nbsp;class&nbsp;that&nbsp;maps&nbsp;from&nbsp;Strings&nbsp;to&nbsp;integer<br/>values.<br/>The&nbsp;result&nbsp;of&nbsp;execution&nbsp;must&nbsp;be&nbsp;[one].&nbsp;Some&nbsp;options&nbsp;may&nbsp;be&nbsp;used&nbsp;more&nbsp;than&nbsp;once.<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Code:<br/>Set&lt;int&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set&lt;Integer&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HashSet<br/>Set&lt;Integer,&nbsp;String&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set&lt;int,&nbsp;String&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set&lt;String,&nbsp;Integer&gt;<br/>Set&lt;String,&nbsp;int&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set&lt;String&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NumberNames<br/>String&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value&nbsp;map]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=878</link>
			<title><![CDATA[java中使用Arrays的sort方法给Object数组排序——SCJP真题解析Q67]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,24 Jun 2010 12:45:23 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=878</guid>	
		<description><![CDATA[QUESTION&nbsp;67:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;Compilation&nbsp;fails&nbsp;due&nbsp;to&nbsp;an&nbsp;error&nbsp;in&nbsp;line&nbsp;7.<br/>B.&nbsp;Compilation&nbsp;fails&nbsp;due&nbsp;to&nbsp;an&nbsp;error&nbsp;in&nbsp;line&nbsp;13.<br/>C.&nbsp;A&nbsp;ClassCastExceptation&nbsp;occurs&nbsp;in&nbsp;line&nbsp;13.<br/>D.&nbsp;A&nbsp;ClassCastExceptation&nbsp;occurs&nbsp;in&nbsp;line&nbsp;15.<br/>E.&nbsp;The&nbsp;value&nbsp;of&nbsp;all&nbsp;four&nbsp;object&nbsp;prints&nbsp;in&nbsp;natural&nbsp;order.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=877</link>
			<title><![CDATA[Java中泛型的用法——SCJP真题解析Q66]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,23 Jun 2010 17:33:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=877</guid>	
		<description><![CDATA[QUESTION&nbsp;66:<br/>Given&nbsp;a&nbsp;pre-generics&nbsp;implementation&nbsp;of&nbsp;a&nbsp;method:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;three&nbsp;changes&nbsp;must&nbsp;be&nbsp;made&nbsp;to&nbsp;the&nbsp;method&nbsp;sum&nbsp;to&nbsp;use&nbsp;generics?&nbsp;(choose&nbsp;three)<br/>A.&nbsp;remove&nbsp;line&nbsp;14<br/>B.&nbsp;replace&nbsp;line&nbsp;14&nbsp;with&nbsp;&quot;int&nbsp;i&nbsp;=&nbsp;iter.next();&nbsp;&quot;<br/>C.&nbsp;replace&nbsp;line&nbsp;13&nbsp;with&nbsp;&quot;for(int&nbsp;i&nbsp;:&nbsp;intList&nbsp;)&nbsp;{&quot;<br/>D.&nbsp;replace&nbsp;line&nbsp;13&nbsp;with&nbsp;&quot;for&nbsp;(Iterator&nbsp;iter&nbsp;:&nbsp;intLiswt&nbsp;)&quot;<br/>E.&nbsp;replace&nbsp;the&nbsp;method&nbsp;declaration&nbsp;with&nbsp;&quot;sum&nbsp;(List&lt;int&gt;&nbsp;intList)&quot;<br/>F.&nbsp;replace&nbsp;the&nbsp;method&nbsp;declaration&nbsp;with&nbsp;&quot;sum(List&lt;Integer&gt;&nbsp;intList)&quot;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=876</link>
			<title><![CDATA[Java中判断Set集合的元素是否重复——SCJP真题解析Q65]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,23 Jun 2010 17:06:21 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=876</guid>	
		<description><![CDATA[QUESTION&nbsp;65:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;0<br/>B.&nbsp;1<br/>C.&nbsp;2<br/>D.&nbsp;3<br/>E.&nbsp;4<br/>F.&nbsp;Compilation&nbsp;fails.<br/>G.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=875</link>
			<title><![CDATA[Java中集合的排序方法和字符串的排序规则——SCJP真题解析Q64]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,23 Jun 2010 15:57:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=875</guid>	
		<description><![CDATA[QUESTION&nbsp;64:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;Compilation&nbsp;fails<br/>B.&nbsp;aAaA&nbsp;aAa&nbsp;AAaa&nbsp;AaA<br/>C.&nbsp;AAaa&nbsp;AaA&nbsp;aAa&nbsp;aAaA<br/>D.&nbsp;AaA&nbsp;AAaa&nbsp;aAaA&nbsp;aAa<br/>E.&nbsp;aAa&nbsp;AaA&nbsp;aAaA&nbsp;AAaa<br/>F.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=874</link>
			<title><![CDATA[Java中异常处理中catch块的顺序——SCJP真题解析Q63]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,23 Jun 2010 14:51:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=874</guid>	
		<description><![CDATA[QUESTION&nbsp;63:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;test<br/>B.&nbsp;Exception<br/>C.&nbsp;Compilation&nbsp;fails<br/>D.&nbsp;NullPointerException]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=873</link>
			<title><![CDATA[Java的if-else语句——SCJP真题解析Q62]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,23 Jun 2010 14:40:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=873</guid>	
		<description><![CDATA[QUESTION&nbsp;62:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;null<br/>B.&nbsp;zero<br/>C.&nbsp;some<br/>D.&nbsp;Compilation&nbsp;fails<br/>E.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=872</link>
			<title><![CDATA[Java中assert断言的用法——SCJP真题解析Q61]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,23 Jun 2010 14:16:54 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=872</guid>	
		<description><![CDATA[QUESTION&nbsp;61:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;statement&nbsp;is&nbsp;true?<br/>A.&nbsp;All&nbsp;of&nbsp;the&nbsp;assert&nbsp;statements&nbsp;are&nbsp;used&nbsp;appropriately.<br/>B.&nbsp;Only&nbsp;the&nbsp;assert&nbsp;statement&nbsp;on&nbsp;line&nbsp;15&nbsp;is&nbsp;used&nbsp;appropriately<br/>C.&nbsp;The&nbsp;assert&nbsp;statements&nbsp;on&nbsp;lines&nbsp;11&nbsp;and&nbsp;15&nbsp;are&nbsp;used&nbsp;appropriately<br/>D.&nbsp;The&nbsp;assert&nbsp;statements&nbsp;on&nbsp;lines&nbsp;6&nbsp;and&nbsp;11&nbsp;are&nbsp;used&nbsp;appropriately<br/>E.&nbsp;The&nbsp;assert&nbsp;statements&nbsp;on&nbsp;lines&nbsp;11&nbsp;and&nbsp;19&nbsp;are&nbsp;used&nbsp;appropriately<br/>F.&nbsp;The&nbsp;assert&nbsp;statements&nbsp;on&nbsp;lines&nbsp;11&nbsp;,15and&nbsp;19&nbsp;are&nbsp;used&nbsp;appropriately<br/>G.&nbsp;The&nbsp;assert&nbsp;statements&nbsp;on&nbsp;lines&nbsp;6,11&nbsp;and&nbsp;15&nbsp;are&nbsp;used&nbsp;appropriately]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=871</link>
			<title><![CDATA[Java中字符串转换为Boolean型的方法——SCJP真题解析Q60]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,23 Jun 2010 12:52:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=871</guid>	
		<description><![CDATA[QUESTION&nbsp;60:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result&nbsp;when&nbsp;method&nbsp;testIfA&nbsp;is&nbsp;invoked?<br/>A.&nbsp;True<br/>B.&nbsp;Not&nbsp;true<br/>C.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime<br/>D.&nbsp;Compilation&nbsp;fails&nbsp;because&nbsp;of&nbsp;an&nbsp;error&nbsp;at&nbsp;line&nbsp;3.<br/>E.&nbsp;Compilation&nbsp;fails&nbsp;because&nbsp;of&nbsp;an&nbsp;error&nbsp;at&nbsp;line&nbsp;11.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=870</link>
			<title><![CDATA[Java中Iterator对象的遍历——SCJP真题解析Q59]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,23 Jun 2010 12:31:19 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=870</guid>	
		<description><![CDATA[QUESTION&nbsp;59:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;3,&nbsp;2,&nbsp;1,<br/>B.&nbsp;1,&nbsp;2,&nbsp;3,<br/>C.&nbsp;Compilation&nbsp;fails<br/>D.&nbsp;The&nbsp;code&nbsp;runs&nbsp;with&nbsp;no&nbsp;output<br/>E.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=869</link>
			<title><![CDATA[Java中基本数据类型的自动装箱拆箱——SCJP真题解析Q58]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,23 Jun 2010 11:17:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=869</guid>	
		<description><![CDATA[QUESTION&nbsp;58:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;The&nbsp;value&nbsp;&quot;4&quot;&nbsp;is&nbsp;printed&nbsp;at&nbsp;the&nbsp;command&nbsp;line<br/>B.&nbsp;Compilation&nbsp;fails&nbsp;because&nbsp;of&nbsp;an&nbsp;error&nbsp;in&nbsp;line&nbsp;5.<br/>C.&nbsp;Compilation&nbsp;fails&nbsp;because&nbsp;of&nbsp;an&nbsp;error&nbsp;in&nbsp;line&nbsp;9.<br/>D.&nbsp;a&nbsp;NullPointerException&nbsp;occurs&nbsp;at&nbsp;runtime.<br/>E.&nbsp;A&nbsp;NumberFormatException&nbsp;occurs&nbsp;at&nbsp;runtime.<br/>F.&nbsp;An&nbsp;IllegalStateException&nbsp;occurs&nbsp;at&nbsp;runtime.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=868</link>
			<title><![CDATA[Java中while和do...while的区别——SCJP真题解析Q57]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,22 Jun 2010 17:45:22 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=868</guid>	
		<description><![CDATA[QUESTION&nbsp;57:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;0<br/>B.&nbsp;10<br/>C.&nbsp;12<br/>D.&nbsp;Line&nbsp;29&nbsp;will&nbsp;never&nbsp;be&nbsp;reached.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=867</link>
			<title><![CDATA[Java中的异常处理——SCJP真题解析Q56]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,22 Jun 2010 17:32:05 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=867</guid>	
		<description><![CDATA[QUESTION&nbsp;56:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;two&nbsp;statements&nbsp;are&nbsp;truee&nbsp;if&nbsp;a&nbsp;NullPointerException&nbsp;is&nbsp;thrown&nbsp;on&nbsp;line&nbsp;19&nbsp;of&nbsp;class&nbsp;C?&nbsp;(choose&nbsp;two)<br/>A.&nbsp;The&nbsp;application&nbsp;will&nbsp;crash.<br/>B.&nbsp;The&nbsp;code&nbsp;on&nbsp;line&nbsp;29&nbsp;will&nbsp;be&nbsp;executed<br/>C.&nbsp;The&nbsp;code&nbsp;on&nbsp;line&nbsp;5&nbsp;of&nbsp;class&nbsp;A&nbsp;will&nbsp;execute.<br/>D.&nbsp;The&nbsp;code&nbsp;on&nbsp;line&nbsp;13&nbsp;of&nbsp;class&nbsp;B&nbsp;will&nbsp;execute.<br/>E.&nbsp;The&nbsp;exception&nbsp;will&nbsp;be&nbsp;propagated&nbsp;back&nbsp;to&nbsp;line&nbsp;27.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=866</link>
			<title><![CDATA[Java的静态代码块——SCJP真题解析Q55]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,22 Jun 2010 16:35:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=866</guid>	
		<description><![CDATA[QUESTION&nbsp;55:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;exception&nbsp;or&nbsp;error&nbsp;will&nbsp;be&nbsp;thrown&nbsp;when&nbsp;a&nbsp;programmer&nbsp;attempts&nbsp;to&nbsp;run&nbsp;this&nbsp;code?<br/>A.&nbsp;java.lang.StackOverflowError<br/>B.&nbsp;java.lang.IllegalStateException<br/>C.&nbsp;java.lang.ExceptionInInitializerError<br/>D.&nbsp;java.lang.ArrayIndexOutOfBoundsException]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=865</link>
			<title><![CDATA[Java中发生异常时的执行顺序——SCJP真题解析Q54]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,21 Jun 2010 17:33:36 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=865</guid>	
		<description><![CDATA[QUESTION&nbsp;54:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result&nbsp;if&nbsp;NullPointerException&nbsp;occurs&nbsp;on&nbsp;line&nbsp;6?<br/>A.&nbsp;c<br/>B.&nbsp;a<br/>C.&nbsp;ab<br/>D.&nbsp;ac<br/>E.&nbsp;bc<br/>F.&nbsp;abc]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=864</link>
			<title><![CDATA[Java的内部静态类——SCJP真题解析Q53]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,21 Jun 2010 17:05:48 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=864</guid>	
		<description><![CDATA[QUESTION&nbsp;53:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result<br/>A.&nbsp;B<br/>B.&nbsp;The&nbsp;code&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime<br/>C.&nbsp;The&nbsp;cod&nbsp;run&nbsp;with&nbsp;no&nbsp;output.<br/>D.&nbsp;Compilation&nbsp;fails&nbsp;because&nbsp;of&nbsp;an&nbsp;error&nbsp;in&nbsp;line&nbsp;11.<br/>E.&nbsp;Compilation&nbsp;fails&nbsp;because&nbsp;of&nbsp;an&nbsp;error&nbsp;in&nbsp;line&nbsp;16.<br/>F.&nbsp;Compilation&nbsp;fails&nbsp;because&nbsp;of&nbsp;an&nbsp;error&nbsp;in&nbsp;line&nbsp;17.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=863</link>
			<title><![CDATA[Java的抽象类和抽象方法——SCJP真题解析Q52]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,21 Jun 2010 14:08:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=863</guid>	
		<description><![CDATA[QUESTION&nbsp;52:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;two&nbsp;classes&nbsp;use&nbsp;the&nbsp;Shape&nbsp;class&nbsp;correctly?&nbsp;(&nbsp;choose&nbsp;two)<br/>A.&nbsp;public&nbsp;class&nbsp;Circle&nbsp;implements&nbsp;Shape&nbsp;{<br/>&#160;&#160;&#160;&#160;private&nbsp;int&nbsp;radius;<br/>&nbsp;&nbsp;&nbsp;}<br/>B.&nbsp;public&nbsp;abstract&nbsp;class&nbsp;Circle&nbsp;extends&nbsp;Shape&nbsp;{<br/>&#160;&#160;&#160;&#160;private&nbsp;int&nbsp;radius;<br/>&nbsp;&nbsp;&nbsp;}<br/>C.&nbsp;public&nbsp;class&nbsp;Circle&nbsp;extend&nbsp;Shape&nbsp;{<br/>&#160;&#160;&#160;&#160;private&nbsp;int&nbsp;radius;<br/>&#160;&#160;&#160;&#160;public&nbsp;void&nbsp;draw();<br/>&nbsp;&nbsp;&nbsp;}<br/>D.&nbsp;public&nbsp;abstract&nbsp;class&nbsp;Circle&nbsp;implements&nbsp;Shape&nbsp;{<br/>&#160;&#160;&#160;&#160;private&nbsp;int&nbsp;radius;<br/>&#160;&#160;&#160;&#160;public&nbsp;void&nbsp;draw();<br/>&nbsp;&nbsp;&nbsp;}<br/>E.&nbsp;public&nbsp;class&nbsp;Circle&nbsp;extends&nbsp;Shape&nbsp;{<br/>&#160;&#160;&#160;&#160;private&nbsp;int&nbsp;radius;<br/>&#160;&#160;&#160;&#160;public&nbsp;void&nbsp;draw()&nbsp;{&nbsp;/*code&nbsp;here&nbsp;*/}<br/>&nbsp;&nbsp;&nbsp;}<br/>F.&nbsp;public&nbsp;abstract&nbsp;class&nbsp;Circle&nbsp;implements&nbsp;Shape&nbsp;{<br/>&#160;&#160;&#160;&#160;private&nbsp;int&nbsp;radius;<br/>&#160;&#160;&#160;&#160;public&nbsp;void&nbsp;draw()&nbsp;{&nbsp;/*&nbsp;code&nbsp;here&nbsp;*/&nbsp;}<br/>&nbsp;&nbsp;&nbsp;}]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=862</link>
			<title><![CDATA[Java的静态方法——SCJP真题解析Q51]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,21 Jun 2010 13:01:05 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=862</guid>	
		<description><![CDATA[QUESTION&nbsp;51:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;two&nbsp;statements&nbsp;are&nbsp;true?&nbsp;(choose&nbsp;two)<br/>A.&nbsp;Certkiller.beta()&nbsp;is&nbsp;a&nbsp;valid&nbsp;invocation&nbsp;of&nbsp;beta()<br/>B.&nbsp;Certkiller.alpha()&nbsp;is&nbsp;a&nbsp;valid&nbsp;invocation&nbsp;of&nbsp;alpha()<br/>C.&nbsp;Method&nbsp;beta()&nbsp;can&nbsp;directly&nbsp;call&nbsp;method&nbsp;alpha()<br/>D.&nbsp;Method&nbsp;alpha()&nbsp;can&nbsp;directly&nbsp;call&nbsp;method&nbsp;beta()]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=861</link>
			<title><![CDATA[Java中属性封装的getter/setter方法——SCJP真题解析Q50]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,21 Jun 2010 10:56:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=861</guid>	
		<description><![CDATA[QUESTION&nbsp;50:<br/>A&nbsp;Java&nbsp;Bean&nbsp;component&nbsp;has&nbsp;the&nbsp;following&nbsp;field:<br/>11.&nbsp;private&nbsp;boolean&nbsp;enabled;<br/>Which&nbsp;two&nbsp;pairs&nbsp;of&nbsp;method&nbsp;declarations&nbsp;follow&nbsp;the&nbsp;JavaBean&nbsp;standard&nbsp;for&nbsp;accessing&nbsp;this&nbsp;fields?&nbsp;(choose&nbsp;two)<br/>A.&nbsp;public&nbsp;void&nbsp;setEnabled(boolean&nbsp;enabled)<br/>public&nbsp;boolean&nbsp;getEnabled()<br/>B.&nbsp;public&nbsp;void&nbsp;setEnabled(boolean&nbsp;enabled)<br/>public&nbsp;void&nbsp;isEnabled()<br/>C.&nbsp;public&nbsp;void&nbsp;setEnabled(boolean&nbsp;enabled)<br/>public&nbsp;boolean&nbsp;isEnabled()<br/>D.&nbsp;public&nbsp;void&nbsp;setEnabled(boolean&nbsp;enabled)<br/>public&nbsp;boolean&nbsp;getEnabled()]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=860</link>
			<title><![CDATA[Java中Object类与数组的关系——SCJP真题解析Q49]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,18 Jun 2010 20:51:09 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=860</guid>	
		<description><![CDATA[QUESTION&nbsp;49:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;1&nbsp;2&nbsp;3<br/>B.&nbsp;Compiltion&nbsp;fails&nbsp;because&nbsp;of&nbsp;an&nbsp;error&nbsp;in&nbsp;line&nbsp;12.<br/>C.&nbsp;Compilation&nbsp;fails&nbsp;because&nbsp;of&nbsp;an&nbsp;error&nbsp;in&nbsp;line&nbsp;13<br/>D.&nbsp;Compilation&nbsp;fails&nbsp;because&nbsp;of&nbsp;an&nbsp;error&nbsp;in&nbsp;line&nbsp;14.<br/>E.&nbsp;A&nbsp;ClassCastException&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=859</link>
			<title><![CDATA[Java构造方法中this的用法——SCJP真题解析Q48]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,18 Jun 2010 20:42:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=859</guid>	
		<description><![CDATA[QUESTION&nbsp;48:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;snootchy&nbsp;420&nbsp;third&nbsp;second&nbsp;first<br/>B.&nbsp;snootchy&nbsp;420&nbsp;first&nbsp;second&nbsp;third<br/>C.&nbsp;first&nbsp;second&nbsp;third&nbsp;snootchy&nbsp;420<br/>D.&nbsp;third&nbsp;second&nbsp;first&nbsp;snootchy&nbsp;420<br/>E.&nbsp;thirds&nbsp;first&nbsp;second&nbsp;snootchy&nbsp;420<br/>F.&nbsp;first&nbsp;second&nbsp;first&nbsp;third&nbsp;snootchy&nbsp;420]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=858</link>
			<title><![CDATA[Java中重写方法的返回类型——SCJP真题解析Q47]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,18 Jun 2010 19:43:51 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=858</guid>	
		<description><![CDATA[QUESTION&nbsp;47:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;two&nbsp;methods,&nbsp;inserted&nbsp;individually,&nbsp;correctly&nbsp;complete&nbsp;the&nbsp;Certkiller&nbsp;3&nbsp;class?&nbsp;(choose&nbsp;two)<br/>A.&nbsp;public&nbsp;void&nbsp;foo()&nbsp;{}<br/>B.&nbsp;public&nbsp;int&nbsp;foo()&nbsp;{return&nbsp;3;&nbsp;}<br/>C.&nbsp;public&nbsp;Certkiller2&nbsp;foo()&nbsp;{return&nbsp;this;}<br/>D.&nbsp;public&nbsp;Certkiller1&nbsp;foo()&nbsp;{return&nbsp;this;}]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=857</link>
			<title><![CDATA[Java中全局变量和局部变量的优先级——SCJP真题解析Q46]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,18 Jun 2010 19:22:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=857</guid>	
		<description><![CDATA[QUESTION&nbsp;46:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;output&nbsp;from&nbsp;line&nbsp;5&nbsp;of&nbsp;the&nbsp;Certkiller&nbsp;class?<br/>A.&nbsp;5<br/>B.&nbsp;10<br/>C.&nbsp;12<br/>D.&nbsp;17<br/>E.&nbsp;24]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=856</link>
			<title><![CDATA[Java中方法的重载和重写——SCJP真题解析Q45]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,18 Jun 2010 18:02:31 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=856</guid>	
		<description><![CDATA[QUESTION&nbsp;45:<br/>DRAG&nbsp;Drop<br/>Add&nbsp;methods&nbsp;to&nbsp;the&nbsp;Beta&nbsp;class&nbsp;to&nbsp;make&nbsp;it&nbsp;compile&nbsp;correctly.<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Methods:<br/>private&nbsp;void&nbsp;bar(int&nbsp;x)&nbsp;{}<br/>public&nbsp;void&nbsp;bar(int&nbsp;x)&nbsp;{}<br/>public&nbsp;int&nbsp;bar(String&nbsp;x)&nbsp;{&nbsp;return&nbsp;1;&nbsp;}<br/>public&nbsp;Alpha&nbsp;bar(int&nbsp;x)&nbsp;{}<br/>public&nbsp;void&nbsp;bar(int&nbsp;x,&nbsp;int&nbsp;y)&nbsp;{}<br/>public&nbsp;int&nbsp;bar(int&nbsp;x)&nbsp;{&nbsp;return&nbsp;x;&nbsp;}]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=855</link>
			<title><![CDATA[Java中的内部类及其优先级——SCJP真题解析Q44]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Jun 2010 17:41:28 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=855</guid>	
		<description><![CDATA[QUESTION&nbsp;44:<br/>Exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;three&nbsp;statements&nbsp;are&nbsp;true?&nbsp;(Choose&nbsp;three)<br/>A.&nbsp;Compilation&nbsp;fails<br/>B.&nbsp;The&nbsp;code&nbsp;compiles&nbsp;and&nbsp;the&nbsp;output&nbsp;is&nbsp;2<br/>C.&nbsp;If&nbsp;lines&nbsp;7-11&nbsp;were&nbsp;removed,&nbsp;compilation&nbsp;would&nbsp;fail.<br/>D.&nbsp;If&nbsp;lines&nbsp;19-23&nbsp;were&nbsp;removed,&nbsp;compilation&nbsp;would&nbsp;fail.<br/>E.&nbsp;If&nbsp;lines&nbsp;7-11&nbsp;were&nbsp;removed,&nbsp;the&nbsp;code&nbsp;would&nbsp;compile&nbsp;and&nbsp;the&nbsp;output&nbsp;would&nbsp;be&nbsp;2.<br/>F.&nbsp;If&nbsp;lines&nbsp;19-23&nbsp;were&nbsp;removed,&nbsp;the&nbsp;code&nbsp;would&nbsp;compile&nbsp;and&nbsp;the&nbsp;output&nbsp;would&nbsp;be&nbsp;1.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=854</link>
			<title><![CDATA[Java中枚举类型的用法——SCJP真题解析Q43]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Jun 2010 17:05:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=854</guid>	
		<description><![CDATA[QUESTION&nbsp;43:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;code,&nbsp;inserted&nbsp;at&nbsp;line&nbsp;14,&nbsp;allows&nbsp;the&nbsp;Sprite&nbsp;class&nbsp;to&nbsp;compile?<br/>A.&nbsp;Direction&nbsp;d&nbsp;=&nbsp;NORTH;<br/>B.&nbsp;Certkiller.Direction&nbsp;d&nbsp;=&nbsp;NORTH;<br/>C.&nbsp;Direction&nbsp;d&nbsp;=&nbsp;Direction.NORTH;<br/>D.&nbsp;Certkiller.Direction&nbsp;d&nbsp;=&nbsp;Certkiller.Direction.NORTH;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=853</link>
			<title><![CDATA[Java中接口的继承——SCJP真题解析Q42]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Jun 2010 16:38:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=853</guid>	
		<description><![CDATA[QUESTION&nbsp;42:<br/>DRAG&nbsp;Drop<br/>Place&nbsp;the&nbsp;code&nbsp;fragments&nbsp;in&nbsp;position&nbsp;to&nbsp;complete&nbsp;the&nbsp;Displayable&nbsp;interface.<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Code&nbsp;Fragments:<br/>extends<br/>public&nbsp;void&nbsp;display();<br/>Reloadable<br/>implements<br/>public&nbsp;void&nbsp;display()&nbsp;{/*Display*/}<br/>Edit]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=852</link>
			<title><![CDATA[Java继承中的构造方法——SCJP真题解析Q41]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Jun 2010 11:54:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=852</guid>	
		<description><![CDATA[QUESTION&nbsp;41:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result&nbsp;when&nbsp;this&nbsp;ode&nbsp;executed?<br/>A.&nbsp;1<br/>B.&nbsp;3<br/>C.&nbsp;123<br/>D.&nbsp;321<br/>E.&nbsp;The&nbsp;code&nbsp;runs&nbsp;with&nbsp;no&nbsp;output]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=851</link>
			<title><![CDATA[Java中package和import的用法——SCJP真题解析Q40]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Jun 2010 11:39:08 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=851</guid>	
		<description><![CDATA[QUESTION&nbsp;40:<br/>DRAG&nbsp;Drop<br/><br/>com<br/>|_foo<br/>|&nbsp;&nbsp;|_bar<br/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_Dog.class<br/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_blatz<br/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_Book.class<br/>|_bar<br/>&nbsp;&nbsp;&nbsp;|_Car.class<br/>&nbsp;&nbsp;&nbsp;|_blatz<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_Sun.class<br/><br/>The&nbsp;image&nbsp;represents&nbsp;a&nbsp;complete&nbsp;package&nbsp;structure&nbsp;for&nbsp;a&nbsp;set&nbsp;of&nbsp;classes:&nbsp;&quot;com&quot;&nbsp;is&nbsp;the&nbsp;beginning&nbsp;of&nbsp;the&nbsp;fully-qualified&nbsp;package&nbsp;name&nbsp;for&nbsp;all&nbsp;classes.<br/>Give&nbsp;this&nbsp;package&nbsp;structure,&nbsp;insert&nbsp;the&nbsp;code&nbsp;needed&nbsp;to&nbsp;make&nbsp;the&nbsp;Car&nbsp;class&nbsp;compile&nbsp;and&nbsp;runt&nbsp;successfully.<br/>All&nbsp;three&nbsp;placeholds&nbsp;must&nbsp;be&nbsp;filled.&nbsp;If&nbsp;fewer&nbsp;than&nbsp;three&nbsp;statement&nbsp;are&nbsp;needed,&nbsp;use&nbsp;the&nbsp;&quot;//&nbsp;blank&quot;&nbsp;options.<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>import&nbsp;com.foo.bar.blatz.*;<br/>package&nbsp;com.foo.bar.blatz.*;<br/>import&nbsp;com.bar.*;<br/>import&nbsp;com.*;<br/>package&nbsp;com.bar;<br/>package&nbsp;com;<br/>import&nbsp;com.foo.*;<br/>//blank<br/>import&nbsp;com.foo.bar.*;<br/>import&nbsp;com.foo.bar.Book;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=850</link>
			<title><![CDATA[Java中的private方法——SCJP真题解析Q39]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Jun 2010 11:00:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=850</guid>	
		<description><![CDATA[QUESTION&nbsp;39:<br/>Given&nbsp;classes&nbsp;defined&nbsp;in&nbsp;two&nbsp;different&nbsp;files:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;required&nbsp;at&nbsp;line&nbsp;5&nbsp;in&nbsp;class&nbsp;Certkiller&nbsp;Application&nbsp;to&nbsp;use&nbsp;the&nbsp;process&nbsp;method&nbsp;of&nbsp;BitUtils?<br/>A.&nbsp;process&nbsp;(bytes);<br/>B.&nbsp;BitUtils.process(bytes);<br/>C.&nbsp;App.BitUtils.process&nbsp;(bytes)<br/>D.&nbsp;Util.BitUtils.process&nbsp;(bytes)<br/>E.&nbsp;import&nbsp;util.BitUtils.*;&nbsp;process&nbsp;(bytes);<br/>F.&nbsp;CertkillerApplication&nbsp;cannot&nbsp;use&nbsp;the&nbsp;process&nbsp;method&nbsp;in&nbsp;BitUtils.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=849</link>
			<title><![CDATA[Java参数传递中的传值和传址的区别——SCJP真题解析Q38]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,13 Jun 2010 17:46:21 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=849</guid>	
		<description><![CDATA[QUESTION&nbsp;38:<br/>Exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;outcome&nbsp;of&nbsp;the&nbsp;code?<br/>A.&nbsp;Compilation&nbsp;fails.<br/>B.&nbsp;Gobstopper<br/>&nbsp;&nbsp;&nbsp;Fizzylifting<br/>C.&nbsp;Gobstopper<br/>&nbsp;&nbsp;&nbsp;Scremdiddlyumptious<br/>D.&nbsp;Scrumdiddlyumptious<br/>&nbsp;&nbsp;&nbsp;Fizzylifting<br/>E.&nbsp;Scrumiddlyumptious<br/>&nbsp;&nbsp;&nbsp;Scrumdiddlyumptious]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=848</link>
			<title><![CDATA[Java中package和import的用法——SCJP真题解析Q37]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,13 Jun 2010 17:05:14 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=848</guid>	
		<description><![CDATA[QUESTION&nbsp;37:<br/>Given&nbsp;classes&nbsp;defined&nbsp;in&nbsp;two&nbsp;different&nbsp;files:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;required&nbsp;at&nbsp;line&nbsp;5&nbsp;in&nbsp;class&nbsp;CertkillerApp&nbsp;to&nbsp;use&nbsp;the&nbsp;process&nbsp;method&nbsp;of&nbsp;BitUtils?<br/>A.&nbsp;process&nbsp;(bytes);<br/>B.&nbsp;BitUtils.process&nbsp;(bytes);<br/>C.&nbsp;util.BitUtils.process&nbsp;(bytes);<br/>D.&nbsp;CertkillerApp&nbsp;cannot&nbsp;use&nbsp;methods&nbsp;in&nbsp;BitUtils<br/>E.&nbsp;import&nbsp;util.BitUtils.*;&nbsp;process&nbsp;(bytes);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=847</link>
			<title><![CDATA[Java中的系统属性——SCJP真题解析Q36]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,13 Jun 2010 16:23:53 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=847</guid>	
		<description><![CDATA[QUESTION&nbsp;36:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>and&nbsp;the&nbsp;command&nbsp;line:&nbsp;java&nbsp;-&nbsp;Dprop.custom=gobstopper&nbsp;Certkiller<br/>Which&nbsp;two,&nbsp;placed&nbsp;on&nbsp;line&nbsp;13,&nbsp;will&nbsp;produce&nbsp;the&nbsp;output&nbsp;gobstopper?&nbsp;(choose&nbsp;two)<br/>A.&nbsp;System.load&nbsp;(&quot;prop.custom&quot;);<br/>B.&nbsp;System.getenv&nbsp;(&quot;prop.custom&quot;);<br/>C.&nbsp;System.property&nbsp;(&quot;prop.custom&quot;);<br/>D.&nbsp;System.getProperty(&quot;prop.custom&quot;);<br/>E.&nbsp;System.getProperties&nbsp;(&nbsp;).getProperty&nbsp;(&quot;prop.custom&quot;);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=846</link>
			<title><![CDATA[Java运算符中“=”和“==”的区别——SCJP真题解析Q35]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,13 Jun 2010 15:49:40 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=846</guid>	
		<description><![CDATA[QUESTION&nbsp;35:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;r,&nbsp;t,&nbsp;t<br/>B.&nbsp;r,&nbsp;e,&nbsp;o,<br/>C.&nbsp;Compilation&nbsp;fails<br/>D.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=845</link>
			<title><![CDATA[Java中main函数的参数和数组的下标——SCJP真题解析Q34]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,13 Jun 2010 15:25:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=845</guid>	
		<description><![CDATA[QUESTION&nbsp;34:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>and&nbsp;the&nbsp;command&nbsp;line&nbsp;invocation&nbsp;java&nbsp;Certkiller5&nbsp;a&nbsp;b&nbsp;c<br/>what&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;a&nbsp;b<br/>B.&nbsp;b&nbsp;c<br/>C.&nbsp;a&nbsp;b&nbsp;c<br/>d.&nbsp;Compilation&nbsp;fails<br/>C.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=844</link>
			<title><![CDATA[Java中垃圾回收的条件——SCJP真题解析Q33]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,13 Jun 2010 14:43:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=844</guid>	
		<description><![CDATA[QUESTION&nbsp;33:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;statement&nbsp;is&nbsp;true&nbsp;about&nbsp;the&nbsp;object&nbsp;referenced&nbsp;by&nbsp;snoog,&nbsp;smooch&nbsp;and&nbsp;booch&nbsp;immediately&nbsp;after&nbsp;line&nbsp;23&nbsp;executes?<br/>A.&nbsp;None&nbsp;of&nbsp;these&nbsp;objects&nbsp;are&nbsp;eligible&nbsp;for&nbsp;garbage&nbsp;collection<br/>B.&nbsp;Only&nbsp;the&nbsp;object&nbsp;referenced&nbsp;by&nbsp;booch&nbsp;is&nbsp;eligible&nbsp;for&nbsp;garbage&nbsp;collection<br/>C.&nbsp;Only&nbsp;the&nbsp;pbject&nbsp;referenced&nbsp;by&nbsp;snoog&nbsp;is&nbsp;eligible&nbsp;for&nbsp;garbage&nbsp;colletion<br/>D.&nbsp;Only&nbsp;the&nbsp;object&nbsp;referenced&nbsp;by&nbsp;smooch&nbsp;is&nbsp;eligible&nbsp;for&nbsp;garbage&nbsp;collection<br/>E.&nbsp;The&nbsp;objects&nbsp;referenced&nbsp;by&nbsp;smooch&nbsp;and&nbsp;booch&nbsp;are&nbsp;eligible&nbsp;for&nbsp;garbage&nbsp;collection]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=843</link>
			<title><![CDATA[Java中引入jar包的方法——SCJP真题解析Q32]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,13 Jun 2010 13:32:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=843</guid>	
		<description><![CDATA[QUESTION&nbsp;32:<br/>A&nbsp;developer&nbsp;is&nbsp;creating&nbsp;a&nbsp;class&nbsp;Book,&nbsp;that&nbsp;needs&nbsp;to&nbsp;acces&nbsp;class&nbsp;Paper.&nbsp;The&nbsp;Paper&nbsp;class&nbsp;is&nbsp;deployed&nbsp;in&nbsp;a&nbsp;JAR&nbsp;named&nbsp;myLib.jar.&nbsp;Which&nbsp;three,&nbsp;taken&nbsp;independently,&nbsp;will&nbsp;allow&nbsp;the&nbsp;developer&nbsp;to&nbsp;use&nbsp;the&nbsp;Paper&nbsp;class&nbsp;while&nbsp;compiling&nbsp;the&nbsp;Book&nbsp;class?&nbsp;(choose&nbsp;three)<br/>A.&nbsp;The&nbsp;JAR&nbsp;file&nbsp;is&nbsp;located&nbsp;at&nbsp;%JAVA_HOME%/jre/classes/myLib.jar.<br/>B.&nbsp;The&nbsp;JAR&nbsp;file&nbsp;is&nbsp;located&nbsp;at&nbsp;%JAVA_HOME%/jre/lib/ext/myLib.jar.<br/>C.&nbsp;The&nbsp;JAR&nbsp;file&nbsp;is&nbsp;located&nbsp;at&nbsp;/foo/myLib.jar&nbsp;and&nbsp;a&nbsp;classpath&nbsp;environment&nbsp;variable&nbsp;is&nbsp;set&nbsp;that&nbsp;includes&nbsp;/foo/myLib.jar/Paper.Class.<br/>D.&nbsp;The&nbsp;JAR&nbsp;file&nbsp;is&nbsp;located&nbsp;at&nbsp;/foo/myLib.jar&nbsp;and&nbsp;a&nbsp;classpath&nbsp;environment&nbsp;variable&nbsp;is&nbsp;set&nbsp;that&nbsp;includes&nbsp;/foo/myLib.jar.<br/>E.&nbsp;The&nbsp;JAR&nbsp;file&nbsp;is&nbsp;located&nbsp;at&nbsp;/foo/myLib.jar&nbsp;and&nbsp;the&nbsp;Book&nbsp;class&nbsp;is&nbsp;compiled&nbsp;using&nbsp;javac&nbsp;-cp&nbsp;/foo/myLib.jar/Paper&nbsp;Book.java.<br/>F.&nbsp;The&nbsp;JAR&nbsp;file&nbsp;is&nbsp;located&nbsp;at&nbsp;/foo/myLib.jar&nbsp;and&nbsp;the&nbsp;Book&nbsp;class&nbsp;is&nbsp;compiled&nbsp;using&nbsp;javac&nbsp;-d&nbsp;/foo/myLib.jar&nbsp;Book.java.<br/>G.&nbsp;The&nbsp;JAR&nbsp;file&nbsp;is&nbsp;located&nbsp;at&nbsp;/foo/myLib.jar&nbsp;and&nbsp;the&nbsp;Book&nbsp;class&nbsp;is&nbsp;compiled&nbsp;using&nbsp;javac&nbsp;-classpath&nbsp;/foo/myLib.jar&nbsp;Book.java]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=842</link>
			<title><![CDATA[Java参数传递中的传值和传址的区别——SCJP真题解析Q31]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,11 Jun 2010 16:25:54 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=842</guid>	
		<description><![CDATA[QUESTION&nbsp;31:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;output&nbsp;of&nbsp;the&nbsp;program&nbsp;shown&nbsp;in&nbsp;the&nbsp;exhibit?<br/>A.&nbsp;300-100-100-100-100<br/>B.&nbsp;300-300-100-100-100<br/>C.&nbsp;300-300-300-100-100<br/>D.&nbsp;300-300-300-300-100]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=841</link>
			<title><![CDATA[Java的垃圾回收器——SCJP真题解析Q30]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,11 Jun 2010 13:35:57 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=841</guid>	
		<description><![CDATA[QUESTION&nbsp;30:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;statement&nbsp;should&nbsp;be&nbsp;placed&nbsp;at&nbsp;line&nbsp;14&nbsp;to&nbsp;suggest&nbsp;that&nbsp;the&nbsp;virtual&nbsp;machine&nbsp;expend&nbsp;effort&nbsp;toward&nbsp;recycling&nbsp;the&nbsp;memory&nbsp;used&nbsp;by&nbsp;the&nbsp;object&nbsp;certkiller&nbsp;?<br/>A.&nbsp;System.gc&nbsp;(&nbsp;);<br/>B.&nbsp;Runtime.gc&nbsp;(&nbsp;);<br/>C.&nbsp;System.freeMemory&nbsp;(&nbsp;);<br/>D.&nbsp;Runtime.getRuntime&nbsp;(&nbsp;).growHeap&nbsp;(&nbsp;);<br/>E.&nbsp;Runtime.getRuntime&nbsp;(&nbsp;).freeMemory&nbsp;(&nbsp;);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=840</link>
			<title><![CDATA[Java中多态的用法——SCJP真题解析Q29]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,11 Jun 2010 11:42:28 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=840</guid>	
		<description><![CDATA[QUESTION&nbsp;29:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;three&nbsp;code&nbsp;fragments&nbsp;inserted&nbsp;individually&nbsp;at&nbsp;line&nbsp;15,&nbsp;make&nbsp;use&nbsp;of&nbsp;polymorphism?&nbsp;(choose&nbsp;three)<br/>A.&nbsp;public&nbsp;void&nbsp;add&nbsp;(C&nbsp;c)&nbsp;{&nbsp;c.getValue&nbsp;(&nbsp;);&nbsp;}<br/>B.&nbsp;public&nbsp;void&nbsp;add&nbsp;(B&nbsp;b)&nbsp;{&nbsp;b.getValue&nbsp;(&nbsp;);&nbsp;}<br/>C.&nbsp;public&nbsp;void&nbsp;add&nbsp;(A&nbsp;a)&nbsp;{&nbsp;a.getValue&nbsp;(&nbsp;);&nbsp;}<br/>D.&nbsp;public&nbsp;void&nbsp;add&nbsp;(A&nbsp;a,&nbsp;B&nbsp;b)&nbsp;{&nbsp;a.getValue&nbsp;(&nbsp;);&nbsp;}<br/>E.&nbsp;public&nbsp;void&nbsp;add&nbsp;(C&nbsp;c1&nbsp;C&nbsp;c2)&nbsp;{&nbsp;c1.getValue&nbsp;(&nbsp;);&nbsp;}]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=839</link>
			<title><![CDATA[Java继承中的构造方法和修饰符——SCJP真题解析Q28]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,10 Jun 2010 15:58:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=839</guid>	
		<description><![CDATA[QUESTION&nbsp;28:<br/>Exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;two&nbsp;must&nbsp;the&nbsp;programmer&nbsp;do&nbsp;to&nbsp;correct&nbsp;the&nbsp;compilation&nbsp;errors?<br/>A.&nbsp;insert&nbsp;a&nbsp;call&nbsp;to&nbsp;this()&nbsp;in&nbsp;the&nbsp;Car&nbsp;constructor<br/>B.&nbsp;insert&nbsp;a&nbsp;call&nbsp;to&nbsp;this()&nbsp;in&nbsp;the&nbsp;MeGo&nbsp;constructor<br/>C.&nbsp;insert&nbsp;a&nbsp;call&nbsp;to&nbsp;super()&nbsp;in&nbsp;the&nbsp;MeGo&nbsp;constructor<br/>D.&nbsp;insert&nbsp;a&nbsp;call&nbsp;to&nbsp;super(vin)&nbsp;in&nbsp;the&nbsp;MeGo&nbsp;constructor<br/>E.&nbsp;change&nbsp;the&nbsp;wheel&nbsp;Count&nbsp;variable&nbsp;in&nbsp;Car&nbsp;to&nbsp;protected<br/>F.&nbsp;change&nbsp;line&nbsp;3&nbsp;in&nbsp;the&nbsp;Mego&nbsp;class&nbsp;to&nbsp;super&nbsp;wheel&nbsp;Count&nbsp;=3;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=838</link>
			<title><![CDATA[Java的多态和对象转型——SCJP真题解析Q27]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,08 Jun 2010 17:48:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=838</guid>	
		<description><![CDATA[QUESTION&nbsp;27:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;peep<br/>B.&nbsp;bark<br/>C.&nbsp;meow<br/>D.&nbsp;Compilation&nbsp;fails.<br/>E.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=837</link>
			<title><![CDATA[Java的封装——SCJP真题解析Q26]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,08 Jun 2010 15:52:05 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=837</guid>	
		<description><![CDATA[QUESTION&nbsp;26:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;statement&nbsp;is&nbsp;true?<br/>A.&nbsp;The&nbsp;class&nbsp;is&nbsp;fully&nbsp;encapsulated<br/>B.&nbsp;The&nbsp;code&nbsp;demonstrates&nbsp;polymorphism.<br/>C.&nbsp;The&nbsp;ownerName&nbsp;variable&nbsp;breaks&nbsp;encapsulation<br/>D.&nbsp;The&nbsp;CardID&nbsp;and&nbsp;limit&nbsp;variables&nbsp;break&nbsp;polymorphism<br/>E.&nbsp;The&nbsp;setCardInformation&nbsp;method&nbsp;breaks&nbsp;encapsulation]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=836</link>
			<title><![CDATA[Java继承中的重写方法和super关键字——SCJP真题解析Q25]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,08 Jun 2010 15:20:20 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=836</guid>	
		<description><![CDATA[QUESTION&nbsp;25:<br/>Exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;Value&nbsp;is&nbsp;:&nbsp;8<br/>B.&nbsp;Compilation&nbsp;fails.<br/>C.&nbsp;Value&nbsp;is&nbsp;:&nbsp;12<br/>D.&nbsp;Value&nbsp;is&nbsp;;&nbsp;-12<br/>E.&nbsp;The&nbsp;code&nbsp;runs&nbsp;with&nbsp;no&nbsp;output<br/>F.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=835</link>
			<title><![CDATA[Java中修饰符的用法——SCJP真题解析Q24]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,07 Jun 2010 17:42:12 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=835</guid>	
		<description><![CDATA[QUESTION&nbsp;24:<br/>DRAG&nbsp;Drop<br/>Replace&nbsp;two&nbsp;of&nbsp;the&nbsp;Modifiers&nbsp;that&nbsp;appear&nbsp;in&nbsp;the&nbsp;Single&nbsp;class&nbsp;to&nbsp;make&nbsp;the&nbsp;code&nbsp;compile.<br/>Note:&nbsp;Three&nbsp;modifiers&nbsp;will&nbsp;not&nbsp;be&nbsp;used&nbsp;and&nbsp;four&nbsp;modifiers&nbsp;in&nbsp;the&nbsp;code&nbsp;will&nbsp;remain&nbsp;unchanged.<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Modifiers:<br/>fimal&nbsp;&nbsp;&nbsp;&nbsp;protected&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;&nbsp;&nbsp;&nbsp;abstract&nbsp;&nbsp;&nbsp;&nbsp;static<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=834</link>
			<title><![CDATA[Java中is-a和has-a的区别——SCJP真题解析Q23]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,07 Jun 2010 16:09:47 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=834</guid>	
		<description><![CDATA[QUESTION&nbsp;23:<br/>DRAG&nbsp;Drop<br/>Place&nbsp;the&nbsp;Types&nbsp;in&nbsp;one&nbsp;of&nbsp;the&nbsp;Type&nbsp;columns,&nbsp;and&nbsp;the&nbsp;Relationships&nbsp;in&nbsp;the&nbsp;Relationship&nbsp;column,&nbsp;to&nbsp;define&nbsp;approp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;&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;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pen]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=833</link>
			<title><![CDATA[Java中修饰符的用法——SCJP真题解析Q22]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,07 Jun 2010 15:44:28 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=833</guid>	
		<description><![CDATA[QUESTION&nbsp;22:<br/>Which&nbsp;three&nbsp;statements&nbsp;are&nbsp;true?&nbsp;(choose&nbsp;three)<br/>A.&nbsp;A&nbsp;final&nbsp;method&nbsp;in&nbsp;class&nbsp;x&nbsp;can&nbsp;be&nbsp;abstract&nbsp;if&nbsp;and&nbsp;only&nbsp;if&nbsp;X&nbsp;is&nbsp;abstract<br/>B.&nbsp;A&nbsp;protected&nbsp;method&nbsp;in&nbsp;class&nbsp;x&nbsp;can&nbsp;be&nbsp;overridden&nbsp;by&nbsp;any&nbsp;subclass&nbsp;of&nbsp;x.<br/>C.&nbsp;A&nbsp;private&nbsp;static&nbsp;method&nbsp;can&nbsp;be&nbsp;called&nbsp;only&nbsp;within&nbsp;other&nbsp;static&nbsp;methods&nbsp;in&nbsp;class&nbsp;X.<br/>D.&nbsp;A&nbsp;non-static&nbsp;public&nbsp;final&nbsp;method&nbsp;in&nbsp;class&nbsp;X&nbsp;can&nbsp;be&nbsp;overridden&nbsp;in&nbsp;any&nbsp;subclass&nbsp;of&nbsp;X.<br/>E.&nbsp;A&nbsp;public&nbsp;static&nbsp;method&nbsp;in&nbsp;class&nbsp;X&nbsp;can&nbsp;be&nbsp;called&nbsp;by&nbsp;a&nbsp;subclass&nbsp;of&nbsp;X&nbsp;without&nbsp;explicitly&nbsp;referencing&nbsp;the&nbsp;class&nbsp;x.<br/>F.&nbsp;A&nbsp;method&nbsp;with&nbsp;the&nbsp;same&nbsp;signature&nbsp;as&nbsp;a&nbsp;private&nbsp;final&nbsp;method&nbsp;in&nbsp;class&nbsp;X&nbsp;can&nbsp;be&nbsp;implemented&nbsp;in&nbsp;a&nbsp;subclass&nbsp;of&nbsp;X.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=832</link>
			<title><![CDATA[Java中类和成员的访问控制——SCJP真题解析Q21]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,04 Jun 2010 11:38:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=832</guid>	
		<description><![CDATA[QUESTION&nbsp;21:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;can&nbsp;directly&nbsp;access&nbsp;and&nbsp;change&nbsp;the&nbsp;value&nbsp;of&nbsp;the&nbsp;variable&nbsp;name?<br/>A.&nbsp;any&nbsp;class<br/>B.&nbsp;only&nbsp;the&nbsp;Target&nbsp;class<br/>C.&nbsp;any&nbsp;class&nbsp;in&nbsp;the&nbsp;Certkiller&nbsp;package<br/>D.&nbsp;any&nbsp;class&nbsp;that&nbsp;extends&nbsp;Target]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=831</link>
			<title><![CDATA[Java中is-a和has-a的区别——SCJP真题解析Q20]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,03 Jun 2010 17:14:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=831</guid>	
		<description><![CDATA[QUESTION&nbsp;20:<br/>Which&nbsp;two&nbsp;statements&nbsp;are&nbsp;true&nbsp;about&nbsp;has-a&nbsp;and&nbsp;is-a&nbsp;relationships?&nbsp;(choose&nbsp;two)<br/>A.&nbsp;Inheritance&nbsp;represents&nbsp;an&nbsp;is-a&nbsp;relationship<br/>B.&nbsp;Inheritance&nbsp;represents&nbsp;a&nbsp;has-a&nbsp;relationship<br/>C.&nbsp;Interfaces&nbsp;must&nbsp;be&nbsp;used&nbsp;when&nbsp;creating&nbsp;a&nbsp;has-a&nbsp;relationship<br/>D.&nbsp;Instance&nbsp;variables&nbsp;can&nbsp;be&nbsp;used&nbsp;when&nbsp;creating&nbsp;a&nbsp;has-a&nbsp;relationship]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=830</link>
			<title><![CDATA[Java中通过throws抛出异常——SCJP真题解析Q19]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,03 Jun 2010 16:31:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=830</guid>	
		<description><![CDATA[QUESTION&nbsp;19:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;Compilation&nbsp;fails<br/>B.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime<br/>C.&nbsp;The&nbsp;code&nbsp;executes&nbsp;normally&nbsp;and&nbsp;prints&nbsp;&quot;sleep&quot;<br/>D.&nbsp;The&nbsp;code&nbsp;executes&nbsp;normally,&nbsp;but&nbsp;nothing&nbsp;is&nbsp;printed.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=829</link>
			<title><![CDATA[Java线程同步中的wait和notify方法——SCJP真题解析Q18]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,03 Jun 2010 14:39:04 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=829</guid>	
		<description><![CDATA[QUESTION&nbsp;18:<br/>Exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;The&nbsp;code&nbsp;will&nbsp;deadlock<br/>B.&nbsp;The&nbsp;code&nbsp;may&nbsp;run&nbsp;with&nbsp;no&nbsp;output<br/>C.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime<br/>D.&nbsp;The&nbsp;code&nbsp;may&nbsp;run&nbsp;with&nbsp;output&nbsp;&quot;&nbsp;0&nbsp;6&nbsp;&quot;<br/>E.&nbsp;The&nbsp;code&nbsp;may&nbsp;run&nbsp;with&nbsp;output&nbsp;&quot;2&nbsp;0&nbsp;6&nbsp;4&quot;<br/>F.&nbsp;The&nbsp;code&nbsp;may&nbsp;run&nbsp;with&nbsp;output&nbsp;&quot;0&nbsp;2&nbsp;4&nbsp;6&quot;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=828</link>
			<title><![CDATA[Java中synchronized关键字的用法——SCJP真题解析Q17]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,02 Jun 2010 17:59:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=828</guid>	
		<description><![CDATA[QUESTION&nbsp;17:<br/>Which&nbsp;three&nbsp;will&nbsp;compile&nbsp;and&nbsp;run&nbsp;without&nbsp;exception?&nbsp;(choose&nbsp;three)<br/>A.&nbsp;private&nbsp;synchronized&nbsp;Object&nbsp;o;<br/>B.&nbsp;void&nbsp;go()&nbsp;{<br/>&#160;&#160;&#160;&#160;synchronized()&nbsp;{&nbsp;/*&nbsp;code&nbsp;here&nbsp;*/&nbsp;}<br/>&nbsp;&nbsp;&nbsp;}<br/>C.&nbsp;public&nbsp;synchronized&nbsp;void&nbsp;go()&nbsp;{&nbsp;/*&nbsp;code&nbsp;here&nbsp;*/&nbsp;}<br/>D.&nbsp;private&nbsp;synchronized(this)&nbsp;void&nbsp;go()&nbsp;{&nbsp;/*&nbsp;code&nbsp;here&nbsp;*/&nbsp;}<br/>E.&nbsp;void&nbsp;go()&nbsp;{<br/>&#160;&#160;&#160;&#160;synchronized(Object.class)&nbsp;{&nbsp;/*&nbsp;code&nbsp;here&nbsp;*/&nbsp;}<br/>&nbsp;&nbsp;&nbsp;}<br/>F.&nbsp;void&nbsp;go()&nbsp;{<br/>&#160;&#160;&#160;&#160;synchronized(o)&nbsp;{&nbsp;/*&nbsp;code&nbsp;here&nbsp;*/&nbsp;}<br/>&nbsp;&nbsp;&nbsp;}]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=827</link>
			<title><![CDATA[Java线程中run和start方法详解——SCJP真题解析Q16]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,02 Jun 2010 13:59:54 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=827</guid>	
		<description><![CDATA[QUESTION&nbsp;16:<br/>Which&nbsp;two&nbsp;code&nbsp;fragments&nbsp;will&nbsp;execute&nbsp;the&nbsp;method&nbsp;doStuff()&nbsp;in&nbsp;a&nbsp;separate&nbsp;thread?&nbsp;(choose&nbsp;two)<br/>A.&nbsp;new&nbsp;Thread&nbsp;()&nbsp;{<br/>&#160;&#160;&#160;&#160;public&nbsp;void&nbsp;run()&nbsp;{&nbsp;doStuff();&nbsp;}<br/>&nbsp;&nbsp;&nbsp;};<br/>B.&nbsp;new&nbsp;Thread&nbsp;()&nbsp;{<br/>&#160;&#160;&#160;&#160;public&nbsp;void&nbsp;start()&nbsp;{&nbsp;doStuff();&nbsp;}<br/>&nbsp;&nbsp;&nbsp;};<br/>C.&nbsp;new&nbsp;Thread()&nbsp;{<br/>&#160;&#160;&#160;&#160;public&nbsp;void&nbsp;start()&nbsp;{&nbsp;doStuff();&nbsp;}<br/>&nbsp;&nbsp;&nbsp;}.run();<br/>D.&nbsp;new&nbsp;Thread()&nbsp;{<br/>&#160;&#160;&#160;&#160;public&nbsp;void&nbsp;run()&nbsp;{&nbsp;doStuff();&nbsp;}<br/>&nbsp;&nbsp;&nbsp;}.start();<br/>E.&nbsp;new&nbsp;Thread&nbsp;(new&nbsp;Runnable()&nbsp;{<br/>&#160;&#160;&#160;&#160;public&nbsp;void&nbsp;run()&nbsp;{&nbsp;doStuff();&nbsp;}<br/>&nbsp;&nbsp;&nbsp;}).run();<br/>F.&nbsp;new&nbsp;Thread&nbsp;(new&nbsp;Runnable()&nbsp;{<br/>&#160;&#160;&#160;&#160;public&nbsp;void&nbsp;run()&nbsp;{&nbsp;doStuff();&nbsp;}<br/>&nbsp;&nbsp;&nbsp;}).start();]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=826</link>
			<title><![CDATA[Java线程的join方法——SCJP真题解析Q15]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,02 Jun 2010 12:28:56 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=826</guid>	
		<description><![CDATA[QUESTION&nbsp;15:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;can&nbsp;be&nbsp;a&nbsp;result?<br/>A.&nbsp;Compilation&nbsp;fails<br/>B.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime<br/>C.&nbsp;The&nbsp;code&nbsp;executes&nbsp;and&nbsp;prints&nbsp;&quot;StartedComplete&quot;<br/>D.&nbsp;The&nbsp;code&nbsp;executes&nbsp;and&nbsp;prints&nbsp;&quot;StartedComplete0123&quot;<br/>E.&nbsp;The&nbsp;code&nbsp;executes&nbsp;and&nbsp;prints&nbsp;&quot;Started0123Complete&quot;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=825</link>
			<title><![CDATA[Java线程同步中的wait和notify方法——SCJP真题解析Q14]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,01 Jun 2010 15:07:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=825</guid>	
		<description><![CDATA[QUESTION&nbsp;14:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;statement&nbsp;is&nbsp;rue?<br/>A.&nbsp;This&nbsp;code&nbsp;may&nbsp;throw&nbsp;an&nbsp;InterruptedException<br/>B.&nbsp;This&nbsp;code&nbsp;may&nbsp;throw&nbsp;an&nbsp;IllegalStateExcepion<br/>C.&nbsp;This&nbsp;code&nbsp;may&nbsp;throw&nbsp;a&nbsp;TimeOutException&nbsp;after&nbsp;ten&nbsp;minutes<br/>D.&nbsp;This&nbsp;code&nbsp;will&nbsp;not&nbsp;compile&nbsp;unless&nbsp;&quot;obj.wait()&quot;&nbsp;is&nbsp;replaced&nbsp;with&nbsp;&quot;((Thread)obj).wait()&quot;<br/>E.&nbsp;Reversing&nbsp;the&nbsp;order&nbsp;of&nbsp;obj.wait()&nbsp;and&nbsp;obj.notify()&nbsp;may&nbsp;vcause&nbsp;this&nbsp;method&nbsp;to&nbsp;complete&nbsp;normally<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=824</link>
			<title><![CDATA[Java线程切换——SCJP真题解析Q13]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,01 Jun 2010 13:01:05 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=824</guid>	
		<description><![CDATA[QUESTION&nbsp;13:<br/>Exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;two&nbsp;are&nbsp;possible&nbsp;results?&nbsp;(choose&nbsp;two)<br/>A.&nbsp;0,2,4,4,6,8,10,6,<br/>B.&nbsp;0,2,4,6,8,10,2,4,<br/>C.&nbsp;0,2,4,6,8,10,12,14,<br/>D.&nbsp;0,0,2,2,4,4,6,6,8,8,10,10,12,12,14,14,<br/>E.&nbsp;0,2,4,6,8,10,12,14,0,2,4,6,8,10,12,14,]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=823</link>
			<title><![CDATA[Java线程中run和start方法的区别——SCJP真题解析Q12]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,31 May 2010 17:22:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=823</guid>	
		<description><![CDATA[QUESTION&nbsp;12:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;Compilation&nbsp;fails.<br/>B.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime<br/>C.&nbsp;The&nbsp;code&nbsp;executes&nbsp;and&nbsp;prints&nbsp;&quot;&nbsp;running&quot;<br/>D.&nbsp;The&nbsp;code&nbsp;executes&nbsp;and&nbsp;prints&nbsp;&quot;runningrunning&quot;<br/>E.&nbsp;The&nbsp;code&nbsp;executes&nbsp;and&nbsp;prints&nbsp;&quot;runningrunninigrunning&quot;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=822</link>
			<title><![CDATA[Java中的Locale和DateFormat类——SCJP真题解析Q11]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,31 May 2010 16:16:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=822</guid>	
		<description><![CDATA[QUESTION&nbsp;11:<br/>Given&nbsp;the&nbsp;exhibit:<br/>*&nbsp;D&nbsp;is&nbsp;valid&nbsp;,&nbsp;non-null&nbsp;Dateobject<br/>*&nbsp;df&nbsp;is&nbsp;a&nbsp;valid,&nbsp;non-null&nbsp;DateFormat&nbsp;object&nbsp;set&nbsp;to&nbsp;the&nbsp;current&nbsp;local<br/>What&nbsp;outputs&nbsp;the&nbsp;current&nbsp;;&nbsp;local&#39;s&nbsp;country&nbsp;name&nbsp;and&nbsp;the&nbsp;appropriate&nbsp;version&nbsp;of&nbsp;d&#39;s&nbsp;date?<br/>A.&nbsp;Locale&nbsp;loc&nbsp;=&nbsp;Locale.getLocale();<br/>&nbsp;&nbsp;&nbsp;System.out.println(loc.getDisplayCountry()&nbsp;+&nbsp;&quot;&nbsp;&quot;&nbsp;+&nbsp;df.format(d));<br/>B.&nbsp;Locale&nbsp;loc&nbsp;=&nbsp;Locale.getDefault();<br/>&nbsp;&nbsp;&nbsp;System.out.println(loc.getDisplayCountry()&nbsp;+&nbsp;&quot;&nbsp;&quot;&nbsp;+&nbsp;df.format(d));<br/>C.&nbsp;Locale&nbsp;loc&nbsp;=&nbsp;Locale.getLocale();<br/>&nbsp;&nbsp;&nbsp;System.out.println(loc.getDisplayCountry()&nbsp;+&nbsp;&quot;&nbsp;&quot;&nbsp;+&nbsp;df.setDateFormat(d));<br/>D.&nbsp;Locale&nbsp;loc&nbsp;=&nbsp;Locale.getDefault();<br/>&nbsp;&nbsp;&nbsp;System.out.println(loc.getDisplayCountry()&nbsp;+&nbsp;&quot;&nbsp;&quot;&nbsp;+&nbsp;df.setDateFormat(d));]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=821</link>
			<title><![CDATA[Java中方法的重载——SCJP真题解析Q10]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,31 May 2010 15:21:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=821</guid>	
		<description><![CDATA[QUESTION&nbsp;10:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;short&nbsp;Long<br/>B.&nbsp;SHORT&nbsp;LONG<br/>C.&nbsp;Compilation&nbsp;fails<br/>D.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=820</link>
			<title><![CDATA[Java序列化和反序列化——SCJP真题解析Q9]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,31 May 2010 14:35:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=820</guid>	
		<description><![CDATA[QUESTION&nbsp;9:<br/>Which&nbsp;three&nbsp;statements&nbsp;concerning&nbsp;the&nbsp;use&nbsp;of&nbsp;the&nbsp;java.io.Serializable&nbsp;interface&nbsp;are&nbsp;true?&nbsp;(choose&nbsp;three)<br/>A.&nbsp;Object&nbsp;from&nbsp;classes&nbsp;that&nbsp;use&nbsp;aggregation&nbsp;cannot&nbsp;be&nbsp;serialized.<br/>B.&nbsp;An&nbsp;object&nbsp;serialized&nbsp;on&nbsp;one&nbsp;JVM&nbsp;can&nbsp;be&nbsp;successfully&nbsp;desterilized&nbsp;on&nbsp;a&nbsp;different&nbsp;JVM.<br/>C.&nbsp;The&nbsp;values&nbsp;in&nbsp;fields&nbsp;with&nbsp;the&nbsp;Volatile&nbsp;modifier&nbsp;will&nbsp;NOT&nbsp;survive&nbsp;serialization&nbsp;and&nbsp;deserialization<br/>D.&nbsp;The&nbsp;values&nbsp;in&nbsp;field&nbsp;with&nbsp;the&nbsp;transient&nbsp;modifier&nbsp;will&nbsp;NOT&nbsp;survive&nbsp;serialization&nbsp;and&nbsp;deserialization<br/>E.&nbsp;It&nbsp;is&nbsp;legal&nbsp;to&nbsp;serialize&nbsp;an&nbsp;object&nbsp;of&nbsp;a&nbsp;type&nbsp;that&nbsp;has&nbsp;a&nbsp;supertype&nbsp;that&nbsp;does&nbsp;NOT&nbsp;implement&nbsp;java.io.Serializable&nbsp;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=819</link>
			<title><![CDATA[Java中StringBuffer和StringBuilder的常用方法——SCJP真题解析Q8]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,31 May 2010 12:53:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=819</guid>	
		<description><![CDATA[QUESTION&nbsp;8:<br/>Given&nbsp;the&nbsp;exhibit:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;two&nbsp;code&nbsp;fragments,&nbsp;inserted&nbsp;independently&nbsp;at&nbsp;line&nbsp;3,&nbsp;generate&nbsp;the&nbsp;output&nbsp;4247?&nbsp;(choose&nbsp;two)<br/>A.&nbsp;String&nbsp;s&nbsp;=&nbsp;&quot;123456789&quot;;<br/>&nbsp;&nbsp;&nbsp;s&nbsp;=&nbsp;(s&nbsp;-&nbsp;&quot;123&quot;).replace(1,&nbsp;3,&nbsp;&quot;24&quot;)&nbsp;-&nbsp;&quot;89&quot;;<br/>B.&nbsp;StringBuffer&nbsp;s&nbsp;=&nbsp;new&nbsp;StringBuffer(&quot;123456789&quot;);<br/>&nbsp;&nbsp;&nbsp;s.delete(0,&nbsp;3).replace(1,&nbsp;3,&nbsp;&quot;24&quot;).delete(4,&nbsp;6);<br/>C.&nbsp;StringBuffer&nbsp;s&nbsp;=&nbsp;new&nbsp;StringBuffer(&quot;123456789&quot;);<br/>&nbsp;&nbsp;&nbsp;s.substring(3,6).delete(1,&nbsp;3).insert(1,&nbsp;&quot;24&quot;);<br/>D.&nbsp;StringBuilder&nbsp;s&nbsp;=&nbsp;new&nbsp;StringBuilder(&quot;123456789&quot;);<br/>&nbsp;&nbsp;&nbsp;s.substring&nbsp;(3,6).delete(1,&nbsp;2).insert(1,&nbsp;&quot;24&quot;);<br/>E.&nbsp;StringBuilder&nbsp;s&nbsp;=&nbsp;new&nbsp;StringBuilder(&quot;123456789&quot;);<br/>&nbsp;&nbsp;&nbsp;s.delete(0,3).replace(1,3,&quot;&quot;).delete(2,5).insert(1,&nbsp;&quot;24&quot;);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=818</link>
			<title><![CDATA[Java写入流的比较——SCJP真题解析Q7]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,31 May 2010 10:58:46 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=818</guid>	
		<description><![CDATA[QUESTION&nbsp;7:<br/>When&nbsp;comparing&nbsp;java.Io.BufferedWriter&nbsp;to&nbsp;java.io.FileWriter,&nbsp;which&nbsp;capability&nbsp;exist&nbsp;as&nbsp;a&nbsp;method&nbsp;in&nbsp;only&nbsp;one&nbsp;of&nbsp;the&nbsp;two?<br/>A.&nbsp;closing&nbsp;the&nbsp;stream<br/>B.&nbsp;flushing&nbsp;the&nbsp;stream<br/>C.&nbsp;writing&nbsp;to&nbsp;the&nbsp;stream<br/>D.&nbsp;marking&nbsp;a&nbsp;location&nbsp;in&nbsp;the&nbsp;stream<br/>E.&nbsp;writing&nbsp;a&nbsp;line&nbsp;separator&nbsp;to&nbsp;the&nbsp;stream]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=817</link>
			<title><![CDATA[Java的格式化输出方法printf——SCJP真题解析Q6]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,28 May 2010 17:51:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=817</guid>	
		<description><![CDATA[QUESTION&nbsp;6:<br/>Given:<br/>System.out.printf(&quot;Pi&nbsp;is&nbsp;approximately&nbsp;%f&nbsp;and&nbsp;E&nbsp;is&nbsp;approximately&nbsp;%b&quot;,&nbsp;Math.PI,<br/>Math.E);<br/>Place&nbsp;the&nbsp;values&nbsp;where&nbsp;they&nbsp;would&nbsp;appear&nbsp;in&nbsp;the&nbsp;output.<br/><br/>Pi&nbsp;is&nbsp;approximately&nbsp;//place&nbsp;here<br/>and&nbsp;E&nbsp;is&nbsp;approximately&nbsp;//place&nbsp;here<br/><br/>3&#160;&#160;&#160;&#160;3.141593&#160;&#160;&#160;&#160;true&#160;&#160;&#160;&#160;Math.PI<br/>2&#160;&#160;&#160;&#160;2.718282&#160;&#160;&#160;&#160;false&#160;&#160;&#160;&#160;Math.E]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=816</link>
			<title><![CDATA[Java中文件的组成——SCJP真题解析Q5]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,28 May 2010 16:32:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=816</guid>	
		<description><![CDATA[QUESTION&nbsp;5:<br/>The&nbsp;doesFileExist&nbsp;method&nbsp;takes&nbsp;an&nbsp;array&nbsp;of&nbsp;directory&nbsp;names&nbsp;representing&nbsp;a&nbsp;path<br/>from&nbsp;the&nbsp;root&nbsp;filesystem&nbsp;and&nbsp;a&nbsp;file&nbsp;name.&nbsp;The&nbsp;method&nbsp;returns&nbsp;true&nbsp;if&nbsp;the&nbsp;file&nbsp;exists,<br/>falst&nbsp;if&nbsp;does&nbsp;not.<br/>Place&nbsp;the&nbsp;code&nbsp;fragments&nbsp;in&nbsp;position&nbsp;to&nbsp;complete&nbsp;this&nbsp;method.<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Code&nbsp;Fragments:<br/>path=path.getSubdirectory(dir);<br/>return&nbsp;!file.isNew();<br/>return&nbsp;(file&nbsp;!=&nbsp;null);<br/>String&nbsp;path&nbsp;=&nbsp;&quot;&quot;;<br/>path&nbsp;=&nbsp;path.getFile(filename);<br/>File&nbsp;path&nbsp;=&nbsp;new&nbsp;File(&quot;&quot;);<br/>return&nbsp;file.exists();<br/>return&nbsp;path.isFile();<br/>File&nbsp;file&nbsp;=&nbsp;new&nbsp;File(path,&nbsp;filename);<br/>path&nbsp;=&nbsp;new&nbsp;File(path,&nbsp;dir);<br/>File&nbsp;path&nbsp;=&nbsp;new&nbsp;File(File.separator);<br/>path&nbsp;=&nbsp;path&nbsp;+&nbsp;File.separator&nbsp;+&nbsp;dir;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=815</link>
			<title><![CDATA[Java使用DateFormat设置日期的时区——SCJP真题解析Q4]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,28 May 2010 13:54:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=815</guid>	
		<description><![CDATA[QUESTION&nbsp;4:<br/><br/>Given&nbsp;the&nbsp;exhibit.<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>The&nbsp;variable&nbsp;df&nbsp;is&nbsp;an&nbsp;object&nbsp;of&nbsp;type&nbsp;DateFormat&nbsp;that&nbsp;has&nbsp;been&nbsp;initialized&nbsp;in&nbsp;line&nbsp;11.<br/>What&nbsp;is&nbsp;the&nbsp;result&nbsp;if&nbsp;this&nbsp;code&nbsp;is&nbsp;run&nbsp;on&nbsp;December&nbsp;14,2000?<br/>A.&nbsp;The&nbsp;value&nbsp;of&nbsp;S&nbsp;is&nbsp;14&nbsp;-&nbsp;dic-2004<br/>B.&nbsp;The&nbsp;value&nbsp;of&nbsp;S&nbsp;is&nbsp;Dec&nbsp;14,&nbsp;2000<br/>C.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime<br/>D.&nbsp;Compilation&nbsp;fails&nbsp;because&nbsp;of&nbsp;an&nbsp;error&nbsp;in&nbsp;line&nbsp;13.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=814</link>
			<title><![CDATA[Java转义字符在正则表达式中的应用——SCJP真题解析Q3]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,28 May 2010 12:22:46 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=814</guid>	
		<description><![CDATA[QUESTION&nbsp;3:<br/>Given&nbsp;the&nbsp;exhibit.<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;0<br/>B.&nbsp;1<br/>C.&nbsp;4<br/>D.&nbsp;Compilation&nbsp;fails<br/>E.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=813</link>
			<title><![CDATA[Java反序列化——SCJP真题解析Q2]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,27 May 2010 17:50:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=813</guid>	
		<description><![CDATA[QUESTION&nbsp;2:<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>Which&nbsp;code,&nbsp;inserted&nbsp;ay&nbsp;line&nbsp;14,&nbsp;will&nbsp;allow&nbsp;this&nbsp;class&nbsp;to&nbsp;correctly&nbsp;serialized&nbsp;and<br/>desterilize?<br/>A.&nbsp;s.defaultReadObject();<br/>B.&nbsp;this&nbsp;=&nbsp;s.defaultReadObject();<br/>C.&nbsp;y&nbsp;=&nbsp;s.default();&nbsp;x&nbsp;=&nbsp;s.readInt();<br/>D.&nbsp;x&nbsp;=&nbsp;s.readInt();&nbsp;y&nbsp;=&nbsp;s.readInt();]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=812</link>
			<title><![CDATA[JUnit中常用的Annotation]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,27 May 2010 11:22:40 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=812</guid>	
		<description><![CDATA[JUnit中常用的Annotation有以下几种：<br/>1.@Test：测试方法，有如下两个参数：<br/>&nbsp;&nbsp;&nbsp;&nbsp;excepted=Exception.class：测试方法中抛出指定异常时，测试通过；<br/>&nbsp;&nbsp;&nbsp;&nbsp;timeout=100：测试方法执行时间小于指定值时，测试通过；<br/>2.@Ignore：被忽略的测试方法，运行时不执行该 试方法；<br/>3.@Before：在每个测试方法之前执行；<br/>4.@After：在每个测试方法之后执行；<br/>5.@BeforeClass：在所有测试方法之前执行，必须是static方法；<br/>6.@AfterClass：在所有测试方法之后执行，必须是static方法。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=811</link>
			<title><![CDATA[JUnit中使用Hamcrest测试框架的assertThat断言【4.4新特性】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,26 May 2010 23:54:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=811</guid>	
		<description><![CDATA[1.JUnit4.4引入了Hamcrest框架，Hamcest提供了一套匹配符Matcher，这些匹配符更接近自然语言，可读性高，更加灵活；<br/>2.使用全新的断言语法：assertThat，结合Hamcest提供的匹配符，只用这一个方法，就可以实现所有的测试；<br/>3.assertThat语法如下：<br/>&nbsp;&nbsp;&nbsp;&nbsp;assertThat(T&nbsp;actual,&nbsp;Matcher&lt;T&gt;&nbsp;matcher);<br/>&nbsp;&nbsp;&nbsp;&nbsp;assertThat(String&nbsp;reason,&nbsp;T&nbsp;actual,&nbsp;Matcher&lt;T&gt;&nbsp;matcher);<br/>&nbsp;&nbsp;&nbsp;&nbsp;其中actual为需要测试的变量，matcher为使用Hamcrest的匹配符来表达变量actual期望值的声明；<br/>4.注意事项：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.必须导入JUnit4.4之后的版本才能使用assertThat方法；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.不需要继承TestCase类，但是需要测试方法前必须加“@Test”。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=810</link>
			<title><![CDATA[Java序列化——SCJP真题解析Q1]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,25 May 2010 17:55:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=810</guid>	
		<description><![CDATA[QUESTION&nbsp;1:<br/>Given&nbsp;the&nbsp;code&nbsp;in&nbsp;the&nbsp;exhibit.<br/><br/>*************************<br/>相关代码内详<br/>*************************<br/><br/>What&nbsp;is&nbsp;the&nbsp;result?<br/>A.&nbsp;Compilation&nbsp;fails<br/>B.&nbsp;An&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;at&nbsp;runtime.<br/>C.&nbsp;An&nbsp;instance&nbsp;of&nbsp;Forest&nbsp;is&nbsp;serialized.<br/>D.&nbsp;An&nbsp;instance&nbsp;of&nbsp;Forest&nbsp;and&nbsp;an&nbsp;instance&nbsp;of&nbsp;Tree&nbsp;are&nbsp;both&nbsp;serialized.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=808</link>
			<title><![CDATA[ExtJS框架的简单应用]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Mon,29 Mar 2010 22:59:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=808</guid>	
		<description><![CDATA[1.下载最新的ExtJS开发包：<a target="_blank" href="http://www.extjs.com/">http://www.extjs.com/</a><br/>2.将开发包解压到WebRoot下任意目录中；<br/>3.初始化界面：使用Ext.onReady初始化界面；<br/>4.创建框架：new&nbsp;Ext.Viewport();<br/>5.创建面板：new&nbsp;Ext.Panel();<br/>6.创建带页签的面板：new&nbsp;Ext.TabPanel();]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=807</link>
			<title><![CDATA[使用JS编写直方图控件【DIV模拟非完整版】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Fri,26 Feb 2010 22:25:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=807</guid>	
		<description><![CDATA[<div align="center"><img src="http://mgc.name/attachments/month_1002/o2010226221143.gif" border="0" alt=""/></div><br/><br/><span style="color:Red">此控件使用DIV模拟直方图，大部分功能已经实现，不再继续开发，以后有时间将直接使用JS的画图接口重新开发，敬请期待！</span><br/><br/><span style="font-size:16pt"><strong>Histogram</strong></span><br/><br/>直方图控件<br/><br/><span style="font-size:12pt"><strong>创建源</strong></span><br/><br/>The&nbsp;Histogram&nbsp;constructor:<br/><br/>new&nbsp;Histogram(id,&nbsp;parentId,&nbsp;width,&nbsp;height,&nbsp;xName,&nbsp;xData,&nbsp;yName,&nbsp;yData,&nbsp;isNag)<br/><br/><span style="font-size:12pt"><strong>参数</strong></span><br/><br/>id&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Histogram节点id，同一页面内id不能重复。<br/>parentId&#160;&#160;&#160;&#160;父节点id，放置直方图控件的节点id。<br/>width&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;宽度。<br/>height&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;高度。<br/>xName&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;X轴名称，显示在X轴右侧。<br/>xData&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;X轴数据，一维数组。<br/>yName&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Y轴名称，显示在Y轴顶部。<br/>yData&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Y轴数据，一维数组。<br/>isNag&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;是否显示Y负半轴。<br/><br/><span style="font-size:12pt"><strong>描述</strong></span><br/><br/>根据两个一维数组数据绘制直方图，可以自定义直方图大小。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=806</link>
			<title><![CDATA[使用JS编写数据表格控件【自定义修改删除方法】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sat,02 Jan 2010 20:20:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=806</guid>	
		<description><![CDATA[<div align="center"><img src="http://mgc.name/attachments/month_1001/2201013125331.jpg" border="0" alt=""/></div><br/><br/><span style="font-size:16pt"><strong>DataTable</strong></span><br/><br/>数据表格控件<br/><br/><span style="font-size:12pt"><strong>创建源</strong></span><br/><br/>The&nbsp;DataTable&nbsp;constructor:<br/><br/>new&nbsp;DataTable(id,&nbsp;title,&nbsp;ths,&nbsp;data,&nbsp;width,&nbsp;indexOfKey,&nbsp;isShowKey,&nbsp;modifyFunc,&nbsp;deleteFunc)<br/><br/><span style="font-size:12pt"><strong>参数</strong></span><br/><br/>id&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;DataTable节点id，同一页面内id不能重复。<br/>title&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;DataTable标题，显示在数据表格控件上方。<br/>ths&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;表头数组。<br/>data&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;存放数据的二维数组。<br/>width&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;表格宽度，。<br/>indexOfKey&#160;&#160;&#160;&#160;主键在数组中的列数。<br/>isShowKey&#160;&#160;&#160;&#160;是否显示主键。<br/>modifyFunc&#160;&#160;&#160;&#160;自定义修改方法名。<br/>deleteFunc&#160;&#160;&#160;&#160;自定义删除方法名。<br/><br/><span style="font-size:12pt"><strong>描述</strong></span><br/><br/>根据二维数据中的数据创建表格，支持用户自定义修改、删除方法。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=805</link>
			<title><![CDATA[C++中处理string对象的字符]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[C++]]></category>
			<pubDate>Wed,30 Dec 2009 16:43:40 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=805</guid>	
		<description><![CDATA[处理string对象的字符常用方法如下：<br/>&nbsp;&nbsp;&nbsp;&nbsp;isalnum()：判断字符是否是字母或数字；<br/>&nbsp;&nbsp;&nbsp;&nbsp;isalpha()：判断字符是否是字母；<br/>&nbsp;&nbsp;&nbsp;&nbsp;iscntrl()：判断字符是否是控制字符；<br/>&nbsp;&nbsp;&nbsp;&nbsp;isdigit()：判断字符是否是数字；<br/>&nbsp;&nbsp;&nbsp;&nbsp;isgraph()：判断字符是否是可打印的非空格字符；<br/>&nbsp;&nbsp;&nbsp;&nbsp;ispunct()：判断字符是否是标点符号；<br/>&nbsp;&nbsp;&nbsp;&nbsp;isspace()：判断字符是否是空白字符；<br/>&nbsp;&nbsp;&nbsp;&nbsp;isupper()：判断字符是否是大写字母；<br/>&nbsp;&nbsp;&nbsp;&nbsp;isxdigit()：判断字符是否是十六进制数；<br/>&nbsp;&nbsp;&nbsp;&nbsp;toupper()：转换为大写字母；<br/>&nbsp;&nbsp;&nbsp;&nbsp;tolower()：转换为小写字母。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=804</link>
			<title><![CDATA[C++中访问string对象的字符]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[C++]]></category>
			<pubDate>Wed,30 Dec 2009 16:11:14 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=804</guid>	
		<description><![CDATA[1.使用下标操作符（[]）访问string对象的字符；<br/>2.索引的类型为string::size_type；<br/>3.string对象的下标从0开始，最后一个字符的下标为size()&nbsp;-&nbsp;1，下标超出范围会引起溢出错误；<br/>4.任何结果为整型的表达式都可以做为下标操作符的索引；<br/>5.索引变量最好使用string::size_type类型。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=803</link>
			<title><![CDATA[C++中字符串的连接]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[C++]]></category>
			<pubDate>Wed,30 Dec 2009 14:56:04 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=803</guid>	
		<description><![CDATA[1.两个string对象连接：<br/>&nbsp;&nbsp;&nbsp;&nbsp;使用“+”或“+=”连接两个string对象；<br/>2.string对象与字符串字面值连接：<br/>&nbsp;&nbsp;&nbsp;&nbsp;“+”操作符的左右操作数必须至少有一个是string类型的对象。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=802</link>
			<title><![CDATA[Struts2中的iterator标签]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Tue,29 Dec 2009 23:27:31 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=802</guid>	
		<description><![CDATA[iterator标签用于遍历集合：<br/>1.遍历集合：使用&lt;s:property/&gt;输出集合中的元素；<br/>2.定义变量：使用var属性定义变量，遍历时变量表示当前元素；<br/>3.当前状态：使用status属性定义状态变量，遍历时通过状态变量的属性取得当前元素的状态；<br/>4.支持iterator遍历的集合有以下几种：collections,map,enumeration,iterator,array。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=801</link>
			<title><![CDATA[Struts2中的if标签]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Tue,29 Dec 2009 22:33:12 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=801</guid>	
		<description><![CDATA[if标签用来处理条件判断。<br/>1.格式如下：<br/>&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;s:if&nbsp;test=&quot;&quot;&gt;&lt;/s:if&gt;<br/>&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;s:elseif&nbsp;test=&quot;&quot;&gt;&lt;/s:elseif&gt;<br/>&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;s:else&gt;&lt;/s:else&gt;<br/>2.test属性为表示条件的OGNL表达式，如果表达式的值为true，则执行标签内的代码。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=800</link>
			<title><![CDATA[Struts2中的include标签]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Mon,28 Dec 2009 23:57:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=800</guid>	
		<description><![CDATA[include标签用于包含指定的页面。<br/>1.include标签的属性：<br/>&nbsp;&nbsp;&nbsp;&nbsp;value：被包含页面的地址，字符串类型，如果是OGNL表达式，则要使用以下形式：%{OGNL表达式}；<br/>2.包含中文的文件时，必须统一页面的编码，并在struts.xml中配置以下代码：<br/>&lt;constant&nbsp;name=&quot;struts.i18n.encoding&quot;&nbsp;value=&quot;UTF-8&quot;&gt;&lt;/constant&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=799</link>
			<title><![CDATA[Struts2中的bean标签]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Mon,28 Dec 2009 21:56:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=799</guid>	
		<description><![CDATA[bean标签用于设置JavaBean的值<br/>1.bean标签的属性：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.name：JavaBean的类名，不推荐使用id；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.var：JavaBean对象名，可以通过“#”访问。<br/>2.在bean标签中，使用&lt;s:param&nbsp;name=&quot;属性名&quot;&nbsp;value=&quot;值&quot;&nbsp;/&gt;标签设置JavaBean对象的属性值，其中value的值为OGNL表达式，字符串应使用单引号；<br/>3.如果不设置“var”属性，JavaBean对象只在bean标签中有效，在bean标签外部无法访问。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=798</link>
			<title><![CDATA[Struts2中的set标签]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Sun,27 Dec 2009 23:10:36 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=798</guid>	
		<description><![CDATA[set标签用于赋予变量一个特定范围的值。<br/>1.set的属性：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.var：设置变量的名称，不推荐使用id和name设置变量的名称；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.value：设置变量的值；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.scope：作用范围，可以设置page,request,session,application,action；<br/>2.不设置scope时，变量默认保存在request和ActionContext中。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=797</link>
			<title><![CDATA[Struts2中的property标签]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Sun,27 Dec 2009 21:51:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=797</guid>	
		<description><![CDATA[property标签用于取得value的属性值。<br/>1.显示Action中的属性值：&lt;s:property&nbsp;value=&quot;属性名&quot;&nbsp;/&gt;<br/>2.显示字符串，使用单引号：&lt;s:property&nbsp;value=&quot;&#39;字符串&#39;&quot;&nbsp;/&gt;<br/>3.显示默认值，Action中找不到指定的属性时，显示default属性的值：&lt;s:property&nbsp;value=&quot;属性名&quot;&nbsp;default=&quot;默认值&quot;&nbsp;/&gt;<br/>4.解析HTML字符串，escape默认值为true，直接输出字符串，escape设为false时，解析HTML字符串：&lt;s:property&nbsp;value=&quot;&#39;&lt;font&nbsp;color=\&quot;red\&quot;&gt;Red&lt;/font&gt;&#39;&quot;&nbsp;escape=&quot;false&quot;&nbsp;/&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=796</link>
			<title><![CDATA[Struts2中使用OGNL表达式访问Action]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Sat,26 Dec 2009 23:54:12 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=796</guid>	
		<description><![CDATA[1.访问值栈中从指定位置开始所有的Action：[索引]，如：[0]&nbsp;；<br/>2.在值栈中从指定位置开始所有的Action查找指定的属性：[索引].属性名，如：[0].users。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=795</link>
			<title><![CDATA[Struts2中使用OGNL表达式投影（过滤）集合]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Sat,26 Dec 2009 23:49:22 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=795</guid>	
		<description><![CDATA[1.集合的投影（过滤）有以下三种方式：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.“?#”：投影（过滤）所有符合条件的集合，如：users.{?#this.age&nbsp;&gt;&nbsp;19}；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.“^#”：投影（过滤）第一个符合条件的元素，如：users.{^#this.age&nbsp;&gt;&nbsp;19}；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.“$#”：投影（过滤）最后一个符合条件的元素，如：users.{$#this.age&nbsp;&gt;&nbsp;19}&nbsp;。<br/>2.“this”表示集合中的元素；<br/>3.投影（过滤）操作返回的是一个集合，可以使用索引取得集合中指定的元素，如：users.{?#this.age&nbsp;&gt;&nbsp;19}[0]。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=794</link>
			<title><![CDATA[Struts2中使用OGNL表达式访问集合]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Sat,26 Dec 2009 23:42:00 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=794</guid>	
		<description><![CDATA[1.访问List：集合对象名；<br/>2.访问List中指定的元素：集合对象名[索引]；<br/>3.访问List中元素属性的集合：集合对象名.{元素属性}&nbsp;；<br/>4.访问List中指定元素的属性：集合对象名[索引].元素属性|&nbsp;集合对象名.{元素属性}[索引]&nbsp;；<br/>5.访问Set：集合对象名；<br/>6.访问Map:&nbsp;集合对象名；<br/>7.访问Map中指定的元素（key与变量命名规则一致）:&nbsp;集合对象名.key值&nbsp;、&nbsp;集合对象名[&#39;key值&#39;]；<br/>8.访问Map中所有的key：集合对象名.keys；<br/>9.访问Map中所有的key：集合对象名.values。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=793</link>
			<title><![CDATA[Struts2中使用OGNL表达式访问类的构造方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Sat,26 Dec 2009 23:34:57 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=793</guid>	
		<description><![CDATA[1.访问类的构造方法：new&nbsp;包.类名(参数)，如：<br/>&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;cn.edu.ahau.mgc.struts2.model.User(&#39;Magc&#39;,&nbsp;21)；<br/>2.返回该类的一个对象。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=792</link>
			<title><![CDATA[Struts2中使用OGNL表达式访问静态属性和方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Sat,26 Dec 2009 23:20:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=792</guid>	
		<description><![CDATA[1.访问静态方法：@包.类名@方法名()，如：<br/>&nbsp;&nbsp;&nbsp;&nbsp;@cn.edu.ahau.mgc.struts2.model.Magci@method()；<br/>2.访问静态属性：@包.类名@属性名，如：<br/>&nbsp;&nbsp;&nbsp;&nbsp;@cn.edu.ahau.mgc.struts2.model.Magci@NAME<br/>3.第一个@后面的类可以省略，默认为Math类，如：<br/>&nbsp;&nbsp;&nbsp;&nbsp;@@floor(1.32342)；<br/>4.访问静态方法必须在struts.xml文件中添加如下配置：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;constant&nbsp;name=&quot;struts.ognl.allowStaticMethodAccess&quot;&nbsp;value=&quot;true&quot;&nbsp;/&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=791</link>
			<title><![CDATA[Struts2中使用OGNL表达式访问Action中的属性和方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Sat,26 Dec 2009 23:19:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=791</guid>	
		<description><![CDATA[1.访问值栈中Action的普通属性：属性名；<br/>2.访问值栈中Action的对象的普通属性：对象名.属性名、对象名[&#39;属性名&#39;]、对象名[\&quot;属性名\&quot;]；<br/>3.访问值栈中Action的普通方法：方法名()；<br/>4.访问值栈中Action的属性的普通方法：属性名.方法名()；<br/>5.访问值栈中Action的对象的普通方法：对象名.方法名()。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=790</link>
			<title><![CDATA[Struts2中通过result传递参数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Fri,25 Dec 2009 23:24:27 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=790</guid>	
		<description><![CDATA[1.使用redirect类型的result通过URL传递参数，也可以使用${属性名}动态设置参数；<br/>2.在JSP中使用&lt;s:property&nbsp;value=&quot;#parameters.属性名&quot;/&gt;显示接收的参数；<br/>3.通过redirect类型的result传递的参数，不能使用&lt;s:property&nbsp;value=&quot;属性名&quot;/&gt;显示接收的参数；<br/>&nbsp;&nbsp;&nbsp;&nbsp;因为redirect不通过Action，ValueStack为空，只能从#parameters中取得参数；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=789</link>
			<title><![CDATA[Struts2中的动态result]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Fri,25 Dec 2009 22:16:00 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=789</guid>	
		<description><![CDATA[使用动态result可以在Action中动态的指定跳转的页面；<br/>1.在Action定义属性，创建get和set方法；<br/>2.将要跳转的页面路径赋值给定义的属性；<br/>3.在struts.xml中的result标签中使用${属性名}取得跳转的页面路径。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=788</link>
			<title><![CDATA[Struts2中的全局result]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Fri,25 Dec 2009 21:02:19 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=788</guid>	
		<description><![CDATA[1.当多个Action使用同一个result时，可以使用&lt;global-results&gt;标签配置全局result；<br/>2.当Action返回的字符串没有相应的result，Struts2会在package中查找全局result；<br/>3.如果需要使用其他package或者通过&lt;include&gt;标签引用的其他xml文件中的全局result，则需要通过package中的extends属性指定继承的package。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=787</link>
			<title><![CDATA[Struts2中Action的返回结果类型]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Thu,24 Dec 2009 23:38:23 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=787</guid>	
		<description><![CDATA[Action的返回结果类型有以下几种：<br/>1.常用类型：<br/>&nbsp;&nbsp;&nbsp;&nbsp;dispatcher：服务端跳转到页面，通常用来处理JSP，默认类型；<br/>&nbsp;&nbsp;&nbsp;&nbsp;redirect：重定向到页面；<br/>&nbsp;&nbsp;&nbsp;&nbsp;chain：服务端跳转到Action；<br/>&nbsp;&nbsp;&nbsp;&nbsp;redirectAction：重定向到Action；<br/>2.其他类型：<br/>&nbsp;&nbsp;&nbsp;&nbsp;freemarker，httpheader，stream，velocity，xslt，plaintext，tiles。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=786</link>
			<title><![CDATA[C++中使用关系操作符比较两个string]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[C++]]></category>
			<pubDate>Thu,24 Dec 2009 15:23:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=786</guid>	
		<description><![CDATA[1.比较两个字符串实际上是比较每个字符串中的字符；<br/>2.用于比较字符串的关系操作符如下：&nbsp;==，!=，&gt;，&lt;，&gt;=，&lt;=；<br/>3.两个字符串相等是指它们长度相等，且含有相同的字符；<br/>4.字符串比较操作区分大小写，任何一个小写字母都大于任意一个大写字母；<br/>5.短字符串与长字符串前面部分向匹配时，长字符串大于短字符串；<br/>6.两个不同的字符串，比较第一个不匹配的字符。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=785</link>
			<title><![CDATA[C++中string的size和empty操作]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[C++]]></category>
			<pubDate>Wed,23 Dec 2009 17:47:23 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=785</guid>	
		<description><![CDATA[1.size()：取得字符串长度，返回字符串中字符的个数（string::size_type类型），包括换行符；<br/>2.empty()：判断字符串是否为空；<br/>3.string::size_type类型：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.与unsigned类型含义相同，可以保证足够大，能存储任意长度的字符串；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.存储size()方法操作结果的变量必须是string::size_type类型，不能把size()方法的返回值赋给int型变量。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=784</link>
			<title><![CDATA[Struts2中配置默认Action]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Mon,21 Dec 2009 23:39:08 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=784</guid>	
		<description><![CDATA[1.当访问的Action不存在时，页面会显示错误信息，可以通过配置默认Action处理用户异常的操作；<br/>2.配置方法：<br/>&nbsp;&nbsp;&nbsp;&nbsp;在struts.xml文件中的&lt;package&gt;下添加如下内容：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;default-action-ref&nbsp;name=&quot;index&quot;&gt;&lt;/default-action-ref&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;其中index为默认Action的name属性值；<br/>3.配置默认Action后，相应的namespace下不存在要访问的Action时，自动跳转到默认Action处理。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=783</link>
			<title><![CDATA[Struts2中加载多个配置文件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Mon,21 Dec 2009 23:19:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=783</guid>	
		<description><![CDATA[1.如果配置文件的内容太多，或者是多人同时开发，可以将配置文件拆分为多个文件，这样可以减少工作量，便于维护；<br/>2.通过&lt;include&nbsp;file=&quot;*.xml&quot;&gt;加载多个配置文件。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=782</link>
			<title><![CDATA[Struts2中访问Web元素]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Sun,20 Dec 2009 19:51:51 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=782</guid>	
		<description><![CDATA[1.Action中向Web元素中添加添加数据：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.实现RequestAware,&nbsp;SessionAware,&nbsp;ApplicationAware接口，通过set方法设置Map类型的Web元素；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.使用put方法向对应的Map对象中添加数据，Struts2将其转换为Web元素；<br/>2.JSP中取得Web元素中的数据：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.通过&lt;s:property&nbsp;value=&quot;&quot;&nbsp;/&gt;标签取得相应Web元素中的数据，Web元素名前要加“#”，如#request.key；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.也可以直接通过Web元素的getAttribute()方法取得相应的数据。<br/>3.一般只通过这种方法设置session，Action的属性不需要特殊处理就能直接在JSP中通过request取得。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=781</link>
			<title><![CDATA[Struts2中使用fieldError进行数据校验]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Sun,20 Dec 2009 17:37:56 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=781</guid>	
		<description><![CDATA[1.添加错误信息：<br/>&nbsp;&nbsp;&nbsp;&nbsp;在继承ActionSupport的Action中使用addFieldError(String&nbsp;key,&nbsp;String&nbsp;value)方法添加错误信息；<br/>2.显示错误信息：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.在JSP中引用struts标签：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%@&nbsp;taglib&nbsp;uri=&quot;/struts-tags&quot;&nbsp;prefix=&quot;s&quot;&nbsp;%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.使用&lt;s:fielderror&nbsp;fieldName=&quot;key&quot;&nbsp;/&gt;标签显示key对应的错误信息，错误信息对应的样式为class=&quot;errorMessage&quot;；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.也可以使用&lt;s:property&nbsp;value=&quot;errors.key[0]&quot;&nbsp;/&gt;标签直接取得错误字符串，再进一步处理样式。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=780</link>
			<title><![CDATA[Struts2中解决中文乱码问题]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Fri,18 Dec 2009 22:52:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=780</guid>	
		<description><![CDATA[1.JSP中设置页面编码为“GB18030”：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;%@&nbsp;page&nbsp;language=&quot;java&quot;&nbsp;pageEncoding=&quot;GB18030&quot;%&gt;<br/>2.struts.xml添加如下配置：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;constant&nbsp;name=&quot;struts.i18n.encoding&quot;&nbsp;value=&quot;GBK&quot;&gt;&lt;/constant&gt;<br/>3.web.xml中根据Struts2版本不同，配置如下过滤器：<br/>&nbsp;&nbsp;&nbsp;&nbsp;2.1.7之后的版本：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;filter-class&gt;org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter&lt;/filter-class&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;2.17之前的版本：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;filter-class&gt;org.apache.struts2.dispatcher.FilterDispatcher&lt;/filter-class&gt;<br/>4.使用post方式提交参数。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=779</link>
			<title><![CDATA[Struts2中Action接收参数的方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Thu,17 Dec 2009 22:42:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=779</guid>	
		<description><![CDATA[Struts2中Action接收参数的方法主要有以下三种：<br/>1.使用Action的属性接收参数：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.定义：在Action类中定义属性，创建get和set方法；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.接收：通过属性接收参数，如：userName；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.发送：使用属性名传递参数，如：user1!add?userName=Magci；<br/>2.使用DomainModel接收参数：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.定义：定义Model类，在Action中定义Model类的对象（不需要new），创建该对象的get和set方法；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.接收：通过对象的属性接收参数，如：user.getUserName()；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.发送：使用对象的属性传递参数，如：user2!add?user.userName=MGC；<br/>3.使用ModelDriven接收参数：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.定义：Action实现ModelDriven泛型接口，定义Model类的对象（必须new），通过getModel方法返回该对象；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.接收：通过对象的属性接收参数，如：user.getUserName()；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.发送：直接使用属性名传递参数，如：user2!add?userName=MGC；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=778</link>
			<title><![CDATA[Struts2中使用通配符简化配置]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Wed,16 Dec 2009 23:29:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=778</guid>	
		<description><![CDATA[1.使用通配符可以简化配置，通过遵守相关约定的URL，可以自动匹配对应的action和返回页面；<br/>2.通配符：“*”，通过{n}取得第n个“*”对应的字符，如：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;action&nbsp;name=&quot;*_*&quot;&nbsp;class=&quot;cn.edu.ahau.mgc.struts2.action.{1}Action&quot;&nbsp;method=&quot;{2}&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;输入“User_add”时，对应的class为UserAction，method为add；<br/>3.当输入的数据可以同时匹配多个action时，优先匹配不含通配符的action，如果都含有通配符，则匹配第一个action。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=777</link>
			<title><![CDATA[Struts2中的动态方法调用（DMI）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Tue,15 Dec 2009 23:50:28 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=777</guid>	
		<description><![CDATA[1.Action执行的时候不一定要执行execute方法；<br/>2.动态方法调用（DMI）的两种方式：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.通过配置文件struts.xml中action的method属性指定调用方法，如：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action&nbsp;&nbsp;method=&quot;调用方法名&quot;&gt;；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.在URL中动态指定调用方法，使用感叹号“!”将action名和调用方法名分割开，如：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://localhost:8080/Struts2_DMI/user!add<br/>3.第一种方法需要配置很多action，一般使用第二种方法。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=776</link>
			<title><![CDATA[使用Struts2框架的HelloWorld程序]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Thu,10 Dec 2009 23:10:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=776</guid>	
		<description><![CDATA[1.下载Struts2开发包：<a target="_blank" href="http://struts.apache.org/2.x/index.html">http://struts.apache.org/2.x/index.html</a>；<br/>2.新建站点，添加Struts2支持：将开发包中apps\struts2-blank-2.1.8.1.war用WinRAR解压<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.将WEB-INF\classes\struts.xml拷贝到网站项目的src目录下；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.将WEB-INF\lib中的jar文件拷贝到网站项目的WEB-INF\lib目录下；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.将WEB-INF\web.xml中&lt;web-app&gt;中的&lt;filter&gt;和&lt;filter-mapping&gt;拷贝到网站项目的&lt;web-app&gt;下；<br/>3.配置struts.xml，格式如下：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;package&nbsp;name=&quot;default&quot;&nbsp;namespace=&quot;/&quot;&nbsp;extends=&quot;struts-default&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action&nbsp;name=&quot;hello&quot;&nbsp;class=&quot;cn.edu.ahau.mgc.struts2.action.HelloAction&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;result&nbsp;name=&quot;success&quot;&gt;/helloWorld.jsp&lt;/result&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/action&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/package&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.&lt;package&gt;中namespace和&lt;action&gt;中name的组合为action的访问路径，namespace默认为&quot;&quot;，本例的访问路径为“/hello.action”，“.action”可以省略，简写为“/hello”；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.&lt;action&gt;中的class为action的类；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.&lt;result&gt;中一个name对应一个页面，根据action返回的字符串匹配跳转的页面，name默认为“success”；<br/>4.创建action类：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.创建action类的三种方法：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;·普通Java类，含有public&nbsp;String&nbsp;execute()方法；<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;·实现Action接口的类；<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;·继承ActionSupport的类，最常用的方法，好处是ActionSupport类提供了很多常用的方法；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.执行action类，通过execute方法返回的字符串在跳转到struts.xml中相匹配的页面；<br/>5.创建jsp页面。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=775</link>
			<title><![CDATA[C++中读取string对象]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[C++]]></category>
			<pubDate>Sun,06 Dec 2009 18:03:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=775</guid>	
		<description><![CDATA[1.标准输入读取：cin&nbsp;&gt;&gt;&nbsp;string<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.忽略开头所有的空白字符（空格、换行、制表符等）；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.读取字符直至再次遇到空白字符，读取终止；<br/>2.读取整行文本：getline(istream,&nbsp;string)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.不忽略开头的空白字符；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.读取字符直至遇到换行符，如果第一个字符是换行符，则返回空string；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.返回时丢弃换行符，换行符不存储在string中。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=774</link>
			<title><![CDATA[C++中类的定义]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[C++]]></category>
			<pubDate>Sun,06 Dec 2009 16:45:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=774</guid>	
		<description><![CDATA[1.类定义以关键字class开始，，其后是类的名字标识符，类体位于花括号中，花括号后必须跟一个分号；<br/>2.类的成员：类体中定义的该类型的数据和操作，数据称为数据成员，操作称为成员函数；<br/>3.访问标号：控制类的成员在类的外部是否可以访问，类可以包含0个到多个public或private访问标号；<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.public下定义的成员在程序的任何部分都能访问；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.private下定义的成员只能在当前类中访问；<br/>4.struct：使用struct关键字定义的类默认情况下类成员为public，class关键字定义的类默认为private。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=773</link>
			<title><![CDATA[C++中变量常量的声明和定义]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[C++]]></category>
			<pubDate>Sun,06 Dec 2009 15:05:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=773</guid>	
		<description><![CDATA[1.声明：向程序表明变量的类型和名字；<br/>2.定义：为变量分配存储空间；<br/>3.定义也是声明，定义变量时声明了它的类型和名字；可以通过extern关键字只声明变量名而不定义它；<br/>4.声明只是说明变量定义在程序的其他地方，程序中变量可以声明多次，只能定义一次；<br/>5.含有初始化式的声明可视为定义，定义后可以再声明，但是不能含有初始化式；<br/>6.如果一个变量需要在多个文件中使用，一个文件中含有变量的定义，使用该变量的其他文件必须包含该变量的声明；<br/>7.变量的定义默认为extern，要想使常量（const变量）能够在其他文件中访问，必须在定义时显示指定它为extern。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=772</link>
			<title><![CDATA[C++中变量的初始化]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[C++]]></category>
			<pubDate>Sat,05 Dec 2009 19:58:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=772</guid>	
		<description><![CDATA[1.两种初始化变量的形式：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.复制初始化：使用等号，如：int&nbsp;a&nbsp;=&nbsp;1;<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.直接初始化：使用括号，如：int&nbsp;a(1);<br/>2.可以使用前面已定义变量的值初始化后面的变量；<br/>3.可以使用任意复杂的表达式初始化变量，包括函数的返回值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=771</link>
			<title><![CDATA[C++中的标准输入输出]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[C++]]></category>
			<pubDate>Fri,04 Dec 2009 21:53:19 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=771</guid>	
		<description><![CDATA[标准输入输出对象：<br/>1.cin：标准输入；<br/>2.cout：标准输出；<br/>3.cerr：输出警告和错误信息；<br/>4.clog：产出程序执行的基本信息。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=770</link>
			<title><![CDATA[第一个C++程序——HelloWorld]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[C++]]></category>
			<pubDate>Thu,03 Dec 2009 22:48:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=770</guid>	
		<description><![CDATA[1.预处理：#include&nbsp;&lt;头文件&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;告诉编译器要使用的库，#include和头文件名必须在同一行，习惯上预处理指令在文件开头部分出现（所有函数之前）；<br/>2.main函数：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.所有C++程序都必须包含一个main函数（唯一被系统显示调用的函数）；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.返回类型必须是int型，返回值0表示函数成功执行完毕，其他非零的返回值表示操作系统定义的错误信息；<br/>3.标准输出对象：cout<br/>&nbsp;&nbsp;&nbsp;&nbsp;cout是标准库中ostream类型的对象，默认输出到执行程序的窗口；<br/>4.输出操作符：&lt;&lt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.左操作数必须是ostream对象，右操作数是要输出的值；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.作用：将输出的值写到ostream对象中；<br/>5.换行：endl<br/>&nbsp;&nbsp;&nbsp;&nbsp;操纵符endl具有输出换行的效果，并刷新与设备相关的缓冲区，用户可以立即看到输出的内容；<br/>6.命名空间和作用域操作符：std::<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.命名空间：命名空间可以避免定义相同名字导致的冲突，cout和endl都是定义在命名空间std中的；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.作用域操作符：连接命名空间和命名空间中的名字；<br/>7.暂停：system(&quot;pause&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;暂停程序的执行，这里的作用是方便查看输出结果。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=769</link>
			<title><![CDATA[使用JS编写数字控件【自定义数字格式，自动修复数字格式】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Thu,26 Nov 2009 22:58:46 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=769</guid>	
		<description><![CDATA[<span style="font-size:16pt"><strong>NumberInput</strong></span><br/><br/>数字控件<br/><br/><span style="font-size:12pt"><strong>创建源</strong></span><br/><br/>The&nbsp;NumberInput&nbsp;constructor:<br/><br/>new&nbsp;NumberInput(id,&nbsp;text,&nbsp;digBeforeDec,&nbsp;digAfterDec,&nbsp;isOnlyPos)<br/><br/><span style="font-size:12pt"><strong>参数</strong></span><br/><br/>id&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;NumberInput节点id，同一页面内id不能重复。<br/>text&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;NumberInput文本说明信息，显示在数字控件左侧。<br/>digBeforeDec&#160;&#160;&#160;&#160;小数点前最大位数。<br/>digAfterDec&#160;&#160;&#160;&#160;小数点后最大位数。<br/>isOnlyPos&#160;&#160;&#160;&#160;是否只能输入正数。<br/><br/><span style="font-size:12pt"><strong>描述</strong></span><br/><br/>只能输入数字、小数点和负号，根据允许最大字符个数自动调整控件大小，输入过程中系统自动检查数字格式及有效性，并自动修复错误数据。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=768</link>
			<title><![CDATA[使用JS编写日期控件【无日历，自动修复日期格式，自定义格式输出】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Fri,20 Nov 2009 23:13:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=768</guid>	
		<description><![CDATA[<span style="font-size:16pt"><strong>DateInput</strong></span><br/><br/>日期控件<br/><br/><span style="font-size:12pt"><strong>创建源</strong></span><br/><br/>The&nbsp;DateInput&nbsp;constructor:<br/><br/>new&nbsp;DateInput(id,&nbsp;text)<br/><br/><span style="font-size:12pt"><strong>参数</strong></span><br/><br/>id&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;DateInput节点id，同一页面内id不能重复。<br/>text&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;DateInput文本说明信息，显示在日期控件左侧。<br/><br/><span style="font-size:12pt"><strong>描述</strong></span><br/><br/>由3个文本框组成，分别对应年月日，没有使用日历，手动输入日期值，只能输入数字，输入过程中系统自动检查日期格式及有效性，并自动修复错误数据。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=767</link>
			<title><![CDATA[JS中使用函数名作为参数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Fri,30 Oct 2009 20:08:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=767</guid>	
		<description><![CDATA[JS中使用函数名作为参数。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=766</link>
			<title><![CDATA[PHP中使用extract函数将数组中的元素导入到变量中]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Tue,15 Sep 2009 21:03:03 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=766</guid>	
		<description><![CDATA[1.适用范围：非数字索引的数组，数组中有键值对；<br/>2.函数创建的变量名是数组中的关键字，变量的值是数组中对应的值；<br/>3.两个可选参数：extract_type和prefix；<br/>&nbsp;&nbsp;&nbsp;&nbsp;其中extract_type指定处理变量名冲突的方法，默认是EXTR_OVERWRITE，表示覆盖已有的变量，<br/>&nbsp;&nbsp;&nbsp;&nbsp;当extract_type的值为EXTR_PREFIX_ALL时，给所有创建的变量前加上前缀，前缀为prefix参数提供；<br/>4.数组中元素的关键字必须是有效的变量名，否则将被跳过。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=764</link>
			<title><![CDATA[PHP中统计数组元素的个数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Tue,15 Sep 2009 20:23:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=764</guid>	
		<description><![CDATA[1.count()和sizeof()：统计数组中元素的个数；<br/>2.array_count_values()：统计数组中的元素出现的次数，返回一个数组，其中关键字为原数组中的元素，值为对应元素出现的次数。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=763</link>
			<title><![CDATA[PHP中使用array_walk函数处理数组中的每一个元素]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Tue,15 Sep 2009 19:49:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=763</guid>	
		<description><![CDATA[1.array_walk函数的格式如下：<br/>&nbsp;&nbsp;&nbsp;&nbsp;bool&nbsp;array_walk(array&nbsp;arr,&nbsp;string&nbsp;func&nbsp;[,&nbsp;mixed&nbsp;userdata]);<br/>&nbsp;&nbsp;&nbsp;&nbsp;其中arr为待处理的数组，func为自定义的函数名，userdata可以作为参数传递给自定义的函数；<br/>2.自定义函数格式如下：<br/>&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;myFunction(value,&nbsp;key,&nbsp;userdata);<br/>&nbsp;&nbsp;&nbsp;&nbsp;其中key和userdata可以省略，如果需要userdata参数，则必须接收key参数，不可省略；<br/>3.地址符&：参数前加&表示按引用方式传递，允许函数修改数组的内容。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=762</link>
			<title><![CDATA[PHP中数组的指针移动]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Sun,13 Sep 2009 17:27:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=762</guid>	
		<description><![CDATA[1.each()：返回当前元素，再指向下一个元素；<br/>2.next()：先指向下一个元素，再返回新的当前值；<br/>3.prev()：先指向上一个元素，再返回新的当前值；<br/>4.current()：初始化，指向数组的第一个元素；<br/>5.reset()：指向数组的第一个元素；<br/>6.end()：指向数组的最后一个元素；<br/>7.pos()：返回当前元素。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=761</link>
			<title><![CDATA[PHP中使用explode函数将字符串分割为数组]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Sun,13 Sep 2009 15:34:16 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=761</guid>	
		<description><![CDATA[1.explode函数的格式如下：<br/>array&nbsp;explode(string&nbsp;separator,&nbsp;string&nbsp;string,[int&nbsp;limit]);<br/>2.参数中的separator为分隔符，string为待分割的字符串，limit为返回的数组中元素的最大个数。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=760</link>
			<title><![CDATA[PHP中将文件载入数组]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Sun,13 Sep 2009 14:58:04 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=760</guid>	
		<description><![CDATA[使用file()函数将文件载入数组，文件中的每一行作为数组的一个元素。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=759</link>
			<title><![CDATA[PHP中数组的反向排序]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Thu,10 Sep 2009 23:38:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=759</guid>	
		<description><![CDATA[反向排序函数：array_reverse();]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=758</link>
			<title><![CDATA[PHP中数组的随机排序]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Thu,10 Sep 2009 23:36:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=758</guid>	
		<description><![CDATA[随机排序函数：shuffle()；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=757</link>
			<title><![CDATA[PHP中多维数组的排序]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Thu,10 Sep 2009 23:13:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=757</guid>	
		<description><![CDATA[1.用户定义排序：usort($array,&nbsp;functionName);其中functionName为用户定义的函数名，用户定义的函数指定排序规则，比较数组中两个元素的大小，大于返回正数，小于返回负数，等于返回0。<br/>2.反向用户排序：用户定义函数时，比较数组中两个元素的大小，大于返回负数，小于返回正数，等于返回0。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=756</link>
			<title><![CDATA[PHP中一维数组的排序]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Wed,12 Aug 2009 10:40:09 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=756</guid>	
		<description><![CDATA[1.sort()函数：升序排序，可以对字母或数字排序；<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.&nbsp;字母区分大小写，大写字母在小写字母前面；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.第二个可选参数中，SORT_REGULAR为默认值，自动选择排序方式，SORT_NUMERIC为数字排序，SORT_STRING为字母排序。<br/>2.asort()函数：根据元素的值进行排序；<br/>3.ksort()函数：根据元素的关键字进行排序；<br/>4.rsort()，arsort()，krsort()函数：降序排序。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=755</link>
			<title><![CDATA[PHP中的多维数组]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Tue,11 Aug 2009 17:25:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=755</guid>	
		<description><![CDATA[1.数组中的每一个元素都可以是另一个数组；<br/>2.通过$arrays[i&nbsp;][j]来访问二维数组中的元素，依次类推访问多维数组中的元素。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=754</link>
			<title><![CDATA[PHP中的非数字索引数组]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Tue,11 Aug 2009 15:48:54 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=754</guid>	
		<description><![CDATA[1.初始化：$arr&nbsp;=&nbsp;array(key1=&gt;value1,&nbsp;key2=&gt;value2,...,keyN=&gt;valueN);<br/>2.访问数组元素：$arr[key]&nbsp;=&nbsp;value;<br/>3.循环访问数组元素：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.foreach循环：foreach($arrays&nbsp;as&nbsp;$key&nbsp;=&gt;&nbsp;$value);$key为元素的关键字，$value为元素的值；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.each()&nbsp;方法：while($item&nbsp;=&nbsp;each($arrays));each()方法依次返回数组中的元素，$item[&#39;key&#39;]为元素的关键字，$item[&#39;value&#39;]为元素的值；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.list()方法：list($key,&nbsp;$value)&nbsp;=&nbsp;each($arrays);$key为元素的关键字，$value为元素的值；允许为变量$key,$value命名。<br/>&nbsp;&nbsp;&nbsp;&nbsp;d.reset()方法：reset($arrays);将当前元素重新设置到数组开始处，遍历数组后如需再次遍历需使用此函数。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=753</link>
			<title><![CDATA[PHP中的数字索引数组]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Tue,11 Aug 2009 15:08:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=753</guid>	
		<description><![CDATA[1.初始化：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.&nbsp;array(item1,&nbsp;item2,...,itemN);列举所有元素手动创建数组；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.range(start,&nbsp;end,&nbsp;step);创建等差数列数组，start为第一个数值，end为最后一个数值，step为数列的公差。<br/>2.访问数组内容：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.使用数字索引：如$arr[0],$arr[1];数组的第一个元素的索引为0；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.使用for循环；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.使用foreach循环：如foreach($array&nbsp;as&nbsp;$item);将$array数组中的元素依次装入$item变量。<br/>3.数组不需要初始化或创建，第一次使用时会自动创建。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=752</link>
			<title><![CDATA[PHP中的文件锁]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Tue,11 Aug 2009 11:08:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=752</guid>	
		<description><![CDATA[1.实现文件锁的方法格式如下：<br/>&nbsp;&nbsp;&nbsp;&nbsp;bool&nbsp;flock(resource&nbsp;fp,&nbsp;int&nbsp;operation&nbsp;[,&nbsp;int&nbsp;&wouldblock]);<br/>2.operation参数有以下几种：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.&nbsp;LOCK_SH：读操作锁定；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.&nbsp;LOCK_EX：写操作锁定；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.&nbsp;LOCK_UN：释放锁定；<br/>&nbsp;&nbsp;&nbsp;&nbsp;d.&nbsp;LOCK_NB：防止请求加锁时发生阻塞。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=751</link>
			<title><![CDATA[PHP中常用的文件操作函数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Thu,06 Aug 2009 17:16:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=751</guid>	
		<description><![CDATA[1.查看文件是否存在：file_exists(string&nbsp;fileName);<br/>2.取得文件大小：filesize(string&nbsp;fileName);<br/>3.删除文件：unlink(string&nbsp;fileName);<br/>4.文件定位：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.ftell(resource&nbsp;fp)取得文件中指针的位置；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.rewind(resource&nbsp;fp);将文件指针复位到文件开始；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.fseek(resource,&nbsp;int&nbsp;offset&nbsp;[,&nbsp;int&nbsp;whence]);将文件指针指向文件的某个位置。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=750</link>
			<title><![CDATA[PHP中的读文件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Tue,28 Jul 2009 15:58:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=750</guid>	
		<description><![CDATA[1.文件结束标记：boolean&nbsp;feof(resource&nbsp;fp)，如果文件指针指向了文件的末尾，则返回true；<br/>2.读取一行数据：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.&nbsp;string&nbsp;fgets(resource&nbsp;fp,&nbsp;int&nbsp;length);适合读取纯文本文件；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.&nbsp;string&nbsp;fgetss(resource&nbsp;fp,&nbsp;int&nbsp;length&nbsp;[,&nbsp;string&nbsp;allowable_tags]);过滤特殊标记；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.&nbsp;array&nbsp;fgetcsv(resource&nbsp;fp,&nbsp;int&nbsp;length&nbsp;[string&nbsp;delimiter&nbsp;[,&nbsp;string&nbsp;enclosure]]);使用定界符读取数据；<br/>3.读取整个文件：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.&nbsp;int&nbsp;readfile(string&nbsp;filename);打开文件，将文件内容输出到浏览器中，再关闭文件；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.&nbsp;boolean&nbsp;fpassthru(resource&nbsp;fp);把文件指针指向的文件内容输出到浏览器中，再关闭文件，操作成功返回true，否则返回false；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.&nbsp;array&nbsp;file(string&nbsp;filename);打开文件，将文件内容读入到数组中，再关闭文件；<br/>4.读取一个字符：fgetc();从文件中一次读取一个字符；<br/>5.读取任意长度：string&nbsp;fread(resource&nbsp;fp,&nbsp;int&nbsp;length);读满指定的字节数或者读到文件末尾。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=749</link>
			<title><![CDATA[PHP中的写文件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Mon,27 Jul 2009 23:00:10 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=749</guid>	
		<description><![CDATA[1.&nbsp;打开文件：fopen(string&nbsp;path,&nbsp;string&nbsp;mode);path为文件路径，mode为文件模式；<br/>2.写文件：fwrite(resource&nbsp;handle,&nbsp;string&nbsp;string&nbsp;[,&nbsp;int&nbsp;length]);handle为指向要写入文件的指针，string为要写入的字符串，length为字符串的长度；<br/>3.关闭文件：fclose(resource&nbsp;handle);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=748</link>
			<title><![CDATA[PHP的可变函数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Mon,27 Jul 2009 17:29:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=748</guid>	
		<description><![CDATA[1.测试和设置变量类型：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.&nbsp;string&nbsp;gettype(mixed&nbsp;var);返回变量的类型；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.&nbsp;int&nbsp;settype(mixed&nbsp;var,&nbsp;string&nbsp;type);指定一个数据类型用来改变变量的数据类型；<br/>2.测试变量状态：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.&nbsp;boolean&nbsp;isset(mixed&nbsp;var);如果变量存在，则返回true，否则返回false；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.&nbsp;void&nbsp;unset(mixed&nbsp;var);销毁变量；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.&nbsp;boolean&nbsp;empty(mixed&nbsp;var);检查变量是否存在，以及值是否为非空和非零；<br/>3.变量的类型转换：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.&nbsp;int&nbsp;intval(mixed&nbsp;var&nbsp;[,&nbsp;int&nbsp;base]);<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.&nbsp;float&nbsp;floatval(mixed&nbsp;var);<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.string&nbsp;strval(mixed&nbsp;var);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=747</link>
			<title><![CDATA[PHP中变量常量和运算符]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Mon,27 Jul 2009 15:53:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=747</guid>	
		<description><![CDATA[1.变量必须以$开头；<br/>2.数据类型：Integer、Float、String、Boolean、Array、Object、NULL、resource；<br/>3.PHP是弱类型语言，使用变量之前不需要声明，变量的类型是由赋给变量的值确定的；<br/>4.类型转换：与C语言类似，如：$a&nbsp;=&nbsp;(float)$b;<br/>5.可变变量：可以使用一个变量的值作为另一个变量的名称，如：$a&nbsp;=&nbsp;&#39;b&#39;;&nbsp;$$a&nbsp;=&nbsp;123;&nbsp;等价于$b&nbsp;=&nbsp;123;<br/>6.声明和使用常量，格式如下：define(&#39;name&#39;,value);<br/>&nbsp;&nbsp;&nbsp;&nbsp;常量名称大写，引用常量直接使用名称，前面不用加“$”；<br/>&nbsp;&nbsp;&nbsp;&nbsp;常量只可以保存整数、浮点数、布尔值和字符串这些标量数据；<br/>7.操作符：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.算术操作符：加（+），减（-），乘（*），除（/），取余（%）；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.字符串操作符：（.）；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.赋值操作符：=、+=、-=、*=、/=、%=、.=、++、--；<br/>&nbsp;&nbsp;&nbsp;&nbsp;d.引用操作符：（&），如：$a&nbsp;=&nbsp;1;&nbsp;$b&nbsp;=&nbsp;&$a;&nbsp;$a&nbsp;=&nbsp;7;，此时$b的值也为7，unset($a)解除引用；<br/>&nbsp;&nbsp;&nbsp;&nbsp;e.比较操作符：等于（==）、恒等（===）、不等（!=或&lt;&gt;）、不恒等（!==）、其他（&gt;、&lt;、&gt;=、&lt;=）；<br/>&nbsp;&nbsp;&nbsp;&nbsp;f.逻辑操作符：!、&&、||、and、or；“and、or”优先级比“&&、||”低；<br/>&nbsp;&nbsp;&nbsp;&nbsp;g.位操作符：&、|、~、^、&lt;&lt;、&gt;&gt;；<br/>&nbsp;&nbsp;&nbsp;&nbsp;h.三元操作符，格式如下：condition&nbsp;?&nbsp;value&nbsp;if&nbsp;true&nbsp;:&nbsp;value&nbsp;if&nbsp;false;<br/>&nbsp;&nbsp;&nbsp;&nbsp;i.错误抑制操作符：（@），可以使用在任何表达式的前面，此时警告被抑制，需要写一些错误处理代码，错误信息保存在$php_errormsg中；<br/>&nbsp;&nbsp;&nbsp;&nbsp;j.执行操作符：（``）反向单引号（与“～”处于同一个键），反向单引号之间的命令在服务器端执行，表达式的值是命令的执行结果；<br/>&nbsp;&nbsp;&nbsp;&nbsp;k.数组操作符：联合（+），等价（==），恒等（===），非等价（!=或&lt;&gt;）、非恒等（!==）；<br/>&nbsp;&nbsp;&nbsp;&nbsp;l.类型操作符：（instanceof），检查一个对象是否是特定类的实例。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=746</link>
			<title><![CDATA[PHP中字符串操作]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Mon,27 Jul 2009 00:08:51 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=746</guid>	
		<description><![CDATA[1.字符串的两种形式：<br/>&nbsp;&nbsp;a.双引号：双引号中的变量名称被变量的值所取代；<br/>&nbsp;&nbsp;a.单引号：单引号中的文本不经过修改，直接发给浏览器；<br/>2.连接字符串的两种方法：<br/>&nbsp;&nbsp;a.通过字符串连接符（.），如echo&nbsp;$str.&#39;gci&lt;br&nbsp;/&gt;&#39;;<br/>&nbsp;&nbsp;b.通过插补操作，如echo&nbsp;&quot;$str&nbsp;gci&lt;br&nbsp;/&gt;&quot;;<br/>3.Heredoc字符串：允许指定长字符串，跟双引号字符串一样是插补的，格式如下：<br/>&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;&lt;&lt;&lt;theEnd<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;line&nbsp;1<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;line&nbsp;2<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;line&nbsp;3<br/>theEnd;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;“theEnd”可以是任意的字符，结束符所在行不能有缩进，必须定格写，结束符之后只能紧跟着一个分号，除此之外不能有包括空格在内的任何字符。<br/>&nbsp;&nbsp;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=745</link>
			<title><![CDATA[PHP中访问表单变量]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Sun,26 Jul 2009 23:39:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=745</guid>	
		<description><![CDATA[访问表单数据的三种方法：<br/>1.简短风格：$name，需要将register_globals配置选项设置为on；<br/>2.中等风格：$_POST[&#39;name&#39;]，推荐使用的风格，适用于POST方法提交的数据，<br/>&nbsp;&nbsp;&nbsp;&nbsp;GET方法提交的数据使用$_GET[&#39;name&#39;]，<br/>&nbsp;&nbsp;&nbsp;&nbsp;通过POST或GET方法提交的所有数据都可以通过$_REQUEST[&#39;name&#39;]取得；<br/>3.冗长风格：$HTTP_POST_VARS[&#39;name&#39;]，过时的风格。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=744</link>
			<title><![CDATA[第一个PHP页面——Hello World]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[PHP]]></category>
			<pubDate>Sun,26 Jul 2009 16:47:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=744</guid>	
		<description><![CDATA[第一个PHP页面：显示“Hello&nbsp;World！”<br/>1.PHP标识符：起始符（&lt;?php）表示PHP语句的开始，终止符（?&gt;）表示退出PHP模式；<br/>2.使用echo()语句输出。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=741</link>
			<title><![CDATA[M书店V2.0【优秀毕业设计作品】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Thu,30 Apr 2009 12:28:09 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=741</guid>	
		<description><![CDATA[M商场V1.9修改版<br/>1.修改了产品信息的字段；<br/>2.增加管理员权限管理功能。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0907/e20097241578.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=740</link>
			<title><![CDATA[ASP.NET中的主题]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,25 Mar 2009 22:06:26 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=740</guid>	
		<description><![CDATA[使用主题可以把页面的外观从页面中分离出来，便于更换外观。<br/>1.主题中包含一下内容：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.主题的名称：位于App_Themes文件夹下的文件夹名；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.可选的CSS样式表：不需要考虑文件名，系统会自动查找扩展名为.css的文件；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.Skin文件：可以给各个控件类型设置样式，只提取标签中的属性；<br/>2.应用主题的两种属性：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.Theme：重写页面上已有控件属性；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.StyleSheetTheme：已有控件属性优先于Skin文件中的属性；<br/>3.在页面上应用主题的方法：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.页面中声明：&lt;%@&nbsp;Page&nbsp;Theme=&quot;MyTheme&quot;%&gt;或&lt;%@&nbsp;Page&nbsp;StyleSheetTheme=&quot;MyTheme&quot;%&gt;；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.Web.config文件中配置：&lt;system.web&gt;标签中的&lt;pages&nbsp;Theme=&quot;MyTheme&quot;&nbsp;/&gt;或&lt;pages&nbsp;StyleSheetTheme=&quot;MyTheme&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.编程方式：在页面后台代码中重写OnPreInit()方法，设置Page.Theme=&quot;MyTheme&quot;或Page.StyleSheetTheme=&quot;MyTheme&quot;。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=739</link>
			<title><![CDATA[ASP.NET中用户和角色的权限]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,23 Mar 2009 22:48:36 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=739</guid>	
		<description><![CDATA[1.使用LoginView为不同的用户和角色设置不用的显示内容；<br/>2.通过配置Web.config中的&lt;authorization&gt;标签设置文件夹或文件的访问权限。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=738</link>
			<title><![CDATA[ASP.NET中的安全性和用户管理]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,22 Mar 2009 22:16:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=738</guid>	
		<description><![CDATA[1.身份验证系统主要有以下三种：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.Windows身份验证：用户为Windows账户，一般在内联网站点或WAN入口处使用；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.Forms身份验证：Web站点维护自己的用户列表，完成自己的身份验证；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.Passport身份验证：Microsoft提供的一个集中式身份验证。<br/>2.通过安全设置向导配置安全性：在解决方案资源管理器中打开ASP.NET配置窗口，在安全标签下配置安全性；<br/>3.Web登录服务器控件：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.Login：登录模块；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.LoginView：根据用户是否登录或用户的角色显示不同的内容；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.PasswordRecovery：用于忘记密码用户的密码恢复；<br/>&nbsp;&nbsp;&nbsp;&nbsp;d.LoginStatus：显示Login或Logout链接；<br/>&nbsp;&nbsp;&nbsp;&nbsp;e.LoginName：输出当前用户的用户名；<br/>&nbsp;&nbsp;&nbsp;&nbsp;f.CreateUserWizard：用户注册模块；<br/>&nbsp;&nbsp;&nbsp;&nbsp;g.ChangePassword：修改密码；<br/>4.保护目录：Web.config中的&lt;authorization&gt;标签<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.&lt;authorization&gt;标签包含&lt;deny&gt;和&lt;allow&gt;元素，分别表示拒绝和允许访问，都有users或roles属性；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.users=&quot;?&quot;表示匿名用户，users=&quot;*&quot;表示所有用户。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=737</link>
			<title><![CDATA[ASP.NET中的站点导航]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,21 Mar 2009 23:04:10 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=737</guid>	
		<description><![CDATA[1.Web导航服务器控件有以下三个：<br/>&nbsp;&nbsp;&nbsp;&nbsp;SiteMapPath、Menu、TreeView；<br/>2.站点地图文件(.sitemap)：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.格式：XML；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.&lt;siteMapNode&gt;元素的属性：title、url、roles、description；<br/>3.在页面上使用导航：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;asp:SiteMapPath&nbsp;ID=&quot;SiteMapPath1&quot;&nbsp;runat=&quot;server&quot;&nbsp;/&gt;<br/>4.添加菜单或树形试图需要的SiteMapDataSource控件：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;asp:SiteMapDataSource&nbsp;ID=&quot;SiteMapDataSource1&quot;&nbsp;runat=&quot;server&quot;&nbsp;/&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=736</link>
			<title><![CDATA[ASP.NET中的母版（Master）页]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,19 Mar 2009 22:42:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=736</guid>	
		<description><![CDATA[Master页可以把所有的页面布局都放在一个文件中，简化Web站点的设计。<br/>1.Master页类似于标准.aspx页面；<br/>2.使用&lt;%@&nbsp;Master%&gt;指令，而不是&lt;%@&nbsp;Page%&gt;指令，但是属性是相同的；<br/>3.在页面中放置一个ID为ContentPlaceHolder1的ContentPlaceHolder控件；<br/>4.在.aspx页面中使用Master页：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.在&lt;%@&nbsp;Page%&gt;指令中增加MasterPageFile和Title属性，分别指定Master页和标题；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.使用Master页的.aspx页面不必包含其他代码，不能包含Form控件；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.Content控件：.aspx页面中可以包含多个Content控件，每个Content控件都会把内容插入到Master页中的一个ContentPlaceHolder控件中。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=735</link>
			<title><![CDATA[ASP.NET中的定制控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,19 Mar 2009 01:34:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=735</guid>	
		<description><![CDATA[定制控件完全包含在C#程序集中，不需要单独的ASP.NET代码。<br/>1.创建定制控件的三种方法如下：<br/>&nbsp;&nbsp;&nbsp;&nbsp;a.从System.Web.UI.WebControls.WebControl派生一个类，创建完全定制控件；<br/>&nbsp;&nbsp;&nbsp;&nbsp;b.扩展现有控件的功能，创建派生的定制控件；<br/>&nbsp;&nbsp;&nbsp;&nbsp;c.使用更有逻辑的结构把几个现有的控件组合在一起，创建合成的定制控件。<br/>2.引用定制控件：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;%@&nbsp;Register&nbsp;TagPrefix=&quot;标记前缀名&quot;&nbsp;Namespace=&quot;定制控件所在的命名空间&quot;&nbsp;Assembly=&quot;目录名&quot;&nbsp;%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;如果定制控件类在App_Code文件夹下，则可以省略Assembly属性；<br/>3.使用定制控件：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;标记前缀名:定制控件类名&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=734</link>
			<title><![CDATA[ASP.NET中的用户控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,18 Mar 2009 17:38:46 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=734</guid>	
		<description><![CDATA[用户控件使用ASP.NET代码创建的控件，即把ASP.NET页面转化为控件，可以在多个ASP.NET页面中重用。<br/>1.扩展名：.ascx和.ascx.cs；<br/>2.工作方式：<br/>&nbsp;&nbsp;&nbsp;&nbsp;.ascx文件包含ASP.NET代码，与.aspx文件类似；<br/>&nbsp;&nbsp;&nbsp;&nbsp;.ascx.cs文件是后台代码文件，与aspx.cs文件类似；<br/>3.与.aspx页面的区别：<br/>&nbsp;&nbsp;&nbsp;&nbsp;.ascx文件没有显示HTML代码，没有&lt;form&gt;元素，因为用户控件是插入到其他ASP.NET窗体中使用的；<br/>4.引用用户控件：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;%@&nbsp;Register&nbsp;TagPrefix=&quot;标记前缀名&quot;&nbsp;TagName=&quot;标记名&quot;&nbsp;Src=&quot;用户控件文件.ascx&quot;&nbsp;%&gt;<br/>5.使用用户控件：<br/>&nbsp;&nbsp;&nbsp;&nbsp;引用用户控件后，通过&lt;标记前缀名:标记名&gt;标签使用用户控件。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=733</link>
			<title><![CDATA[ASP.NET中使用控件和模板显示数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,17 Mar 2009 23:56:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=733</guid>	
		<description><![CDATA[ASP.NET中使用控件和模板显示数据：<br/>1.处理数据显示的控件：GridView、DataList、DetailsView、FormView、Repeater；<br/>2.使用模板来格式化要显示的数据，常用的模板有：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;ItemTemplate&gt;、&lt;HeaderTemplate&gt;、&lt;FooterTemplate&gt;；<br/>3.从绑定到控件的表中输出数据：使用&lt;%#&nbsp;Bind()%&gt;或&lt;%#&nbsp;Eval()%&gt;表达式。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=732</link>
			<title><![CDATA[ASP.NET中向数据库添加数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,16 Mar 2009 21:19:54 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=732</guid>	
		<description><![CDATA[ASP.NET中向数据库添加数据：<br/>1.使用SqlConnection通过配置文件中的连接字符串连接数据库；<br/>2.使用SqlCommand插入数据；<br/>3.判断是否插入成功，做出相应的处理。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=731</link>
			<title><![CDATA[ASP.NET中控件的事件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,15 Mar 2009 19:41:20 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=731</guid>	
		<description><![CDATA[ASP.NET中控件的事件]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=730</link>
			<title><![CDATA[ASP.NET中的数据绑定]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,14 Mar 2009 23:55:12 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=730</guid>	
		<description><![CDATA[ASP.NET中的数据绑定：<br/>1.在App_Data文件夹中新建数据库<br/>2.添加Web服务器控件SqlDataSource；<br/>3.在SqlDataSource上配置数据源，映射数据表；<br/>4.设置控件的数据绑定属性。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=729</link>
			<title><![CDATA[ASP.NET中的服务器控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,13 Mar 2009 17:28:23 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=729</guid>	
		<description><![CDATA[ASP.NET中有以下三种类型的控件：<br/>1.HTML服务器控件：模拟HTML元素；<br/>2.Web服务器控件：一些控件的功能与HTML，但是属性有一个公共的命名方式；<br/>3.定制控件和用户控件：由开发人员定义的控件。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=728</link>
			<title><![CDATA[第一个ASP.NET页面——Hello World]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,12 Mar 2009 15:34:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=728</guid>	
		<description><![CDATA[1.一个基本的ASP.NET网站包含以下内容：<br/>&nbsp;&nbsp;*.aspx：ASP.NET页面；<br/>&nbsp;&nbsp;*.aspx.cs：*.aspx的后台代码类文件；<br/>&nbsp;&nbsp;App_Data文件夹：保留文件夹，包含数据库文件<br/>2.runat=&quot;server&quot;：表示代码在服务器上处理；<br/>3.&lt;@%Page%&gt;标记：定义页面特性：<br/>&nbsp;&nbsp;language属性：指定页面中使用的语言；<br/>&nbsp;&nbsp;AutoEventWriseup、CodeFile、Inherits属性：用于将Web窗体关联到后台代码文件中的一个类中。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=723</link>
			<title><![CDATA[Magci Tetris【基于C#的俄罗斯方块】V1.0（修正BUG，发布程序）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,07 Feb 2009 19:48:26 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=723</guid>	
		<description><![CDATA[Magci&nbsp;Tetris&nbsp;V1.0：<br/>修正BUG，发布程序：<br/>1.设置图标；<br/>2.验证环境配置，提示错误信息；<br/>3.修正鼠标点击方块设计区边框导致的下标越界错误；<br/>4.修正改变方格大小后下一个方块预览区显示错误问题；<br/>5.增加游戏结束、暂停的信息显示；<br/>6.方块颜色与背景色相同，反色处理；<br/>7.配置生效，提示需重新开始；<br/>8.增加背景图片功能；<br/>9.防止用户修改配置文件导致的错误。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0902/s20092718389.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=722</link>
			<title><![CDATA[Magci Tetris【基于C#的俄罗斯方块】V0.9（设置速度、方块样式、BT模式）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,05 Feb 2009 21:37:20 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=722</guid>	
		<description><![CDATA[Magci&nbsp;Tetris&nbsp;V0.9：<br/>设置速度、方块样式、BT模式：<br/>1.根据用户设定的速度设置定时器的时间间隔；<br/>2.预设三种样式信息集合，允许用户使用自定义的方块样式；<br/>3.增加BT模式：必死模式和永生模式，为后期功能做准备测试；<br/>&nbsp;&nbsp;a.必死模式：满行后不消除方块，随机选中一个方块垂直上升到固定方块顶部；<br/>&nbsp;&nbsp;b.永生模式：方块到顶后游戏不结束，使下半部分塌陷；<br/>4.改进消除满行方式：闪烁后消除。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0902/j20092521301.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=721</link>
			<title><![CDATA[Magci Tetris【基于C#的俄罗斯方块】V0.8（修正旋转算法）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,04 Feb 2009 02:03:10 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=721</guid>	
		<description><![CDATA[Magci&nbsp;Tetris&nbsp;V0.8：<br/>修正旋转算法：<br/>1.将方块样式配置区改为4×4的方格；<br/>2.将用户设计样式的样式进行两次位置修正，保证样式显示在最小正方形区域的中间位置；<br/>3.在最小正方形区域中旋转，旋转后再进行两次位置修正。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0902/8200924135644.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=720</link>
			<title><![CDATA[Magci Tetris【基于C#的俄罗斯方块】V0.7（配置文件、键盘控制）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,03 Feb 2009 02:31:03 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=720</guid>	
		<description><![CDATA[Magci&nbsp;Tetris&nbsp;V0.7：<br/>配置文件、键盘控制：<br/>1.读取配置文件，初始化游戏；<br/>2.使用键盘控制操作；<br/>3.方块满行后消除该行。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0902/p20092313368.gif" border="0" alt=""/>&nbsp;</div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=719</link>
			<title><![CDATA[Magci Tetris【基于C#的俄罗斯方块】V0.6（游戏界面）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,02 Feb 2009 21:28:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=719</guid>	
		<description><![CDATA[Magci&nbsp;Tetris&nbsp;V0.6：<br/>游戏界面：<br/>1.创建一个游戏窗体，使用一个PictureBox作为方块容器，一个Label作为下一个方块预览区；<br/>2.为了便于调试，暂时使用按钮控制方块的移动、旋转等操作；<br/>3.创建一个方块类，保存方块的位置状态信息；<br/>4.创建一个方块生成器类，随机生成方块；<br/>5.创建一个方块容器类，处理游戏状态和操作。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0902/i20092221530.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=718</link>
			<title><![CDATA[Magci Tetris【基于C#的俄罗斯方块】V0.5（读取保存XML配置文件）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,01 Feb 2009 21:12:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=718</guid>	
		<description><![CDATA[Magci&nbsp;Tetris&nbsp;V0.5：<br/>读取保存XML配置文件：<br/>1.创建一个类保存方块样式；<br/>2.创建一个集合类保存方块样式集合；<br/>3.创建XML文档，设置属性中的生成操作为内嵌资源；<br/>4.创建一个配置类，保存所有设置信息，读写XML文件；<br/>5.添加“确定”、“取消”、“应用”按钮。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0902/520092121735.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=717</link>
			<title><![CDATA[Magci Tetris【基于C#的俄罗斯方块】V0.4（键盘环境设置）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,31 Jan 2009 20:59:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=717</guid>	
		<description><![CDATA[Magci&nbsp;Tetris&nbsp;V0.4：<br/>键盘环境设置：<br/>1.设置快捷键：排除一些不适合的快捷键，清除与当前设置冲突的快捷键；<br/>2.环境设置：设置水平、垂直方格数、方格像素、背景色、速度、特效。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0901/12009131205340.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=716</link>
			<title><![CDATA[Magci Tetris【基于C#的俄罗斯方块】V0.3（保存方块样式列表）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,31 Jan 2009 18:30:52 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=716</guid>	
		<description><![CDATA[Magci&nbsp;Tetris&nbsp;V0.3：<br/>保存方块样式列表：<br/>1.创建一个ListView控件用于保存样式列表；<br/>2.列表中保存的数据格式：样式为25个字符的字符串，颜色为RGB值；<br/>3.添加：在样式不为空且列表中没有相同项的情况下，将方块样式添加到列表中；<br/>4.修改：在列表中选中样式，设计区中显示样式，修改后，点击“修改”按钮更新到列表中；<br/>5.清除：清除设计区中的样式；<br/>6.删除：删除列表中选中的样式。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0901/x2009131183117.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=715</link>
			<title><![CDATA[Magci Tetris【基于C#的俄罗斯方块】V0.2（方块颜色配置）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,31 Jan 2009 02:10:09 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=715</guid>	
		<description><![CDATA[Magci&nbsp;Tetris&nbsp;V0.2：<br/>方块颜色配置：<br/>1.创建一个Label控件作为颜色选择区；<br/>2.通过Label的单击事件弹出颜色选择对话框，选择颜色；<br/>3.检查所选择的颜色是否与设计区背景色相同，相同则弹出提示，重新设置颜色；<br/>4.重画颜色标签和设计标签，更新颜色。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0901/620091312854.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=714</link>
			<title><![CDATA[Magci Tetris【基于C#的俄罗斯方块】V0.1（方块样式配置）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,30 Jan 2009 23:46:28 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=714</guid>	
		<description><![CDATA[Magci&nbsp;Tetris&nbsp;V0.1：<br/>方块样式配置：<br/>1.新建配置窗体；<br/>2.在窗体中创建一个TabControl控件作为配置选项卡；<br/>3.在一个选项卡中创建一个Label控件作为样式配置板；<br/>4.通过Label的Paint事件，在Label上绘制横竖线条，将Label分为5×5的方格；<br/>5.鼠标点击方格，方格表现为选中状态（红色），再次点击，方格表现为取消选中状态（黑色）。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0901/82009130234419.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=713</link>
			<title><![CDATA[MagciTextViewer【基于C#的文本查看器】V1.1（增加打印和打印预览功能）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,30 Jan 2009 21:30:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=713</guid>	
		<description><![CDATA[Magci&nbsp;Text&nbsp;Viewer&nbsp;V1.1：<br/>新增功能：<br/>1.打印文档；<br/>2.打印预览。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0901/s2009130213457.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=712</link>
			<title><![CDATA[MagciTextViewer【基于C#的文本查看器】V1.0]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,30 Jan 2009 18:52:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=712</guid>	
		<description><![CDATA[Magci&nbsp;Text&nbsp;Viewer&nbsp;V1.0：<br/>主要功能：<br/>1.支持txt、csc格式文件，暂不支持中文；<br/>2.打开文件，窗体上显示文本信息，如文件中没有数据，则显示提示信息；<br/>3.通过滚动条查看窗体中无法一次全部显示的文本；<br/>4.双击文本，改行所有文本变成大写。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0901/y2009130193934.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=711</link>
			<title><![CDATA[C#中的字体和字体系列]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,29 Jan 2009 23:46:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=711</guid>	
		<description><![CDATA[1.字体系列：System.Drawing.FontFamily，指文本的可视化风格，如“宋体”等；<br/>2.字体：System.Drawing.Font，包含了字体系列、文本大小、文本样式等信息。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=710</link>
			<title><![CDATA[C#中使用GDI+绘制文本]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,29 Jan 2009 23:18:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=710</guid>	
		<description><![CDATA[1.绘制文本方法：System.Drawing.Graphics类的DrawString()方法；<br/>2.DrawString()方法有很多重载方法，都需要指定要显示的字符串，字体，画笔，左上角坐标或矩形区域。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=709</link>
			<title><![CDATA[C#中使用GDI+显示图像]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,29 Jan 2009 22:34:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=709</guid>	
		<description><![CDATA[1.创建一个System.Drawing.Image实例：使用Image的静态方法FromFile()从文件中读取，文件可以是bmp、jpg、png等格式的图像文件；<br/>2.指定图像在窗体上的位置：使用Point数组确定图像的左上角、右上角和右下角的坐标，可以拉伸图像；<br/>3.绘制图像的方法：DrawImage(Image&nbsp;myImage,&nbsp;Point[]&nbsp;points);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=708</link>
			<title><![CDATA[C#中绘制图形和线条]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,29 Jan 2009 20:58:19 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=708</guid>	
		<description><![CDATA[System.Drawing.Graghics中常用的绘制图形的方法如下：<br/>1.DrawLine：直线；<br/>2.DrawRectangle：空心矩形；<br/>3.DrawEllipse：空心椭圆；<br/>4.FillRectangle：实心矩形；<br/>5.FillEllipse：实心椭圆。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=707</link>
			<title><![CDATA[C#中GDI+的钢笔（Pen）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,29 Jan 2009 19:29:47 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=707</guid>	
		<description><![CDATA[1.钢笔用来指定线条的宽度和如何填充线条中的区域；<br/>2.创建钢笔的几种常见的方式如下：<br/>&nbsp;&nbsp;a.通过纯色填充，如new&nbsp;Pen(Color.Red)；<br/>&nbsp;&nbsp;b.通过画笔填充new&nbsp;Pen(brickBrush)；<br/>&nbsp;&nbsp;c.指定宽度，如new&nbsp;Pen(Color.Red,&nbsp;5)；<br/>&nbsp;&nbsp;d.通过Pens的静态方法创建，如Pens.Yellow。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=706</link>
			<title><![CDATA[C#中GDI+的画笔（Brush）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,29 Jan 2009 18:04:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=706</guid>	
		<description><![CDATA[1.画笔中包含了绘图所需的颜色、模式等信息；<br/>2.创建画笔的几种常用方式如下：<br/>&nbsp;&nbsp;a.通过构造函数使用纯色填充，如new&nbsp;SolidBrush(Color.Beige)；<br/>&nbsp;&nbsp;b.通过Brushes的静态函数创建，如Brushes.Azure；<br/>&nbsp;&nbsp;c.通过模式创建影线画笔，使用System.Drawing.Drawing2D.HatchBrush类的构造函数创建，需要制定一个影线模式，两种颜色。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=705</link>
			<title><![CDATA[C#中GDI+的Color]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,29 Jan 2009 17:43:04 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=705</guid>	
		<description><![CDATA[1.System.Drawing.Color表示颜色;<br/>2.构建Color的常用方式：<br/>&nbsp;&nbsp;a.通过RGB值：Color.FromArgb()方法；<br/>&nbsp;&nbsp;b.通过枚举的命名颜色：如Color.Blue；<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=704</link>
			<title><![CDATA[C#中绘制滚动窗体]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,29 Jan 2009 16:59:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=704</guid>	
		<description><![CDATA[1.设置滚动窗体的最小尺寸：通过AutoScrollMinSize属性设置，超出最小尺寸则显示滚动条；<br/>2.根据滚动条位置重新绘制图形：<br/>&nbsp;&nbsp;a.拖动滚动条后，绘图时的(0,0)坐标还是窗体中左上角可见的位置，需要根据滚动条的位置，改变绘图坐标；<br/>&nbsp;&nbsp;b.使用窗体的AutoScrollPosition属性取得滚动条位置。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=703</link>
			<title><![CDATA[C#中GDI+的Rectangle结构]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,29 Jan 2009 15:30:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=703</guid>	
		<description><![CDATA[Rectangle结构表示一个矩形区域。<br/>1.Rectangle可以看作由一个Point和一个Size组成，Point表示左上角坐标，Size表示矩形大小；<br/>2.属性：<br/>&nbsp;&nbsp;int&nbsp;Left&nbsp;/&nbsp;X：左边界x坐标；<br/>&nbsp;&nbsp;int&nbsp;Right:有边界x坐标；<br/>&nbsp;&nbsp;int&nbsp;Top&nbsp;/&nbsp;Y：顶边y坐标；<br/>&nbsp;&nbsp;int&nbsp;bottom：底边y坐标；<br/>&nbsp;&nbsp;int&nbsp;Width：矩形宽度；<br/>&nbsp;&nbsp;int&nbsp;Height：矩形高度；<br/>&nbsp;&nbsp;Point&nbsp;Location：左上角坐标；<br/>&nbsp;&nbsp;Size&nbsp;Size：矩形大小。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=702</link>
			<title><![CDATA[C#中GDI+的Size和Point结构之间的转换运算]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,29 Jan 2009 14:36:48 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=702</guid>	
		<description><![CDATA[Size结构用于表示实体的大小。<br/>1.属性：Width、Height表示水平和垂直距离；<br/>2.转换：Size和Point之间可以通过显式转换互相转换，Size的Width、Height属性转换为Point对应的X、Y属性；<br/>3.运算：<br/>&nbsp;&nbsp;a.可以使用以下运算：Point&nbsp;+/-&nbsp;Size、Size&nbsp;+/-&nbsp;Size；<br/>&nbsp;&nbsp;b.不能使用以下运算：Size&nbsp;+/-&nbsp;Point、Point&nbsp;+/-Point。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=701</link>
			<title><![CDATA[C#中GDI+的Point和PointF结构]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,28 Jan 2009 23:37:20 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=701</guid>	
		<description><![CDATA[GDI+中的Point和PointF结构表示一个点。<br/>1.属性：X、Y表示水平和垂直坐标；<br/>2.Point中的属性为int型，PointF中的属性为float型；<br/>3.Point转换为PointF为隐式转换；<br/>4.PointF转换为Point必须显示转换或者使用Point的静态方法Round()、Truncate()、Ceiling()转换。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=700</link>
			<title><![CDATA[C#中使用剪切区域提高绘制图形的性能]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,28 Jan 2009 22:48:26 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=700</guid>	
		<description><![CDATA[1.一般情况下，使用OnPaint方法或触发Paint事件时，会重新绘制整个窗体中的所有区域；<br/>2.如果只需要重新绘制窗体的一部分区域，可以使用剪切区域；<br/>3.使用PaintEventArgs的ClipRectangle属性的Top、Bottom、Left、Right设置剪切区域。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=699</link>
			<title><![CDATA[C#中重写OnPaint方法绘制图形]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,28 Jan 2009 22:11:53 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=699</guid>	
		<description><![CDATA[1.通过重写OnPaint方法绘制图形可以避免由于窗口最小化或被其他窗体覆盖而导致绘制的图形消失的情况；<br/>2.也可以通过Paint事件类绘制图形，但是没有OnPaint方法灵活。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=698</link>
			<title><![CDATA[C#中使用GDI+绘制图形]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,28 Jan 2009 21:36:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=698</guid>	
		<description><![CDATA[1.GDI+中System.Drawing.Graphics类负责处理大多数绘图操作；<br/>2.Pen类：定义直线的特性；<br/>3.Graphics的常用绘图方法如下：<br/>&nbsp;&nbsp;DrawRectangle()：绘制矩形；<br/>&nbsp;&nbsp;DrawEllipse()：绘制椭圆；<br/>4.绘制图形前确保窗体已显示。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=697</link>
			<title><![CDATA[C#中将数据绑定到多个控件上并滚动显示数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,28 Jan 2009 13:26:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=697</guid>	
		<description><![CDATA[每个Windows窗体都有BindingContext属性，可以管理绑定的数据。<br/>1.BindingContext可以包含几个数据源；<br/>2.窗体上的所有空间共享一个相同的实例。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=696</link>
			<title><![CDATA[C#中将数据绑定到支持单一绑定的控件上]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,27 Jan 2009 23:53:27 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=696</guid>	
		<description><![CDATA[1.支持单一绑定的控件有文本框或单选按钮等；<br/>2.绑定数据：使用控件的DataBindings属性的Add方法添加数据绑定；<br/>3.绑定后的控件一次只显示一个值，不能滚动，也不能更新数据库。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=695</link>
			<title><![CDATA[C#中创建DataGridView控件的自定义列]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,27 Jan 2009 23:33:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=695</guid>	
		<description><![CDATA[在DataGridView控件中创建自定义列:<br/>1.将AutoGenerateColumns属性设置为false；<br/>2.使用DataGridViewTextBoxColumn、DataGridViewComboBoxColumn等类创建相应的列。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=694</link>
			<title><![CDATA[C#中使用DataGridView控件显示集合中的数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,27 Jan 2009 21:54:21 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=694</guid>	
		<description><![CDATA[DataGridView控件可以显示集合中的数据。<br/>1.使用DataSource属性将集合对象设置为数据源；<br/>2.隐藏属性：在集合中类的公共属性定义上设置特性[Browsable(false)]，可以将属性隐藏，不在网格中显示。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=693</link>
			<title><![CDATA[C#中使用DataGrid控件显示经过DataViewManager包装后的DataSet数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,27 Jan 2009 21:03:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=693</guid>	
		<description><![CDATA[1.DataViewManager可以设置条件过滤DataSet中的数据；<br/>2.即使不需要过滤数据，也可以将DataSet包装到DataViewManager中进行显示，这样在修改源代码时可以有更多的选项；<br/>3.使用DataGrid的SetDataBinding()方法添加包装后的数据。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=692</link>
			<title><![CDATA[C#中使用DataGrid控件显示DataSet中的关系]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,27 Jan 2009 20:13:04 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=692</guid>	
		<description><![CDATA[DataGrid可以浏览DataSet中的关系。<br/>1.DataGrid通过SetDataBinding()方法设置含有关系的DataSet数据；<br/>2.通过每个记录左边的“+”号展开关系列表，点击链接打开子表，在子表中点击“箭头”返回父表；<br/>3.VS2005的工具箱中使用DataGridView替换了DataGrid，需要手动添加或者直接使用代码创建。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=691</link>
			<title><![CDATA[C#中使用DataGridView控件显示DataView中的数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,27 Jan 2009 18:21:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=691</guid>	
		<description><![CDATA[DataView可以过滤和排序DataTable中的数据。<br/>1.通过数据过滤数据行：通过RowFilter属性设置过滤字符串来改变视图中的数据；<br/>2.根据状态过滤数据行：通过DataViewRowState的枚举值过滤相应的状态行；<br/>3.对数据行进行排序：通过DataView的Sort属性设置排序条件。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=690</link>
			<title><![CDATA[C#中使用DataGridView控件显示DataTable中的数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,27 Jan 2009 16:53:23 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=690</guid>	
		<description><![CDATA[DataGridView中显示DataTable数据有以下两种方式：<br/>1.独立的DataTable：<br/>&nbsp;&nbsp;直接将DataGridView的DataSource属性设置为DataTable对象；<br/>2.DataSet中的DataTable：<br/>&nbsp;&nbsp;将DataGridView的DataSource属性设置为包含DataTable的DataSet对象，<br/>&nbsp;&nbsp;再将DataMember属性设置为DataTable名。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=689</link>
			<title><![CDATA[C#中使用DataGridView控件显示数组中的数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,27 Jan 2009 15:59:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=689</guid>	
		<description><![CDATA[DataGridView控件可以将数组设置为数据源，显示数组数据。<br/>1.网格中显示数组对象的所有属性；<br/>2.如果数据源为字符串数组，则只会显示字符串长度，不会显示字符串内容，这是因为字符串只有Length一个属性；<br/>3.显示字符串的解决方案是创建一个类，设置字符串类型的属性。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=688</link>
			<title><![CDATA[C#中使用DataGridView控件显示列表数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,27 Jan 2009 13:53:04 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=688</guid>	
		<description><![CDATA[使用DataGridView控件可以以列表的形式显示数据。<br/>1.DataSource属性：设置数据源；<br/>2.AutoGenerateColumns属性：是否自动创建列；<br/>3.DataMember属性：指定显示的数据表。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=687</link>
			<title><![CDATA[C#中的用户控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,27 Jan 2009 01:07:05 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=687</guid>	
		<description><![CDATA[用户控件允许把用户界面设计封装到可重用的软件包中。<br/>1.创建用户控件：在VS解决方案中，添加“用户控件”，选择“用户控件”；<br/>2.设计控件：将一个或多个控件加入到用户控件中；<br/>3.添加公共属性：编写get、set方法；<br/>4.事件处理；<br/>5.设置特性。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=686</link>
			<title><![CDATA[C#中的自定义控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,26 Jan 2009 18:18:48 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=686</guid>	
		<description><![CDATA[1.创建自定义控件有以下两种方式：<br/>&nbsp;&nbsp;a.从头开始创建新控件：从Control、ScrollableControl或ContainerControl中派生自己的类，必须重写Paint方法，完成绘制工作；<br/>&nbsp;&nbsp;b.改进已存在的控件：从已存在的控件中派生；<br/>2.常用属性：<br/>&nbsp;&nbsp;·&nbsp;BindableAttribute：确定属性是否支持双向数据绑定；<br/>&nbsp;&nbsp;·&nbsp;BrowsableAttribute：确定属性是否显示在可视化设计器中；<br/>&nbsp;&nbsp;·&nbsp;CategoryAttribute：确定属性显示在属性窗口的哪个类别中；<br/>&nbsp;&nbsp;·&nbsp;DefaultValueAttribute：默认值；<br/>&nbsp;&nbsp;·&nbsp;DescriptionAttribute：显示在设计器窗口底部的文本；<br/>3.设置在工具栏中显示的图标：将BMP格式图片添加到项目中控件的命名空间中，并在属性中将“生成操作”设为“嵌入的资源”；<br/>4.生成使用：在VS中运行程序，自动生成dll文件，需要使用时添加引用此dll文件。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=685</link>
			<title><![CDATA[C#中创建多文档界面的MDI窗体]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,26 Jan 2009 11:56:57 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=685</guid>	
		<description><![CDATA[应用程序窗体中可以包含多个子窗体，类似于PhotoShop中打开多个图片编辑窗口，C#中可以通过MDI窗体实现。<br/>1.设置MDI窗体：将窗体的IsMdiContainer属性设为true；<br/>2.创建子窗体：将子窗体的MdiParent属性设置为父窗体。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=684</link>
			<title><![CDATA[C#中窗体的实例化和释放]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,25 Jan 2009 19:42:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=684</guid>	
		<description><![CDATA[1.窗体事件的发生顺序如下：<br/>&nbsp;&nbsp;·&nbsp;构造函数：在对象实例化过程中执行；<br/>&nbsp;&nbsp;·&nbsp;Load：在对象实例化之后，窗体可见之前发生，此时窗体已存在，但不可见；<br/>&nbsp;&nbsp;·&nbsp;Activated：在窗体处于可见状态并处于当前状态时发生；<br/>&nbsp;&nbsp;·&nbsp;Closing：在窗体关闭时发生；<br/>&nbsp;&nbsp;·&nbsp;Closed：在窗体关闭后发生；<br/>&nbsp;&nbsp;·&nbsp;Deactivate：在窗体关闭后发生，不能执行防止窗体被正常垃圾收集的操作；<br/>2.Show()和ShowDialog()方法的区别：<br/>&nbsp;&nbsp;·&nbsp;调用Show()方法后，后面的代码会立即执行；<br/>&nbsp;&nbsp;·&nbsp;调用ShowDialog()方法后，直到ShowDialog()方法的窗体关闭后才继续执行之后的代码。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=683</link>
			<title><![CDATA[C#中的ToolStrip控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,24 Jan 2009 21:21:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=683</guid>	
		<description><![CDATA[ToolStrip控件是用于创建工具栏、菜单结构和状态栏的容器。<br/>1.ToolStrip中可以直接使用基于抽象类ToolStripItem的控件；<br/>2.在ToolStrip中添加非ToolStripItem派生的控件时，需要使用ToolStripControlHost类；<br/>3.Font、TextAlign、TextDirection属性：文本格式化；<br/>4.DisplayStyle属性：显示样式，显示文本、图像、文本和图像或者什么都不显示。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=682</link>
			<title><![CDATA[C#中的PictureBox控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,24 Jan 2009 15:41:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=682</guid>	
		<description><![CDATA[PictureBox控件用于显示图像。<br/>1.图像可以是BMP、JPEG、GIF、PNG、元文件或图标；<br/>2.SizeMode属性：确定图像在控件中的大小和位置；<br/>3.ClientSize属性：改变控件显示区域大小；<br/>4.Image属性：加载图像：应先创建一个Image对象。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=681</link>
			<title><![CDATA[C#中的ListView控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,24 Jan 2009 15:15:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=681</guid>	
		<description><![CDATA[ListView可以通过四种不同的方式显示条目。<br/>1.只能给ListView控件添加基于ListViewItem类的对象；<br/>2.ListViewItems属性：设置用于显示的属性；<br/>3.SubItems()方法：包含详细视图中显示的文本；<br/>4.View属性：设置以下四种显示方式：<br/>&nbsp;&nbsp;Details：详细信息；<br/>&nbsp;&nbsp;List：列表；<br/>&nbsp;&nbsp;LargeIcon：大图标；<br/>&nbsp;&nbsp;SmallIcon：小图标。<br/>5.Details视图需要为Columns属性使用Add()方法添加列。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=680</link>
			<title><![CDATA[C#中的HelpProvider控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,24 Jan 2009 12:43:31 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=680</guid>	
		<description><![CDATA[HelpProvider控件可以挂起控件，显示帮助主题。<br/>1.SetShowHelp()方法：设置指定控件是否显示帮助信息；<br/>2.HelpNamespace()方法：设置帮助文件；<br/>3.SetHelpKeyword()方法：为帮助文件设置关键字；<br/>4.SetHelpNavigator()方法：设置显示帮助中的元素；<br/>5.SetHelpString()方法：将帮助信息的文本字符串关联到控件上。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=679</link>
			<title><![CDATA[C#中的ErrorProvider控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,24 Jan 2009 12:23:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=679</guid>	
		<description><![CDATA[当出现一个错误或验证失败时，可以使用ErrorProvider控件在控件旁边显示错误提示图标。<br/>1.设置图标位置：使用SetIconAlignment()设置错误图标相对于出错控件的位置；<br/>2.设置错误描信息：SetError()方法；<br/>3.清除错误图标：使用SetError()方法设置空字符串。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=678</link>
			<title><![CDATA[C#中的DateTimePicker控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,24 Jan 2009 11:25:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=678</guid>	
		<description><![CDATA[DateTimePicker控件可以选择日期和时间，并以指定的格式显示。<br/>1.日期格式：Format属性，可以设为Long、Short、Time、Custom；<br/>2.取得日期值：<br/>&nbsp;&nbsp;Text属性：返回日期的文本形式；<br/>&nbsp;&nbsp;Value属性：返回日期的DateTime对象；<br/>3.日期范围：MaxDate、MinDate属性设置日期允许的最大值和最小值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=677</link>
			<title><![CDATA[C#中的ListBox、CheckedListBox、ComboBox控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,24 Jan 2009 01:56:14 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=677</guid>	
		<description><![CDATA[ListBox、CheckedListBox、ComboBox控件提供了列表管理功能。<br/>1.三种列表控件的选择：<br/>&nbsp;&nbsp;a.如果需要选择多个选项，或者用户需要在任意时刻查看列表中的多个项，最好使用ListBox、CheckedListBox；<br/>&nbsp;&nbsp;b.如果一次只选择一个选项，则使用ComboBox；<br/>2.添加数据：<br/>&nbsp;&nbsp;a.使用Items.Add()方法想列表中添加项；<br/>&nbsp;&nbsp;b.使用DataSource属性设置数据源；<br/>3.标识对象：<br/>&nbsp;&nbsp;·&nbsp;DisplayMember：设置作为显示的对象属性；<br/>&nbsp;&nbsp;·&nbsp;ValueMember：设置作为值的对象属性；<br/>4.获取数据：<br/>&nbsp;&nbsp;·&nbsp;SelectedItem、SelectIndex属性：取得选中项或其索引号；<br/>&nbsp;&nbsp;·&nbsp;SelectValue属性：取得选中项的值，必须设置ValueMember属性，并使用DataSource加载数据；<br/>&nbsp;&nbsp;·&nbsp;Items[n]：取得第n+1个项。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=676</link>
			<title><![CDATA[C#中的RadioButton控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,24 Jan 2009 00:34:19 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=676</guid>	
		<description><![CDATA[RadioButton单选按钮一般用作一个组。<br/>1.只允许用户从几个选项中选择一个，同一个容器中一次只能选择一个按钮；<br/>2.Appearance属性：根据的以下两种取值控制外观：<br/>&nbsp;&nbsp;Normal：圆圈+标签，选中后会填充圆圈；<br/>&nbsp;&nbsp;Button：按钮，类似于开关，选中后按下，未选中时凸起；<br/>3.Checked属性：<br/>&nbsp;&nbsp;true：选中；<br/>&nbsp;&nbsp;false：&nbsp;未选中；<br/>4.CheckedAlign属性：确定圆圈与标签文本的相对位置。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=675</link>
			<title><![CDATA[C#中的CheckBox控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,23 Jan 2009 23:48:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=675</guid>	
		<description><![CDATA[CheckBox复选框用于接受来自用户的二状态或三状态响应。<br/>1.如果ThreeState属性值设为true，CheckState属性可以为以下三个值之一：<br/>&nbsp;&nbsp;Checked：复选框有一个选中标记；<br/>&nbsp;&nbsp;Unchecked：复选框没有一个选中标记；<br/>&nbsp;&nbsp;Indeteminate：复选框不可用，灰显，只能在代码中设置；<br/>2.Checked属性：<br/>&nbsp;&nbsp;true：被选中；<br/>&nbsp;&nbsp;false：未被选中。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=674</link>
			<title><![CDATA[C#中的Button控件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,23 Jan 2009 23:35:09 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=674</guid>	
		<description><![CDATA[Button控件表示简单的命令按钮。<br/>1.常见用法是处理按钮的Click事件；<br/>2.按钮可以包含文本和图像。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=673</link>
			<title><![CDATA[C#中创建Windows窗体应用程序]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,23 Jan 2009 21:00:52 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=673</guid>	
		<description><![CDATA[C#中创建Windows窗体应用程序步骤如下：<br/>1.继承Form类；<br/>2.在Main()方法中使用Application.Run()方法加载窗体。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=672</link>
			<title><![CDATA[C#中不修改源代码的串行化和并行化]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,23 Jan 2009 18:12:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=672</guid>	
		<description><![CDATA[如果不能修改已经串行化的类型源代码，就不能添加属性；<br/>此时可以使用XmlAttributes类和XmlAttributeOverrides类。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=671</link>
			<title><![CDATA[C#中XML文档的串行化和并行化]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,23 Jan 2009 01:49:08 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=671</guid>	
		<description><![CDATA[1.串行化是把一个对象存入磁盘的过程，并行化是串行化的逆过程；<br/>2.使用XmlSerializer类，可以对XML进行串行化和并行化；<br/>&nbsp;&nbsp;Serializer()方法：串行化，DeSerializer()方法：并行化；<br/>3.在要串行化的类中添加描述如何串行化属性。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=670</link>
			<title><![CDATA[C#中读写DiffGram模式的XML文档]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,22 Jan 2009 23:36:52 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=670</guid>	
		<description><![CDATA[DiffGram模式的XML文档包含了编辑前后的数据和状态。<br/>1.修改或添加数据；<br/>2.使用WriteXmlSchema()方法写入模式；<br/>3.使用WriteXml()方法写入DiffGram模式的XML文档。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=669</link>
			<title><![CDATA[C#中将XML文档转换为ADO.NET数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,22 Jan 2009 22:42:51 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=669</guid>	
		<description><![CDATA[使用DataSet的ReadXml()方法可以将XML文档转换为ADO.NET数据。<br/><br/>实例：<br/>建立windows应用程序，添加一个button、一个listBox、一个dataGridView；<br/>单击button，从XML文档中读取数据，转换为DataSet，使用dataGridView显示数据；<br/>在listBox中显示表名和字段名及其属性。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=668</link>
			<title><![CDATA[C#中将ADO.NET数据转换为XML格式]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,22 Jan 2009 20:16:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=668</guid>	
		<description><![CDATA[将ADO.NET数据转换为XML格式的两种常见方法如下：<br/>1.使用DataSet类的WriteXml()方法：<br/>&nbsp;&nbsp;a.如果只是在内存中处理XML文档，则不需写入磁盘文件，只需写入基于Stream类的对象；<br/>&nbsp;&nbsp;b.使用XmlDocument等对象处理XML文档。<br/>2.使用专门为DataSet设计的XmlDataDocument类：<br/>&nbsp;&nbsp;调用含有DataSet参数的构造函数在创建XmlDataDocument对象时转换成XML格式。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=667</link>
			<title><![CDATA[C#中使用XsltArgumentList根据XSLT文件格式化XML文档]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,22 Jan 2009 01:55:33 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=667</guid>	
		<description><![CDATA[1.创建XSLT文件，定义格式；<br/>2.使用XPathDocument或XmlDocument对象加载XML文档；<br/>3.使用XslCompiledTransform对象加载xslt文档；<br/>4.使用XsltArgumentList对象关联自定义类；<br/>5.创建XmlWriter对象，输出XML文件；<br/>6.通过XslCompiledTransform对象的Transform方法格式化XML文档。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=666</link>
			<title><![CDATA[C#中使用XSLT文件将XML文档转换为HTML]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,21 Jan 2009 23:14:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=666</guid>	
		<description><![CDATA[1.创建XSLT文件，定义格式；<br/>2.在C#中使用XslCompiledTransform对象的load()方法加载XSLT文件；<br/>3.使用Transform()方法转换XML文档。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=665</link>
			<title><![CDATA[C#中使用XPath的XPathNavigator类移动选择XML数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,21 Jan 2009 18:47:10 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=665</guid>	
		<description><![CDATA[XPathNavigator类包含移动和选择XML所需元素的所有方法。<br/>1.创建：<br/>&nbsp;&nbsp;a.如果是从XPathDocument中创建，则是只读的，只能浏览数据；<br/>&nbsp;&nbsp;b.如果是从XmlDocument中创建，则可以编辑文档；<br/>2.查询：使用Select()方法通过XPath语句查询；<br/>3.迭代：使用XPathNodeIterator类，MoveNext()方法移动下一个节点；Current属性表示当前节点；<br/>4.求值：使用Evaluate()方法计算表达式的值；<br/>5.插入节点：先检查CanEdit属性是否为true，再使用InsertAfter()方法插入新节点。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=664</link>
			<title><![CDATA[C#中使用XmlDocument通过DOM方式读写XML数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,21 Jan 2009 16:17:22 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=664</guid>	
		<description><![CDATA[XmlDocument是表示DOM的类。<br/>1.加载XML文档：使用load()方法加载XML文档；<br/>2.读取节点：使用GetElementById()、GetElementsByTagName()方法根据ID或标签名读取节点；<br/>3.查找节点：使用SelectSingleNode(string&nbsp;search)方法通过XPath查找节点；<br/>4.插入节点：使用CreateElement()方法创建节点，AppendChild()方法添加新节点；<br/>5.创建文档：通过XmlDeclaration对象新建声明节点，其他同插入节点。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=663</link>
			<title><![CDATA[C#中使用XmlWriter写入XML数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,21 Jan 2009 12:23:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=663</guid>	
		<description><![CDATA[1.XmlWriterSettings类控制生成XML的方式；<br/>2.创建包含XmlWriterSettings对象的XmlWriter对象；<br/>3.XMlWriter的几种常用方法如下：<br/>&nbsp;&nbsp;WriteStartDocument()、WriteEndDocument()：写入文档声明；<br/>&nbsp;&nbsp;WriteStartElement()、WriteEndElement()：写入嵌套元素；<br/>&nbsp;&nbsp;WriteElementString()：写入单个元素，不嵌套；<br/>&nbsp;&nbsp;WriteAttributeString()：写入属性；<br/>&nbsp;&nbsp;WriteCData()：写入CData；<br/>&nbsp;&nbsp;WriteComment()：写入XML注释。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=662</link>
			<title><![CDATA[C#中使用XmlReader和XmlReaderSettings根据XSD模式验证XML数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,21 Jan 2009 00:35:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=662</guid>	
		<description><![CDATA[1.创建XmlReaderSettings对象，添加XSD模式；<br/>2.设置属性ValidationType&nbsp;=&nbsp;ValidationType.Schema,在读取时执行验证；<br/>3.设置ValidationEventHandler属性处理验证失败，验证失败时不处理异常，而是显示验证失败消息；<br/>4.创建含有XmlReaderSettings对象的XmlReader读取器，验证数据。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=661</link>
			<title><![CDATA[C#中使用XmlReader读取XML数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,20 Jan 2009 23:34:03 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=661</guid>	
		<description><![CDATA[XmlReader是一种拉模型，可以选择需要的数据传送到应用程序中。<br/>1.创建XmlReader：使用XmlReader抽象类的静态方法Create()，参数可以是文件，也可以是文件流等；<br/>2.遍历节点：Read()方法；<br/>3.读取强类型数据：ReadElementContentAs...方法；<br/>4.读取元素属性：GetAttribute()方法。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=660</link>
			<title><![CDATA[C#中使用MSXML查询XML数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,20 Jan 2009 20:28:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=660</guid>	
		<description><![CDATA[1.在VS中导入MSXML组件：项目-&gt;添加引用-&gt;COM组件-&gt;Microsoft&nbsp;XML,&nbsp;v3.0(或v4.0)；<br/>2.引用：using&nbsp;MSXML2;<br/>3.创建XML文档处理类：DOMDocument30&nbsp;doc&nbsp;=&nbsp;new&nbsp;DOMDocument30();<br/>4.加载XML文档：使用DOMDocument30对象的load(&quot;*.xml&quot;)方法加载；<br/>5.使用XPath搜索并处理。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=659</link>
			<title><![CDATA[SQLServer中使用XML模式强类型化XML数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[SQLServer]]></category>
			<pubDate>Tue,20 Jan 2009 01:31:22 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=659</guid>	
		<description><![CDATA[1.创建XML模式：Create&nbsp;XML&nbsp;SCHEMA&nbsp;COLLECTION；<br/>2.设置：用XML数据类型设置，把XML模式赋给一列；<br/>3.使用：对XML数据进行XML验证，只允许保存符合模式的数据。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=658</link>
			<title><![CDATA[SQLServer中设置XML索引]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[SQLServer]]></category>
			<pubDate>Tue,20 Jan 2009 00:22:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=658</guid>	
		<description><![CDATA[XML索引分为主XML索引和次XML索引；<br/>1.主XML索引：为了完整、一致的表示XML的值，格式：Create&nbsp;PRIMARY&nbsp;XML&nbsp;INDEX&nbsp;indexName&nbsp;ON&nbsp;tableName(columName);<br/>2.次XML索引：对于XPath和XQuery表达式，可以使用XML次索引；<br/>&nbsp;&nbsp;·&nbsp;PATH索引：使用exists()或query()函数，且通过XPath表达式访问XML元素时使用；<br/>&nbsp;&nbsp;·&nbsp;VALUE索引：使用XPath子轴或自轴表达式通过树形结构搜索时使用；<br/>&nbsp;&nbsp;·&nbsp;PROPERTY索引：使用value()函数时使用。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=657</link>
			<title><![CDATA[SQLServer中使用XML DML修改XML类型的数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[SQLServer]]></category>
			<pubDate>Mon,19 Jan 2009 23:24:09 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=657</guid>	
		<description><![CDATA[1.格式：表名.modify(&#39;...&#39;)；<br/>2.插入数据：insert关键字；<br/>3.删除数据：delete关键字；<br/>4.修改数据：replay&nbsp;value&nbsp;of关键字。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=656</link>
			<title><![CDATA[SQLServer中使用XQuery查询XML类型数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[SQLServer]]></category>
			<pubDate>Mon,19 Jan 2009 22:46:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=656</guid>	
		<description><![CDATA[1.格式：列名.query(&#39;...&#39;)；<br/>2.查询指定元素节点值：/Element，如：query(&#39;Exam/Course&#39;)查询Exam元素的子元素Course的节点值；<br/>3.迭代查询：for&nbsp;$item&nbsp;in&nbsp;/Element&nbsp;return&nbsp;{data(...)}<br/>&nbsp;&nbsp;其中$item表示一个变量，用每个迭代来设置；<br/>&nbsp;&nbsp;return后面指定显示格式；<br/>&nbsp;&nbsp;{data(...)}返回参数指定的节点值，参数可以为节点名，也可以为变量；<br/>4.“@”表示属性，如/Element/@Name，表示Element元素的Name属性；<br/>5.元素索引：集合中第一个元素用索引1访问，如/Element[1]表示第一个&lt;Element&gt;元素。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=655</link>
			<title><![CDATA[C#中ADO.NET读取SQLServer的XML类型数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,19 Jan 2009 21:23:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=655</guid>	
		<description><![CDATA[1.ADO.NET中可以用SqlDataReader对象读取SQLServer中XML类型的数据；<br/>2.GetSqlXml()方法返回一个SqlXml对象；<br/>3.SqlXml类的Value属性返回完整的XML；<br/>4.SqlXml类的CreateReader()方法返回一个XMLReader对象。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=654</link>
			<title><![CDATA[C#中创建SQLServer的触发器]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,19 Jan 2009 18:17:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=654</guid>	
		<description><![CDATA[1创建：使用VS2005的“触发器”模板创建；<br/>2.部署：通过VS2005部署自动在SQLServer中创建触发器；<br/>3.使用：在SQL语句中像其他触发器一样触发触发器。&nbsp;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=653</link>
			<title><![CDATA[C#中创建SQLServer的自定义函数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,19 Jan 2009 17:45:19 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=653</guid>	
		<description><![CDATA[1创建：使用VS2005的“用户定义的函数”模板创建；<br/>2.部署：通过VS2005部署自动在SQLServer中创建函数；<br/>3.使用：在SQL语句中像使用其他函数一样使用自定义函数。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=652</link>
			<title><![CDATA[C#中创建SQLServer的存储过程]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,19 Jan 2009 17:25:22 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=652</guid>	
		<description><![CDATA[1创建：使用VS2005的“存储过程”模板创建；<br/>2.部署：通过VS2005部署自动在SQLServer中创建存储过程；<br/>3.使用：在C#中使用命令对象调用存储过程。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=651</link>
			<title><![CDATA[C#中创建SQLServer的自定义聚合函数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,19 Jan 2009 16:04:56 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=651</guid>	
		<description><![CDATA[1.创建：使用VS2005的“聚合函数”模板创建，实现以下几个方法：<br/>&nbsp;&nbsp;Init()：给每个要聚合的新组初始化；<br/>&nbsp;&nbsp;Accumulate()：将每个值聚合；<br/>&nbsp;&nbsp;Merge()：将一个聚合组的结果添加到当前组中；<br/>&nbsp;&nbsp;Terminate()：返回结果；<br/>2.部署：通过VS2005部署自动在SQLServer中创建聚合函数；<br/>3.使用：在SQL语句中像使用其他聚合函数一样使用自定义聚合函数。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=650</link>
			<title><![CDATA[C#中创建SQLServer的自定义类型（UDT）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,19 Jan 2009 15:05:40 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=650</guid>	
		<description><![CDATA[1.创建：使用VS2005的“用户定义的类型”模板创建类；<br/>2.部署：通过VS2005部署自动在SQLServer中添加自定义类型，创建表时就可以使用该数据类型；<br/>3.使用：引用UDT程序集后，就可以像其他数据类型一样使用自定义类型。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=649</link>
			<title><![CDATA[SQLServer中取得主键标识（IDENTITY）值的三种方式]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[SQLServer]]></category>
			<pubDate>Sun,18 Jan 2009 22:05:52 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=649</guid>	
		<description><![CDATA[SQLServer中取得主键标识（IDENTITY）值的三种方式如下：<br/>1.@@IDENTITY：返回当前会话的所有域中任何表的最后一个IDENTITY值；<br/>2.SCOPE_IDENTITY()：返回当前会话和当前作用域中任何表的最后一个IDENTITY值；<br/>3.IDENT_CURRENT(tableName)：返回任何会话和任何作用域中指定表的最后一个IDENTITY值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=648</link>
			<title><![CDATA[C#中ADO.NET的DataSet读写XML文档]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,18 Jan 2009 19:54:27 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=648</guid>	
		<description><![CDATA[1.加载XML文档中的数据到DataSet中：<br/>&nbsp;&nbsp;使用ReadXML()方法，根据XML文档中的数据构建DataSet；<br/>2.将DataSet中的数据写入XML文档：<br/>&nbsp;&nbsp;使用WriteXML()方法，可以选择只输出数据，也可以输出数据和模式。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=647</link>
			<title><![CDATA[C#中ADO.NET使用数据适配器保存对DataSet的修改]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,18 Jan 2009 18:43:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=647</guid>	
		<description><![CDATA[1.为数据适配器SqlDataAdapter设置增删改查命令属性；<br/>2.修改DataSet：<br/>&nbsp;&nbsp;a.插入一个新行到DataTable中：通过NewRow()返回一个空行，设置数据，再添加到Rows集合中，也可以直接把一个数组传递给Rows.Add()方法；<br/>&nbsp;&nbsp;b.更新现有的行：通过带有列名或列号的DataRow索引器更新数据；<br/>&nbsp;&nbsp;c.删除一行数据：调用自身的Delete()方法；<br/>3.保存到数据库：使用SqlDataAdapter的Update()方法将修改后的DataSet保存到数据库中。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=646</link>
			<title><![CDATA[C#中ADO.NET在数据适配器上使用存储过程填充DataSet]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,18 Jan 2009 16:02:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=646</guid>	
		<description><![CDATA[1.创建一个数据适配器SqlDataAdapter；<br/>2.定义一个执行存储过程的SqlCommand；<br/>3.将SqlCommand赋给SqlDataAdapter的SelectCommand属性；<br/>4.执行SqlDataAdapter的Fill()方法，将数据填充到DataSet中。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=645</link>
			<title><![CDATA[C#中ADO.NET通过XML模式创建数据表（使用XSD文件生成代码）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,18 Jan 2009 15:21:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=645</guid>	
		<description><![CDATA[1.创建XSD文件；<br/>2.使用XSD.exe工具生成代码，该工具位于“Microsoft&nbsp;Visual&nbsp;Studio&nbsp;8\SDK\v2.0\Bin”目录下，命令格式：xsd&nbsp;*.xsd&nbsp;/d；<br/>3.利用生成的类创建数据表。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=644</link>
			<title><![CDATA[C#中ADO.NET的DataSet数据约束]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,18 Jan 2009 14:17:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=644</guid>	
		<description><![CDATA[1.主键：<br/>&nbsp;&nbsp;a.主键可以包含几列，作为DataColumn数组设置给DataTable的PrimaryKey属性；<br/>&nbsp;&nbsp;b.置主键之前应先创建唯一约束；<br/>2.外键：主要用于建立主/从关系；<br/>3.更新和删除约束：通过Rule枚举设置4种规则：<br/>&nbsp;&nbsp;CaseCade：默认设置，如果更新父记录，则把新键值设置到所有子记录上，如果删除父记录，也将删除子记录；<br/>&nbsp;&nbsp;None：不执行任何操作，不影响子数据表中的数据；<br/>&nbsp;&nbsp;SetDefault：如果定义了一个父记录，则所有子记录都将其外键设置为默认值；<br/>&nbsp;&nbsp;SetNull：所有子行都把主列设置为DBNull。<br/>&nbsp;&nbsp;&nbsp;&nbsp;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=643</link>
			<title><![CDATA[C#中ADO.NET的DataSet数据关系]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,17 Jan 2009 21:57:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=643</guid>	
		<description><![CDATA[1.创建关系：DataRelation(string&nbsp;relationName,&nbsp;DataColumn&nbsp;parentColumn,&nbsp;DataColumn&nbsp;childColumn);<br/>2.添加关系：DataSet实例的Relations.Add()方法；<br/>3.根据关系遍历：<br/>&nbsp;&nbsp;a.从父数据行中找到子数据行：GetChildRows(string&nbsp;relationName)；<br/>&nbsp;&nbsp;b.从子数据行中找到父数据行：GetParentRows(string&nbsp;relationName)。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=642</link>
			<title><![CDATA[C#中ADO.NET创建数据表的三种方式]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,17 Jan 2009 18:45:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=642</guid>	
		<description><![CDATA[创建数据表的三种方式如下：<br/>1.通过运行库生成；<br/>2.通过自定义方式生成；<br/>3.使用XML模式生成器生成。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=641</link>
			<title><![CDATA[C#中ADO.NET操作DataSet的数据行]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,17 Jan 2009 17:46:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=641</guid>	
		<description><![CDATA[1.使用SqlDataAdapter类选择数据并填充到DataSet中；<br/>2.使用DataSet的索引器访问数据行上的值；<br/>3.版本（Version）：<br/>&nbsp;&nbsp;Current：当前值；<br/>&nbsp;&nbsp;Default：默认值；<br/>&nbsp;&nbsp;Original：最初从数据库中取出的值；<br/>&nbsp;&nbsp;Proposed：对列进行逐步修改时，可以检测到这个已改变的值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=640</link>
			<title><![CDATA[C#中使用ADO.NET的数据读取器快速访问数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,17 Jan 2009 14:40:36 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=640</guid>	
		<description><![CDATA[1.数据读取器不能直接实例化，实例是调用ExecuteReader()方法后从相应的数据库的命令对象中返回的；<br/>2.访问数据有以下几种方式：<br/>&nbsp;&nbsp;a.数字索引器：类型不安全，速度较快，如：object&nbsp;o&nbsp;=&nbsp;reader[0];<br/>&nbsp;&nbsp;b.文本索引器，类型不安全，先查找列号，再使用数字索引器访问，速度较慢，如：object&nbsp;o&nbsp;=&nbsp;reader[&quot;id&quot;];<br/>&nbsp;&nbsp;c.Get方式，类型安全，速度最快，如：int&nbsp;i&nbsp;=&nbsp;&nbsp;reader.GetInt32(0);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=639</link>
			<title><![CDATA[插入排序（Ins&#101;rtion Sort）算法【C语言实现】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Algorithm]]></category>
			<pubDate>Fri,16 Jan 2009 23:47:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=639</guid>	
		<description><![CDATA[基本思想：<br/>1.类似于整理扑克牌，开始左手中有一张牌，右手依次从桌上拿一张牌，从右到左依次与手中的牌比较，插入合适的位置，保证手中的牌总是有序的。<br/>2.数组arr[1...n]，j开始指向第二个元素，将数组分成两部分，arr[1]是有序数组，arr[2...n]是无序数组；<br/>3.将arr[j]由右向左依次与有序数组arr[1...j-1]中的元素比较，插入合适的位置，此时arr[1...j]是有序数组，arr[j+1...n]是无序数组；<br/>4.j从2循环递增到n,重复上述步骤，结果arr[1...n]为有序数组，完成排序。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=638</link>
			<title><![CDATA[C#中使用ADO.NET调用返回输出参数的存储过程]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,16 Jan 2009 23:13:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=638</guid>	
		<description><![CDATA[1.存储过程包含输出参数时，需要在程序中定义；<br/>2.使用UpdateRowSource枚举表示数据通过输出参数从存储过程中返回；<br/>3.执行命令后读取输出参数。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=637</link>
			<title><![CDATA[C#中使用ADO.NET调用没有返回值的存储过程]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,16 Jan 2009 22:33:40 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=637</guid>	
		<description><![CDATA[1.创建命令对象；<br/>2.定义存储过程名；<br/>3.给每个参数添加参数定义；<br/>4.执行命令。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=636</link>
			<title><![CDATA[C#中使用ADO.NET命令操作数据库]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,16 Jan 2009 21:12:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=636</guid>	
		<description><![CDATA[1.命令就是在数据库上执行的SQL文本字符串、存储过程或返回表中所有列和所有行的表名；<br/>2.执行命令有以下几种方法：<br/>&nbsp;&nbsp;ExecuteNonQuery()：只返回命令操作的行数；<br/>&nbsp;&nbsp;ExecuteReader()：返回一个类型化的DataReader对象，用于迭代返回的记录；<br/>&nbsp;&nbsp;ExecuteScalar()：返回一个结果，如果只需返回一列，最好使用此方法；<br/>&nbsp;&nbsp;ExecuteXMLReader()：返回XML代码段；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=635</link>
			<title><![CDATA[C#中ADO.NET的事务处理]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,16 Jan 2009 18:29:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=635</guid>	
		<description><![CDATA[1.对数据库进行多次更新，这些更新必须在事务处理的范围内进行；<br/>2.在数据库连接对象上调用BeginTransaction()方法，返回实现IDbTransaction接口的对象；<br/>3.使用Commit()方法提交事务。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=634</link>
			<title><![CDATA[C#中释放数据库连接资源]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,16 Jan 2009 17:54:56 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=634</guid>	
		<description><![CDATA[1.确保释放数据库连接资源的两种方式如下：<br/>&nbsp;&nbsp;a.使用try...catch...finally语句块，在finally块中关闭连接；<br/>&nbsp;&nbsp;b.使用using语句块，无论如何退出，都会自动关闭连接；<br/>2.最好的方法是组合使用以上两种方式。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=633</link>
			<title><![CDATA[C#中使用ADO.NET连接SqlServer数据库]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,16 Jan 2009 16:51:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=633</guid>	
		<description><![CDATA[1.使用ADO.NET包的SqlConnection类；<br/>2.连接字符串：@&quot;server=.\sqlexpress;&nbsp;integrated&nbsp;security=SSPI;&nbsp;database=msdb&quot;<br/>&nbsp;&nbsp;其中server为服务器名，SqlServer企业版为“(local)”；SqlServerExpress为“./sqlexpress”，<br/>&nbsp;&nbsp;integrated&nbsp;security=SSPI为使用Window身份验证，最好不要使用用户名、密码连接，<br/>&nbsp;&nbsp;database为数据库实例名；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=632</link>
			<title><![CDATA[C#中创建应用程序域加载应用程序集]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,15 Jan 2009 18:50:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=632</guid>	
		<description><![CDATA[1.AppDomain类用于创建和中断应用程序域，加载和卸载应用程序集和类、枚举域中的程序集和线程；<br/>2.CreateDomain方法用于创建一个新的应用程序域；<br/>3.加载应用程序集的两个方法：<br/>&nbsp;&nbsp;ExecuteAssembly(&quot;filename&quot;);<br/>&nbsp;&nbsp;CreateInstance();]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=631</link>
			<title><![CDATA[C#中使用线程池ThreadPool创建线程]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,14 Jan 2009 22:53:54 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=631</guid>	
		<description><![CDATA[1.ThreadPool类会在线程的托管池中重用已有的线程，使用完线程后，线程就会返回线程池，供以后使用；<br/>2.使用ThreadPool类创建线程的两种方法：<br/>&nbsp;&nbsp;ThreadPool.QueueUserWorkItem(new&nbsp;WaitCallback(StartMethod));<br/>&nbsp;&nbsp;ThreadPool.QueueUserWorkItem(StartMethod);<br/>3.以下情况应使用ThreadPool类：<br/>&nbsp;&nbsp;a.要以最简单的方式创建和删除线程；<br/>&nbsp;&nbsp;b.优先考虑应用程序使用线程的性能；<br/>4.以下情况应使用Thread类：<br/>&nbsp;&nbsp;a.要控制所创建线程的优先级；<br/>&nbsp;&nbsp;b.希望所使用的线程维护其标识，该标识要与线程一起进行各种操作，经过不同的时间段；<br/>&nbsp;&nbsp;c.所使用的线程寿命长。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=630</link>
			<title><![CDATA[C#线程同步的死锁]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,14 Jan 2009 20:32:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=630</guid>	
		<description><![CDATA[1.线程同步：使用lock关键字锁定资源，格式lock(对象引用){...}；<br/>2.当两个线程都需要访问被互锁的资源时发生死锁现象。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=629</link>
			<title><![CDATA[C#中线程的优先级]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,14 Jan 2009 18:37:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=629</guid>	
		<description><![CDATA[1.一般情况下，优先级较高的线程在工作，不会给优先级较低的线程分配任何时间片（实际上只有优先级相差很大的情况下才是这样）；<br/>2.C#中可以通过ThreadPriority类设置5个级别的优先级：Highest、AboveNormal、Normal、BelowNormal、Lowest；<br/>3.设置优先级：myThread.Priority&nbsp;=&nbsp;ThreadPriority.PriorityValue。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=628</link>
			<title><![CDATA[C#中线程的创建和启动]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,14 Jan 2009 18:17:33 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=628</guid>	
		<description><![CDATA[1.实例化System.Threading.Thread对象；<br/>2.构造函数的参数是一个委托：System.Threading.ThreadStart，也可以使用匿名方法；<br/>3.入口点方法不能带有任何参数，也不能有返回值；<br/>4.使用Start()方法启动线程。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=627</link>
			<title><![CDATA[C#中自定义异常]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,14 Jan 2009 16:43:00 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=627</guid>	
		<description><![CDATA[1.自定义异常类派生于System.ApplicationException类；<br/>2.不需要添加任何方法，只需要执行构造函数，调用基类构造函数。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=626</link>
			<title><![CDATA[C#中使用嵌套try块处理异常]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,14 Jan 2009 16:36:00 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=626</guid>	
		<description><![CDATA[1.在外层try块内，内层try块外抛出的异常由外层catch块捕捉处理；<br/>2.在内层try块内抛出的异常，如果内层的catch块中有合适的处理程序，则由内层catch块捕捉处理，处理后外层catch块不会再捕获此异常，<br/>&nbsp;&nbsp;如果内层catch块中没有合适的处理程序，则依次搜索外层catch块，直到被捕捉处理；<br/>3.在catch和fianally块中可以抛出异常，异常由外层catch块捕获处理；<br/>4.对于每个.NET程序，运行库都会把整个程序放在一个最外层的try块中，处理任何类型的异常。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=625</link>
			<title><![CDATA[C#中捕获异常]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,14 Jan 2009 01:24:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=625</guid>	
		<description><![CDATA[1.捕获异常需要使用三种不同类型的代码块：<br/>&nbsp;&nbsp;try块：程序的正常操作部分，可能遇到某些错误；<br/>&nbsp;&nbsp;catch块：处理try块中遇到的各种错误；<br/>&nbsp;&nbsp;finally块：清理资源或执行其他操作，不论是否产生异常，最后都要执行；<br/>2.可以省略finally块，可以使用任意多个catch块，可以省略catch块。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=624</link>
			<title><![CDATA[C#中通过反射查看程序集的特性信息]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,13 Jan 2009 21:12:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=624</guid>	
		<description><![CDATA[1.特性允许把定制的元数据与程序元素联系起来，这些元数据是在编译时创建的，并嵌入到程序中；<br/>2.在运行期间可以使用反射的一些功能检查这些元数据。<br/>3.实例：<br/>&nbsp;&nbsp;WhatsNewAttribute.dll：定义特性，&nbsp;&nbsp;编译：csc&nbsp;/t:library&nbsp;WhatsNewAttributes.cs；<br/>&nbsp;&nbsp;VectorClass.dll：应用特性，编译：csc&nbsp;/reference:WhatsNewAttributes.dll&nbsp;VectorClass.cs；<br/>&nbsp;&nbsp;LookUpWhatsNew.exe：编译：csc&nbsp;/reference:WhatsNewAttributes.dll&nbsp;/reference:VectorClass.dll&nbsp;LookUpWhatsNew.cs。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=623</link>
			<title><![CDATA[C#中通过Assembly类访问程序集信息]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,13 Jan 2009 02:28:27 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=623</guid>	
		<description><![CDATA[C#中通过Assembly类可以访问程序集信息.<br/>1.允许访问给定程序集的元元素，包含可以加载和执行程序集的方法；<br/>2.加载程序集：使用静态方法Assembly.Load(程序集名称)或Assembly.LoadFrom(程序集完整路径名)；<br/>3.属性：<br/>&nbsp;&nbsp;FullName：程序集显示名称；<br/>3.方法：<br/>&nbsp;&nbsp;GetTypes()：获取程序集中定义的类型。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=622</link>
			<title><![CDATA[C#中通过Type类访问数据类型信息]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,13 Jan 2009 02:02:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=622</guid>	
		<description><![CDATA[C#中通过Type类可以访问任意数据类型信息。<br/>1.获取给定类型的Type引用有3种方式：<br/>&nbsp;&nbsp;a.使用typeof运算符，如Type&nbsp;t&nbsp;=&nbsp;typeof(int);<br/>&nbsp;&nbsp;b.使用GetType()方法，如int&nbsp;i;Type&nbsp;t&nbsp;=&nbsp;i.GetType();<br/>&nbsp;&nbsp;c.使用Type类的静态方法GetType()，如Type&nbsp;t&nbsp;=Type.GetType(&quot;System.Double&quot;);<br/>2.Type的属性：<br/>&nbsp;&nbsp;Name：数据类型名；<br/>&nbsp;&nbsp;FullName：数据类型的完全限定名，包括命名空间；<br/>&nbsp;&nbsp;Namespace：数据类型的命名空间；<br/>&nbsp;&nbsp;BaseType：直接基本类型；<br/>&nbsp;&nbsp;UnderlyingSystemType：映射类型；<br/>3.Type的方法：<br/>&nbsp;&nbsp;GetMethod()：返回一个方法的信息；<br/>&nbsp;&nbsp;GetMethods()：返回所有方法的信息。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=621</link>
			<title><![CDATA[C#中自定义特性]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,13 Jan 2009 01:02:10 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=621</guid>	
		<description><![CDATA[C#中自定义的特性不会影响编译过程，但是特性在应用于程序元素时，可以在编译好的元素中用作元数据。<br/>1.定义特性：[AttributeUsage(AttributeTargets.Property,&nbsp;AllowMultiple=false,Inherited=false)]<br/>&nbsp;&nbsp;AttributeTargets是枚举类型，指定把特性应用到程序的什么元素上，<br/>&nbsp;&nbsp;AllowMultiple表示一个特性是否可以多次应用到用一项上，<br/>&nbsp;&nbsp;Inherited表示特性是否可以自动应用到所有派生的类或接口上，<br/>&nbsp;&nbsp;类实现Attribute接口；<br/>1.指定特性参数：[NameAttribute(args,&nbsp;name=value)]，当编译器发现一个特性Name时，会搜索NameAttribute类，如果不以“Attribute”结尾，就在特性名后加上“Attribute”。<br/>&nbsp;&nbsp;args：查找该特性中带这些参数的构造函数，<br/>&nbsp;&nbsp;name=value：指定可选参数的名称和值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=620</link>
			<title><![CDATA[C#中自定义集合]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,12 Jan 2009 23:55:36 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=620</guid>	
		<description><![CDATA[1.集合必须实现System.Collections.IEnumerable接口；<br/>&nbsp;&nbsp;IEnumerable接口定义了一个方法：IEnumerable&nbsp;GetEnumerator()，返回枚举对象；<br/>2.枚举对象实现System.Collections.IEnumerator接口；<br/>&nbsp;&nbsp;IEnumerator接口定义了三个方法：<br/>&nbsp;&nbsp;object&nbsp;Current&nbsp;{get;}：获取当前元素；<br/>&nbsp;&nbsp;bool&nbsp;MoveNext()：移动到下一个元素；<br/>&nbsp;&nbsp;void&nbsp;ReSet()：返回到集合开头。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=619</link>
			<title><![CDATA[C#中的数组段ArraySegment<T>]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,12 Jan 2009 16:26:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=619</guid>	
		<description><![CDATA[1.ArraySegment&lt;T&gt;表示数组中的一段，包含了偏移量和元素个数；<br/>2.可以作为方法参数传递，减少参数个数；<br/>3.数组段中的元素改变了，原数组中的相应元素也会改变。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=618</link>
			<title><![CDATA[C#中的泛型结构Nullable<T>]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,12 Jan 2009 16:01:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=618</guid>	
		<description><![CDATA[1.泛型结构Nullable&lt;T&gt;是一种可空类型；<br/>2.属性：<br/>&nbsp;&nbsp;HasValue：判断是否存在值；<br/>&nbsp;&nbsp;Value：返回T类型的值。<br/>3.简写形式，值类型后加“?”运算符，如int?；<br/>4.运算：两个可空变量运算，只要有一个值为空，结果就为空；<br/>5.转换：<br/>&nbsp;&nbsp;a.非可空类型转换为可空类型时不需要强制类型转换，可以隐式转换成功；<br/>&nbsp;&nbsp;b.可空类型转换为非可空类型时需要显示转换，如果将null转换为非可空类型，则会抛出异常；<br/>&nbsp;&nbsp;c.使用接合运算符“??”防止可空类型为null。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=617</link>
			<title><![CDATA[C#中的泛型委托]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,12 Jan 2009 02:08:04 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=617</guid>	
		<description><![CDATA[通过泛型委托，委托的参数可以在以后定义]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=616</link>
			<title><![CDATA[C#中使用wh&#101;re子句限制泛型方法的泛型类型]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,12 Jan 2009 02:04:04 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=616</guid>	
		<description><![CDATA[C#中使用where子句限制泛型方法的泛型类型。<br/>1.要求泛型类型实现一个接口或派生于某个基类；<br/>2.不能定义必须由泛型类型实现的运算符。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=615</link>
			<title><![CDATA[C#中泛型方法的声明和调用]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,11 Jan 2009 23:14:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=615</guid>	
		<description><![CDATA[1.声明：泛型类型用方法声明来定义，如void&nbsp;Method&lt;T&gt;(ref&nbsp;T&nbsp;arg)；<br/>2.调用：<br/>&nbsp;&nbsp;a.可以把泛型方法赋予方法调用，如Method&lt;int&gt;(ref&nbsp;i);<br/>&nbsp;&nbsp;b.也可以像非泛型方法一样调用，如Method(ref&nbsp;i);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=614</link>
			<title><![CDATA[C#中自定义泛型]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,11 Jan 2009 22:48:40 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=614</guid>	
		<description><![CDATA[1.定义：类似于一般类的定义，在类名后加泛型类型声明&lt;T&gt;，格式如下：class&nbsp;MyGeneric&lt;T&gt;{...}，可以在类中把泛型类型用于字段成员和方法参数；<br/>2.默认值：不能将null赋值给泛型类型，可以使用default关键字，如default(T)；<br/>3.约束：必须定义一个where子句，指定泛型可用的方法和属性，where子句可以要求泛型类型实现一个接口或派生于某个基类。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=613</link>
			<title><![CDATA[C#中的双向链表LinkedList<T>]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,11 Jan 2009 18:38:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=613</guid>	
		<description><![CDATA[C#中的LinkedList&lt;T&gt;是一个双向链表，其元素指向它前面和后面的元素。<br/>1.优点：插入元素速度快，只需将前一个元素的Next和后一个元素的Previous指向被插入的元素；<br/>2.缺点：链表只能一个接着一个的访问，速度较慢；<br/>3.常用方法和属性：<br/>&nbsp;&nbsp;AddFirst：在头部插入新节点；<br/>&nbsp;&nbsp;AddLast：在尾部插入新节点；<br/>&nbsp;&nbsp;AddBefore：在指定节点前插入新节点；<br/>&nbsp;&nbsp;AddAfter：在指定节点后插入新节点；<br/>&nbsp;&nbsp;First：第一个节点；<br/>&nbsp;&nbsp;Last：最后一个节点。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=612</link>
			<title><![CDATA[C#中的Queue<T>]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,11 Jan 2009 01:36:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=612</guid>	
		<description><![CDATA[1.Queue&lt;T&gt;与Queue功能类似；<br/>2.常用方法：<br/>&nbsp;&nbsp;Enqueue：入队；<br/>&nbsp;&nbsp;Dequeue：出队。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=611</link>
			<title><![CDATA[C#中的List<T>]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,11 Jan 2009 00:53:36 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=611</guid>	
		<description><![CDATA[1.C#中的List&lt;T&gt;类似于ArrayList。<br/>2.List&lt;T&gt;常用的方法如下：<br/>&nbsp;&nbsp;Add：添加元素；<br/>&nbsp;&nbsp;Find、FindAll：查找元素，参数为一个委托Predicate&lt;T&gt;，引用一个谓词方法；<br/>&nbsp;&nbsp;ForEach：对每个元素执行操作，使用Action&lt;T&gt;委托；<br/>&nbsp;&nbsp;Sort：对元素排序，无参方法只能在元素实现了IComparable接口时使用，还可以使用Comparison&lt;T&gt;委托或IComparer&lt;T&gt;接口排序；<br/>&nbsp;&nbsp;ConvertAll：类型转换，使用Convert委托。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=610</link>
			<title><![CDATA[C#中泛型的优点]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,10 Jan 2009 18:44:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=610</guid>	
		<description><![CDATA[泛型主要有以下几个优点：<br/>1.性能高：定义数据类型，不需要类型转换，避免拆装箱带来的性能损失；<br/>2.类型安全：定义允许使用的数据类型，在编译时检查类型错误，及早发现错误。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=609</link>
			<title><![CDATA[C#中的字典（Hashtable）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,10 Jan 2009 17:59:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=609</guid>	
		<description><![CDATA[1.字典（Hashtable）可以按照某个键来访问元素，这个键可以是任意的数据类型；<br/>2.创建：Hashtable&nbsp;dictionaries&nbsp;=&nbsp;new&nbsp;Hashtable(int&nbsp;size);<br/>3.常用方法和属性：<br/>&nbsp;&nbsp;Add(object&nbsp;key,&nbsp;object&nbsp;data)：添加对象，第一个参数是键，第二个参数是数据；<br/>&nbsp;&nbsp;Remove(object&nbsp;id)：删除指定索引的数据项；<br/>&nbsp;&nbsp;Count：返回元素的个数；<br/>4.获取数据：dictionaries[id]，使用键作为索引查找数据。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=608</link>
			<title><![CDATA[C#中的SortedList]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,10 Jan 2009 00:36:40 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=608</guid>	
		<description><![CDATA[1.C#中的SortedList由键值对组成。<br/>2.常用方法：<br/>&nbsp;&nbsp;Add：将元素存入SortedList；<br/>&nbsp;&nbsp;Clear：删除SortedList中所有的元素；<br/>&nbsp;&nbsp;ContainsKey：根据键确定某个元素是否在SortedList中；<br/>&nbsp;&nbsp;ContainsValue：根据值确定某个元素是否在SortedList中；<br/>&nbsp;&nbsp;GetKey：返回指定键的元素值；<br/>&nbsp;&nbsp;GetKeyList：返回键的集合；<br/>&nbsp;&nbsp;GetValueList：返回值的集合；<br/>&nbsp;&nbsp;Remove：根据键返回对应的元素，并删除；<br/>&nbsp;&nbsp;RemoveAt：根据索引返回对应的元素，并删除。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=607</link>
			<title><![CDATA[C#中的队列（Queue）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,09 Jan 2009 23:53:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=607</guid>	
		<description><![CDATA[1.C#中的队列与栈相似，区别是队列遵循先进先出（FIFO）原则。<br/>2.常用方法：<br/>&nbsp;&nbsp;Enqueue：入队，将元素存入队列；<br/>&nbsp;&nbsp;Dequeue：出队，返回队列第一个元素，并从队列中删除；<br/>&nbsp;&nbsp;Peek：出队，返回队列第一个元素，不从队列中删除；<br/>&nbsp;&nbsp;Clear：删除队列的所有元素；<br/>&nbsp;&nbsp;Contains：判断指定元素是否在队列中。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=606</link>
			<title><![CDATA[C#中的栈（Stack）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,09 Jan 2009 23:34:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=606</guid>	
		<description><![CDATA[C#中的栈适合处理程序使用完就删除的临时数据项。<br/>1.原则：后进先出（LIFO）；<br/>2.常用方法：<br/>&nbsp;&nbsp;Push：入栈，向栈中存入元素；<br/>&nbsp;&nbsp;Pop：出栈，返回栈顶元素，并从集合中删除；<br/>&nbsp;&nbsp;Peek：返回栈顶元素，不从集合中删除；<br/>&nbsp;&nbsp;Clear：删除栈中所有元素。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=605</link>
			<title><![CDATA[C#中的ArrayList]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,09 Jan 2009 21:44:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=605</guid>	
		<description><![CDATA[C#中的ArrayList类似于数组，不同的是ArrayList的容量可以增大。<br/>1.实例化：<br/>ArrayList&nbsp;arr&nbsp;=&nbsp;new&nbsp;ArrayList();或ArrayList&nbsp;basketballTeams&nbsp;=&nbsp;new&nbsp;ArrayList(int&nbsp;size);<br/>2.常用字段和方法：<br/>&nbsp;&nbsp;Count：元素数量；<br/>&nbsp;&nbsp;Add(object&nbsp;o)：添加元素；<br/>&nbsp;&nbsp;Insert(int&nbsp;position,&nbsp;object&nbsp;o)：在指定位置上插入元素；<br/>&nbsp;&nbsp;RemoveAt(int&nbsp;position)：删除指定位置上的元素；<br/>&nbsp;&nbsp;Remove(object&nbsp;o)：删除指定对象,需要搜索，花费时间较长；<br/>&nbsp;&nbsp;AddRange(ICollection&nbsp;c)：添加集合；<br/>&nbsp;&nbsp;RemoveRange(int&nbsp;opsition1,&nbsp;int&nbsp;opsition2)：删除元素范围；<br/>&nbsp;&nbsp;GetRange(int&nbsp;opsition1,&nbsp;int&nbsp;opsition2)：将指定范围的元素复制到一个新的ArrayList中；<br/>3.没有将ArrayList转换为数组的方法，需要手工转换。<br/>&nbsp;&nbsp;<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=604</link>
			<title><![CDATA[C#中使用正则表达式匹配字符串]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,08 Jan 2009 22:54:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=604</guid>	
		<description><![CDATA[C#中使用正则表达式匹配字符串的方法如下：<br/>1.使用System.Text.RegularExpressions命名空间；<br/>2.使用Matches()方法匹配字符串，格式如下：<br/>MatchCollection&nbsp;Matches&nbsp;=&nbsp;Regex.Matches(Str,&nbsp;Pattern,&nbsp;RegexOptions.IgnoreCase&nbsp;|&nbsp;RegexOptions.ExplicitCapture);<br/>其中Str表示输入字符串，Pattern表示匹配模式，RegexOptions.IgnoreCase表示忽略大小写，RegexOptions.ExplicitCapture表示改变收集匹配方式。<br/>3.匹配结果保存在MatchCollection集合中，可以通过循环遍历结果集取出Match对象的结果。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=603</link>
			<title><![CDATA[C#中使用自定义格式字符串格式化字符]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,08 Jan 2009 19:31:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=603</guid>	
		<description><![CDATA[1.可以使用格式字符串格式化的对象必须实现IFormattable接口；<br/>2.IFormattable接口定义了一个方法：<br/>&nbsp;&nbsp;string&nbsp;ToString(string&nbsp;format,&nbsp;IFormatProvider&nbsp;formatProvider);<br/>&nbsp;&nbsp;其中第一个参数format为格式化字符串，第二个参数提供了文化背景等信息，通常不考虑。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=602</link>
			<title><![CDATA[C#中创建字符串的两种方式——string和StringBuilder]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,08 Jan 2009 17:22:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=602</guid>	
		<description><![CDATA[C#中创建字符串有以下两种方式：<br/>1.String：<br/>a.使用string关键字创建字符串实际上是创建了System.String对象；<br/>b.一旦对字符串对象进行初始化，该字符串对象就不能改变，修改string内容的方法和运算符实际上是创建了一个新的字符串；<br/>c.字符串操作效率较低；<br/><br/>2.StringBuilder：<br/>a.使用System.Text.StringBuilder类创建字符串对象；<br/>b.只有执行扩展字符串容量的操作，才会给字符串分配需要的新内存；<br/>c.添加子字符串和替换字符的效率高。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=601</link>
			<title><![CDATA[C#中基于堆栈的数组]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,08 Jan 2009 14:24:52 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=601</guid>	
		<description><![CDATA[C#中基于堆栈的数组性能高，系统开销低。<br/>1.创建：使用stackalloc关键字，格式：数据类型*&nbsp;指针变量名&nbsp;=&nbsp;stackalloc&nbsp;数据类型[数据项数]；<br/>2.指针变量指向数组第一个元素，可以通过指针的加减运算访问数组的其他元素；<br/>3.可以使用数组的形式表示堆栈数组，如p[1]；<br/>4.堆栈数组不会产生下标越界异常，但最好不要超出数组分配的内存区域，以免发生无法预料的错误。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=600</link>
			<title><![CDATA[C#中结构和类成员指针的内存分配]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,08 Jan 2009 02:29:01 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=600</guid>	
		<description><![CDATA[通过结构和类成员指针的操作，观察内存分配情况：<br/>1.结构、类成员是按顺序排列在内存中的；<br/>2.通过指针操作可以方便的指向任意变量。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=599</link>
			<title><![CDATA[C#中指针操作内存分配]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,08 Jan 2009 02:21:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=599</guid>	
		<description><![CDATA[通过简单的指针操作，观察内存分配情况：<br/>1.按顺序逐个排列变量；<br/>2.内存块总是按照4字节的倍数分配。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=598</link>
			<title><![CDATA[C#中的类成员指针]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,07 Jan 2009 23:35:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=598</guid>	
		<description><![CDATA[1.指针不能指向类，是因为垃圾收集器不维护指针的任何信息，只维护所引用的信息，因此指向类的指针会使垃圾收集器不能正常工作；<br/>2.解决办法是使用fixed关键字告诉垃圾收集器，类实例的某些成员有指向它们的指针，这些实例不能移动；<br/>3.格式：fixed(定义和初始化指针变量){运行此处代码时不能移动对象}；<br/>4.可以在同一个代码块前放置多个fixed语句，可以嵌套，也可以在同一个fixed语句中初始化多个变量，但是类型必须相同。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=597</link>
			<title><![CDATA[C#中使用指针成员访问运算符访问结构]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,07 Jan 2009 23:11:08 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=597</guid>	
		<description><![CDATA[1.结构指针的工作方式与预定义值类型指针一样，但是结构中不能包含任何引用类型；<br/>2.可以使用指针成员访问运算符（-&gt;）访问结构中的字段。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=596</link>
			<title><![CDATA[C#中指针的加减运算]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,07 Jan 2009 22:49:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=596</guid>	
		<description><![CDATA[指针的加减运算是智能的运算。<br/>1.可以对指针使用如下运算符：+、-、+=、-=、++、--，右边操作数必须是long或ulong类型；<br/>2.对T类型指针P进行整数加减X时，相当于P+(-)X*(sizeof(T))，即加减数要乘以类型的字节数；<br/>3.两个相同数据类型T的指针（P1、P2）的差&nbsp;=&nbsp;(P1-P2)&nbsp;/&nbsp;sizeof(T)，即两个地址相减后整除该类型字节数。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=595</link>
			<title><![CDATA[C#中的void指针]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,07 Jan 2009 22:25:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=595</guid>	
		<description><![CDATA[1.void指针不指向任何数据类型；<br/>2.主要用途是调用含有void*类型的API函数；<br/>3.不能使用“*”间接引用void指针。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=594</link>
			<title><![CDATA[C#中指针的转换]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,07 Jan 2009 22:06:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=594</guid>	
		<description><![CDATA[指针有一下两种转换形式：<br/>1.指针与整型的转换：<br/>&nbsp;&nbsp;a.指针实际上存储了一个表示地址的整数，所以任何指针都可以转换为整型；<br/>&nbsp;&nbsp;b.转换必须显式指定；<br/>&nbsp;&nbsp;c.指针转换为整型主要目的是为了显示指针指向的地址；<br/>&nbsp;&nbsp;d.32位系统上，只有转换为uint、long、ulong类型才不会溢出，64位系统需要转换为ulong类型，checked关键字不能用于涉及指针的转换。<br/>2.指针类型之间的转换：<br/>&nbsp;&nbsp;a.转换必须显式指定；<br/>&nbsp;&nbsp;b.如果类型内存区域大小不同，转换后不能得到一个有意义的值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=593</link>
			<title><![CDATA[C#中指针的声明和运算]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,07 Jan 2009 18:38:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=593</guid>	
		<description><![CDATA[1.指针必须在unsafe代码块中使用；<br/>2.声明：数据类型*&nbsp;变量名;(*表示声明一个指针，&nbsp;通常在变量名前加前缀“p”表示变量为指针）；<br/>3.运算符：<br/>&nbsp;&nbsp;&：寻址运算符，取地址，把一个值数据类型转换为指针；<br/>&nbsp;&nbsp;*：间接寻址运算符（取消引用运算符），把一个指针类型转换为值数据类型；<br/>4.可以把指针声明为任意一种数据类型，也可以声明为一个结构，但是不能把指针声明为一个类或者数组。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=592</link>
			<title><![CDATA[C#中的不安全代码]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,07 Jan 2009 18:15:48 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=592</guid>	
		<description><![CDATA[1.标记不安全代码的关键字为：unsafe；<br/>2.可以标记整个类或结构；<br/>3.可以标记方法，无论该方法是否应用了其他修饰符（如静态方法、虚拟方法等），该方法可以使用指针作为参数；<br/>4.可以在方法中的标记一个代码块；<br/>5.可以标记成员变量，但是不能标记局部变量；<br/>6.编译：csc&nbsp;/unsafe&nbsp;源文件名.cs。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=591</link>
			<title><![CDATA[C#中释放未托管资源的两种方式——析构函数和IDisposable接口]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Wed,07 Jan 2009 18:14:01 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=591</guid>	
		<description><![CDATA[1.析构函数：<br/>&nbsp;&nbsp;格式：~类名(){...}：函数名与类名相同，没有返回类型，没有参数，没有访问修饰符；<br/>&nbsp;&nbsp;利用运行库强制执行，具有不确定性，可能会给运行库增加不可接受的开销；<br/>2.IDisposable接口：<br/>&nbsp;&nbsp;System.IDisposable接口为释放未托管资源提供了确定的机制，声明了一个无参的Dispose()方法；<br/>&nbsp;&nbsp;允许类的用户控制释放资源的时间，需要确保执行Dispose()方法。<br/>3.两种方式结合使用：大多数程序都能正确调用Dispose()方法，实现IDisposable接口，同时把析构函数作为一种安全机制，以防没有调用Dispose()方法。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=590</link>
			<title><![CDATA[C#中使用多播委托调用多个方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,06 Jan 2009 18:42:57 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=590</guid>	
		<description><![CDATA[多播委托可以连续调用多个方法。<br/>1.委托声明返回值必须为void；<br/>2.使用“+”、“+=”添加方法，“-”、“-=”删除方法。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=589</link>
			<title><![CDATA[C#中使用委托实现对象的冒泡排序]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,06 Jan 2009 18:09:46 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=589</guid>	
		<description><![CDATA[对象使用冒泡法排序时，不能直接比较对象大小；<br/>可以通过在对象中定义一个方法来比较大小，而每个对象的比较方法是不同的；<br/>这时就要把对象的比较方法使用委托作为参数传递给排序方法。<br/>&nbsp;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=588</link>
			<title><![CDATA[C#中使用委托将方法组合到数组中实现循环调用方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,06 Jan 2009 17:00:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=588</guid>	
		<description><![CDATA[委托就像类一样，可以实例化，也可以将委托实例放在数组中；<br/>这样数组中的每个元素都初始化为不同的方法，从而在循环中调用方法。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=587</link>
			<title><![CDATA[C#中使用匿名方法作为委托参数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,06 Jan 2009 16:17:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=587</guid>	
		<description><![CDATA[委托一般都是使用方法的签名定义的，但是使用委托还有另一种方式：使用匿名方法做为委托参数。<br/>1.声明与一般的委托没有任何区别；<br/>2.实例化时需要使用一个delegate(参数列表)代码块；<br/>3.优点：方仅在委托使用时才定义，减少了系统开销；<br/>4.匿名方法中不能使用跳转语句跳转到该匿名方法的外部，外部的跳转语句也不能跳转到内部；<br/>5.匿名方法内部不能访问不安全代码，不能在匿名方法外部使用ref和out参数，可以使用外部定义的变量。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=586</link>
			<title><![CDATA[C#中委托的声明和使用]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Tue,06 Jan 2009 15:33:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=586</guid>	
		<description><![CDATA[委托是一种特殊的对象类型，将方法的细节封装在一个新类型的对象中，把方法的细节作为参数传递给其他方法。<br/>1.声明委托：delegate&nbsp;返回类型&nbsp;MyDelegate(object&nbsp;arg1,obect&nbsp;arg2,..object&nbsp;argN);参数为委托中包含方法的参数，修饰符可以使用public、private、protected等关键字；<br/>2.委托的构造函数总是带有一个参数，这个参数就是委托引用的方法；<br/>3.使用委托：通过new实例化委托，需要制定委托引用方法的方法名；<br/>4.委托的实例可以表示任何类型、任何对象上的实例方法或对象方法。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=585</link>
			<title><![CDATA[C#中自定义的数据类型转换]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,05 Jan 2009 23:40:12 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=585</guid>	
		<description><![CDATA[1.格式：<br/>&nbsp;&nbsp;隐式转换：public&nbsp;static&nbsp;implicit&nbsp;operator&nbsp;转换后的类型&nbsp;(被转换的类型&nbsp;value)<br/>&nbsp;&nbsp;显式转换：public&nbsp;static&nbsp;explicit&nbsp;operator&nbsp;转换后的类型&nbsp;(被转换的类型&nbsp;value)<br/>2.如果转换后出现精度损失或溢出等异常，则使用显示转换，并在转换定义代码和执行代码中都使用checked块；<br/>3.在数据类型转换时，如果编译器没有找到可用的直接转换方式，编译器就会把几种转换方式合并起来。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=584</link>
			<title><![CDATA[C#中运算符的重载]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,05 Jan 2009 20:43:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=584</guid>	
		<description><![CDATA[通过运算符重载可以直接对自定义对象进行运算符运算、比较，比使用方法实现更直观方便。<br/>1.重载格式：public&nbsp;static&nbsp;返回类型&nbsp;operator&nbsp;运算符&nbsp;(arg1,arg2);其中第一个参数是运算符左边的值，第二个是右边的值；<br/>2.不允许重载赋值运算符，在重载“+”运算符时，自动重载“+=”运算符；<br/>3.比较运算符必须成对的重载，比如重载“==”运算符，必须重载“!=”运算符。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=583</link>
			<title><![CDATA[C#中对象的四种相等比较方式]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,05 Jan 2009 19:39:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=583</guid>	
		<description><![CDATA[C#中对象的四种相等比较方式如下：<br/>1.ReferenceEquals(object&nbsp;o1,&nbsp;object&nbsp;o2)：比较两个对象的引用，引用相同返回true，否则返回false，同为null是返回true；<br/>2.Equals(object&nbsp;o)：虚拟Equals方法，比较引用，可以重写比较值；<br/>3.Equals(object&nbsp;o1,&nbsp;object&nbsp;o2)：静态Equals方法，先判断两个对象是否为空，如果都不为空，则调用虚拟Equals方法；<br/>4.object1&nbsp;==&nbsp;object2：比较运算符，比较引用,可以重写；<br/><br/>注意：值类型比较时应采用重写后的Equals方法，使用ReferenceEquals进行值类型比较时总是返回false，因为两个值类型需要分别装箱到对象中，是不同的引用]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=582</link>
			<title><![CDATA[C#中的空接合运算符]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,05 Jan 2009 15:43:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=582</guid>	
		<description><![CDATA[1.空接合运算符：操作数1&nbsp;??&nbsp;操作数2；<br/>2.第一个操作数必须是一个可空类型或引用类型，第二个操作数必须与第一个操作数类型相同，或者可以隐含的转换为第一个操作数的类型；<br/>3.如果第一个操作数不为null，则表达式的值等于第一个操作数的值，如果第一个操作数为null，则表达式的值等于第二个操作数的值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=581</link>
			<title><![CDATA[C#中的可空类型]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,05 Jan 2009 15:17:28 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=581</guid>	
		<description><![CDATA[1.值类型后加问号表示此类型为可空类型，如int?&nbsp;i&nbsp;=&nbsp;null；<br/>2.可空类型与一元或二元运算符一起使用时，只要有一个操作数为null，结果都为null；<br/>3.比较可空类型时，只要一个操作数为null，比较结果就为false。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=580</link>
			<title><![CDATA[C#中使用sizeof运算符确定值类型长度]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,05 Jan 2009 14:27:08 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=580</guid>	
		<description><![CDATA[sizeof运算符可以确定堆栈中值类型长度。<br/>1.只能在不安全的代码中使用；<br/>2.不安全代码使用unsafe块表示；<br/>3.编译时需使用/unsafe参数。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=579</link>
			<title><![CDATA[C#中使用as运算符执行引用类型的显式类型转换]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,05 Jan 2009 14:10:23 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=579</guid>	
		<description><![CDATA[as运算符用于执行引用类型的显式类型转换。<br/>1.如果要转换的类型与指定类型兼容，则转换成功；否则返回null；<br/>2.类型必须为引用类型；<br/>3.不需要先使用is运算符判断。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=578</link>
			<title><![CDATA[C#中使用is运算符检查对象是否与指定类型兼容]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,05 Jan 2009 14:01:10 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=578</guid>	
		<description><![CDATA[is运算符可以检查对象是否与指定类型兼容。<br/>1.格式：对象名&nbsp;is&nbsp;类型名，返回值为bool类型；<br/>2.兼容表示对象是该类型或派生于该类型。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=577</link>
			<title><![CDATA[C#中使用checked和unchecked运算符检查溢出]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Mon,05 Jan 2009 13:49:22 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=577</guid>	
		<description><![CDATA[1.checked：执行溢出检查；<br/>2.unchecked：禁止溢出检查。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=576</link>
			<title><![CDATA[C#中的派生接口]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,04 Jan 2009 23:23:12 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=576</guid>	
		<description><![CDATA[1.接口可以继承，方式与类的继承相同；<br/>2.派生接口中拥有基接口中所有的成员和自己的成员；<br/>3.实现派生接口的类，必须执行派生接口中的所有方法和所有基接口中的所有方法。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=575</link>
			<title><![CDATA[C#中的接口]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,04 Jan 2009 22:48:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=575</guid>	
		<description><![CDATA[1.定义：使用interface关键字声明；<br/>2.接口中只能包含方法、属性、索引器、事件的声明；<br/>3.接口中不允许提供接口中任何成员的执行方式，不能有构造函数，不允许声明成员上的修饰符；<br/>4.接口的成员总是公共的；<br/>5.一个类可以实现多个接口。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=574</link>
			<title><![CDATA[C#中派生类的构造函数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,04 Jan 2009 21:12:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=574</guid>	
		<description><![CDATA[1.派生类的构造函数执行顺序：先调用System.Object类的构造函数，按照层次由上到下，直到到达编译器要实例化的类为止；<br/>2.层次中的每个类的构造函数只初始化该类的字段，派生类中的构造函数不能初始化基类的字段；<br/>3.派生类中无参构造函数会自动调用基类的无参构造函数，含有基类字段参数的构造函数需要手动调用基类有参的构造函数。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=573</link>
			<title><![CDATA[C#中的密封类和密封函数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,04 Jan 2009 19:05:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=573</guid>	
		<description><![CDATA[1.修饰符：sealed；<br/>2.密封类不能被继承，密封函数不能被重写；<br/>3.密封函数基本上没有意义，如果不想被重写，可以不使用virtual关键字修饰来实现这一目的；<br/>4.如果重写某个基类方法后使用sealed关键字密封，则可以确保重写方法是最终代码，不能再被重写。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=572</link>
			<title><![CDATA[C#中的抽象类和抽象函数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,04 Jan 2009 17:27:51 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=572</guid>	
		<description><![CDATA[1.修饰符：abstract；<br/>2.抽象类不能实例化；<br/>3.抽象函数没有执行代码，必须在非抽象的派生类中重写；<br/>4.抽象函数是虚函数，但是不要使用virtual关键字修饰。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=571</link>
			<title><![CDATA[C#继承中调用函数的基类版本]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,04 Jan 2009 12:46:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=571</guid>	
		<description><![CDATA[在派生类中可以调用函数的基类版本，格式如下：<br/>base.&lt;MethodName&gt;();<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=570</link>
			<title><![CDATA[C#继承中的隐藏方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,04 Jan 2009 12:23:52 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=570</guid>	
		<description><![CDATA[1.如果基类和派生类中声明了相同的方法，而没有使用virtual和override关键字修饰，派生类的方法就会隐藏基类的方法；<br/>2.在基类中使用new关键字声明需要隐藏的方法；<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=569</link>
			<title><![CDATA[C#继承中的虚方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sun,04 Jan 2009 11:58:36 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=569</guid>	
		<description><![CDATA[C#中在基类中声明一个虚方法，就可以在任何派生类中重写该方法。<br/>1.使用virtual关键字声明；<br/>2.重写方法需要使用override关键字声明。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=568</link>
			<title><![CDATA[C#中的静态类]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,03 Jan 2009 23:29:10 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=568</guid>	
		<description><![CDATA[如果类只包含静态的方法和属性，该类就可以是静态类。<br/>1.格式，在class前加上static关键字；<br/>2.静态类不能创建实例；<br/>3.调用静态类的方法不需要对象，直接使用类型名调用方法。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=567</link>
			<title><![CDATA[C#中的部分类]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,03 Jan 2009 23:12:52 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=567</guid>	
		<description><![CDATA[部分类是指通过partial关键字将一个类、结构、接口放在多个文件中。<br/>1.格式：在class前加partial关键字；<br/>2.编译时会合并属性、XML注释、接口、一般类型的参数属性和成员；<br/>3.编译格式：csc&nbsp;part1.cs&nbsp;part2.cs&nbsp;...&nbsp;partN.cs。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=566</link>
			<title><![CDATA[C#中构造函数的初始化器]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,03 Jan 2009 22:42:08 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=566</guid>	
		<description><![CDATA[C#中使用构造函数初始化器可以在一个构造函数中调用同一个类的另一个构造函数，也可以调用直接基类的构造函数。<br/>1.格式：public&nbsp;SomeConstructor()&nbsp;:&nbsp;this/base(arg1,arg2,...,argn)&nbsp;{...}<br/>this关键字表示同一个类中参数最匹配的构造函数，base关键字表示直接基类；<br/>2.构造函数初始化器在构造函数之前执行；<br/>3.不能有多于一个的调用。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=565</link>
			<title><![CDATA[C#中结构与类的区别]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,03 Jan 2009 20:59:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=565</guid>	
		<description><![CDATA[C#中的结构可以看成是缩小的类，基本上与类相同，结构与类的区别如下：<br/>1.结构是值类型，类是引用类型；<br/>2.结构不支持继承；<br/>3.结构可以直接声明使用，不需要new，但是直接声明的结构要将元素初始化才能使用，如果使用new的方式可以调用构造函数初始化，编译器提供一个无参的构造函数，不能替换；<br/>4.使用结构，可以指定字段如何在内存中布局。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=564</link>
			<title><![CDATA[C#中的只读字段]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,03 Jan 2009 18:45:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=564</guid>	
		<description><![CDATA[1.只读字段使用readonly关键字修饰；<br/>2.只读字段比const常量灵活，在运行之前只读字段可以是未知的，通过一些运算来确定初始值；<br/>3.只能在声明时或构造函数中对只读字段赋值，不能在其他地方赋值；<br/>4.如果只读字段没有赋值，它的值就是其数据类型的默认值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=563</link>
			<title><![CDATA[C#的静态构造函数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,03 Jan 2009 18:23:53 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=563</guid>	
		<description><![CDATA[1.C#的静态构造函数只在第一次使用类之前执行一次；<br/>2.静态构造函数主要作用是在第一次使用类之前初始化静态字段和属性；<br/>3.静态构造函数中可以对静态只读字段赋值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=562</link>
			<title><![CDATA[C#中属性的get和set访问器]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,03 Jan 2009 17:26:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=562</guid>	
		<description><![CDATA[1.get访问器不带参数，必须返回属性声明的类型；<br/>2.set访问器不需要制定任何显式参数，编译器假定它带有一个类型与属性相同的参数value；<br/>3.get和set访问器可以设置不同的访问修饰符。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=561</link>
			<title><![CDATA[C#方法中的参数传递]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Sat,03 Jan 2009 00:16:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=561</guid>	
		<description><![CDATA[1.值类型参数传递的是数据本身的副本，不改变原值；<br/>2.数组或引用类型参数传递给方法后，会改变原值；<br/>3.使用ref关键字可以强制通过引用传递；<br/>4.使用out关键字进行引用传递时变量可以不初始化。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=560</link>
			<title><![CDATA[C#的预处理器指令]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,02 Jan 2009 22:42:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=560</guid>	
		<description><![CDATA[C#的预处理器指令可以影响编译过程总的各个方面，比如禁止编译某部分代码等。<br/>常用的有以下几种指令：<br/>1.#define和#undef：存在/不存在符号的定义，必须放在源代码的开头；<br/>2.#if，#elif，#else，#endif：条件语句，判断编译代码；<br/>3.#warning：编译时产生一个警告，继续编译后面的代码；<br/>4.#error：编译时产生一个错误，退出编译。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=559</link>
			<title><![CDATA[C#中使用注释创建XML文档说明]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,02 Jan 2009 20:45:51 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=559</guid>	
		<description><![CDATA[在C#中使用3个斜杠（///）开头的注释可以自动创建XML格式的文档说明。<br/>编译器可以识别的标识如下：<br/>&lt;c&gt;：把行中的文本标记为代码；<br/>&lt;code&gt;：把多行标记为代码；<br/>&lt;example&gt;：标记一个代码示例；<br/>&lt;exception&gt;：说明一个异常类；<br/>&lt;include&gt;：包含其他文档说明文件的注释；<br/>&lt;list&gt;：把列表插入到文档说明中；<br/>&lt;param&gt;：标记方法的参数；<br/>&lt;paramref&gt;：标记一个单词是方法的参数；<br/>&lt;permission&gt;：说明对成员的访问；<br/>&lt;remarks&gt;：给成员添加描述；<br/>&lt;returns&gt;：说明方法的返回值；<br/>&lt;see&gt;：提供对另一个参数的交叉引用；<br/>&lt;seealso&gt;：提供描述中的“参见”部分；<br/>&lt;summary&gt;：提供类型过成员的简短小结；<br/>&lt;value&gt;：描述属性。<br/><br/>编译：<br/>csc&nbsp;/t:library&nbsp;/doc:XML文件名.xml&nbsp;源文件名.cs]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=558</link>
			<title><![CDATA[C#的控制台I/O]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,02 Jan 2009 18:55:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=558</guid>	
		<description><![CDATA[C#控制台常用的方法如下：<br/>1.Console.ReadLine()：从控制台中取一个输入流（用户按下回车键停止）；<br/>2.Console.Write()：将指定值打印到控制台；<br/>3.Console.WriteLine()：将指定值打印到控制台并换行；<br/><br/>格式化输出的方法如下：<br/>1.使用参数{n}，或{n,w}：n表示参数索引，从0开始，w表示宽度值；<br/>2.使用格式字符串：<br/>&nbsp;&nbsp;C：本地货币格式；<br/>&nbsp;&nbsp;D：十进制格式；<br/>&nbsp;&nbsp;e/E：科学计数法（指数）格式；<br/>&nbsp;&nbsp;F：固定点格式；<br/>&nbsp;&nbsp;G：普通格式，自动选择使用E或F，取决于使用哪种格式较简单；<br/>&nbsp;&nbsp;N：数字格式，用逗号表示千分符；<br/>&nbsp;&nbsp;P：百分数格式；<br/>&nbsp;&nbsp;X：十六进制格式<br/>3.使用占位符：#的位置按原格式输出，0的位置如有字符则输出字符，没有字符则输出“0”]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=557</link>
			<title><![CDATA[C#中的枚举]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Fri,02 Jan 2009 18:01:54 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=557</guid>	
		<description><![CDATA[1.枚举是用户定义的整数类型；<br/>2.枚举中包含一组可接受的实例值；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=556</link>
			<title><![CDATA[第一个C#程序——Hello World]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[.NET]]></category>
			<pubDate>Thu,01 Jan 2009 17:45:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=556</guid>	
		<description><![CDATA[第一个C#程序:打印“Hello&nbsp;World!”<br/>1.编写代码，保存为*.cs文件；<br/>2.配置环境变量：找到csc.exe所在目录（%SystemRoot%\Microsoft.NET\Framework\版本号），将目录复制加入到Path环境变量中（我的电脑-&gt;属性-&gt;高级-&gt;环境变量-&gt;系统变量-&gt;Path-&gt;编辑）；<br/>3.编译：在CMD命令行下进入*cs文件所在目录，输入：csc&nbsp;*.cs；<br/>4.运行：编译后在原目录下生产*.exe文件，在CMD下输入文件名运行程序。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=554</link>
			<title><![CDATA[在含有负数的一百个整数中,找出连续三个数之和最大的部分【Java算法】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Algorithm]]></category>
			<pubDate>Wed,12 Nov 2008 02:56:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=554</guid>	
		<description><![CDATA[刚开始我的思路：<br/>1.第一重循环：从第一个数循环到倒数第3个数；<br/>2.第二重循环：往后循环3次，求3个数之和；<br/>3.与最大和比较，判断是否为最大和。<br/><br/>后来查了些资料，发现一种经典的算法：<br/>1.只循环一次：初始值为前3个数之和，相邻的3个数和的差为后一个数与前3个数中的第一个数之差；<br/>2.当差值为正时，当前3个数之和比前一个最大和大，差值为负时，继续向后移累加差值，直至为正。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=553</link>
			<title><![CDATA[找出两个字符串中最大子字符串【Java算法】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Algorithm]]></category>
			<pubDate>Wed,12 Nov 2008 01:45:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=553</guid>	
		<description><![CDATA[1.初始状态：flag1指向str1的第0位，flag2指向str2的第0位；<br/>2.flag2在str2中移动，直至找到与str1中flag1指向的字符相同的字符；<br/>3.i=flag1;j=flag2;i++;j++循环向后移动，判断两个字符是否相等，记录字符串和长度，直至不等；<br/>4.退出循环后，将字符串长度与最长值比较，判断是否为最长；<br/>5.flag2++,继续2，3，4，直至flag指向str2的最后一个字符；<br/>6.flag1++;flag2=0，继续2，3，4，5]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=552</link>
			<title><![CDATA[不用系统函数将字符串转换成整型【Java算法】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Algorithm]]></category>
			<pubDate>Tue,11 Nov 2008 16:11:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=552</guid>	
		<description><![CDATA[1.判断字符串是否为空；<br/>2.判断字符串是否为空字符串；<br/>3.判断是否为负数；<br/>4.从左向右循环取字符，转化为数字，将上次结果乘10，加上当前数字；<br/>5.在运算前，判断结果是否超出int型范围。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=545</link>
			<title><![CDATA[Hibernate中集合的批量抓取策略]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sat,27 Sep 2008 16:51:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=545</guid>	
		<description><![CDATA[集合的批量抓取策略：<br/>1.优化查询抓取策略，通过指定一个主键或外键列表，使用一条SQL语句查询所有关联对象；<br/>2.配置：在集合标签中加入batch-size=&quot;5&quot;（batch-size指通过延迟加载取得集合实例的批处理块大小）；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=544</link>
			<title><![CDATA[Hibernate中类的批量抓取策略]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sat,27 Sep 2008 16:24:26 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=544</guid>	
		<description><![CDATA[类的批量抓取策略：<br/>1.优化查询抓取策略，通过指定一个主键或外键列表，使用一条SQL语句查询所有关联对象；<br/>2.配置：在&lt;class&gt;标签中加入batch-size=&quot;5&quot;（batch-size指通过延迟加载取得集合实例的批处理块大小）；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=543</link>
			<title><![CDATA[Hibernate的子查询抓取策略]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sat,27 Sep 2008 16:01:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=543</guid>	
		<description><![CDATA[子查询抓取策略：<br/>1.在查询集合中的对象元素的关联对象时，使用子查询查询所有的关联对象；<br/>2.配置：在集合标签中加入fetch=&quot;subselect&quot;；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=542</link>
			<title><![CDATA[Hibernate的连接抓取策略]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sat,27 Sep 2008 15:29:40 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=542</guid>	
		<description><![CDATA[连接抓取策略：<br/>1.通过outer&nbsp;join来一次性获得对象及其关联对象；<br/>2.配置：在&lt;many-to-one&gt;或集合标签中加入fetch=&quot;join&quot;；<br/>3.使用连接抓取时lazy失效。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=541</link>
			<title><![CDATA[Hibernate的查询抓取策略]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sat,27 Sep 2008 14:15:31 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=541</guid>	
		<description><![CDATA[查询抓取策略：默认的抓取策略<br/>1.另外发出一条SQL语句抓取该对象的关联对象；<br/>2.配置：在&lt;many-to-one&gt;或集合标签中加入fetch=&quot;select&quot;。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=540</link>
			<title><![CDATA[Hibernate中lazy加载策略的单端关联代理]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,26 Sep 2008 22:01:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=540</guid>	
		<description><![CDATA[在&lt;one-to-one&gt;、&lt;many-to-one&gt;标签中通过指定lazy的值可以配置单端关联代理，lazy有以下三种取值：<br/>1.false：不采用lazy加载策略，在加载对象时，发出两条SQL语句，加载该对象和其关联对象；<br/>2.proxy：默认加载策略，只有在调用对象的关联对象的方法时才发出SQL语句查询关联对象，关联对象是代理类；<br/>3.no-proxy：关联对象不是代理类，其他与proxy策略相同。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=539</link>
			<title><![CDATA[Hibernate中集合的lazy加载策略]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,26 Sep 2008 19:50:33 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=539</guid>	
		<description><![CDATA[集合的lazy加载策略有一下三种设置：<br/>1.lazy=&quot;true&quot;：默认设置，只有调用集合元素时才会发出SQL语句；<br/>2.lazy=&quot;false&quot;：不采用lazy加载策略，在加载对象时就发出两条SQL语句，加载该对象和其关联集合的数据；<br/>3.lazy=&quot;extra&quot;：根据调用集合元素的方法，发出一条针对性的SQL语句，只查询需要的数据，不会把整个集合都加载到内存中。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=538</link>
			<title><![CDATA[Hibernate中类的lazy加载策略]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,26 Sep 2008 19:00:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=538</guid>	
		<description><![CDATA[1.采用lazy加载策略时，只有在需要时才会发出SQL查询语句；<br/>2.lazy加载策略只在Session打开期间是有效的。<br/>3.当类采用lazy加载策略时，load方法不发出SQL语句，查询对象的ID时也不会发出，只有第一次获取对象的其他属性时才会发出SQL语句，在同一个Session中再次查询该对象时，由于缓存中有改对象，所有不会发出SQL语句；<br/>4.类默认采用lazy加载策略，当在映射文件的class标签中设置lazy=&quot;false&quot;时不采用lazy加载策略。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=537</link>
			<title><![CDATA[Hibernate的悲观锁]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Thu,25 Sep 2008 02:35:54 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=537</guid>	
		<description><![CDATA[悲观锁：使用数据库的锁定机制<br/>1.自动设置：<br/>&nbsp;&nbsp;a.更新或插入记录时，锁定级别为LockMode.WRITE；<br/>&nbsp;&nbsp;b.使用select...for&nbsp;update语句查询时，锁定级别为LockMode.Update；<br/>&nbsp;&nbsp;c.使用select...for&nbsp;update&nbsp;nowait语句查询时，锁定级别为LockMode.Update_NOWAIT；<br/>&nbsp;&nbsp;d.在“可重复读”、“序列化”数据库隔离级别下读取数据时，锁定级别为LockMode.READ；<br/>&nbsp;&nbsp;e.事务结束时，锁定级别为LockMode.NONE；<br/>2.显示设置：<br/>&nbsp;&nbsp;a.调用Session的load方法时在参数中指定；<br/>&nbsp;&nbsp;b.调用Session的lock方法；<br/>&nbsp;&nbsp;c.调用Query的setLockMode方法。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=536</link>
			<title><![CDATA[Hibernate的乐观并发控制]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Thu,25 Sep 2008 01:38:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=536</guid>	
		<description><![CDATA[乐观并发控制：通过检查版本号检测更新冲突<br/>1.在数据库中增加version字段：映射文件中增加&lt;version&nbsp;name=&quot;version&quot;&nbsp;/&gt;标签；<br/>2.读取数据时将version值一起读出，更新时version自动加1，如果当前version值小于数据库中的version值，则认为是过期数据，不会更新。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=535</link>
			<title><![CDATA[Hibernate的多表连接查询]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Wed,24 Sep 2008 23:52:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=535</guid>	
		<description><![CDATA[1.多表查询：三个以上的表之间的关联；<br/>2.配置：分别配置两表之间的关联映射；<br/>3.查询：from&nbsp;a&nbsp;join&nbsp;b&nbsp;join&nbsp;c&nbsp;...join&nbsp;z]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=534</link>
			<title><![CDATA[使用Hibernate创建和查询树型结构]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Wed,24 Sep 2008 19:59:22 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=534</guid>	
		<description><![CDATA[1.映射关系：树型结构中当前节点与其父节点是many-to-one的关系，与其子节点是one-to-many的关系；<br/>2.创建：将节点的所有子节点递归存入数据库；<br/>3.查询：递归查找节点的所有子节点；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=533</link>
			<title><![CDATA[Hibernate的查询缓存]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Tue,23 Sep 2008 02:28:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=533</guid>	
		<description><![CDATA[1.配置查询缓存：<br/>&nbsp;&nbsp;在hibernate.cfg.xml文件的&lt;session-factory&gt;中加入如下标签：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;property&nbsp;name=&quot;hibernate.cache.use_query_cache&quot;&gt;true&lt;/property&gt;<br/>2.使用查询缓存：Query的setCacheable(true)方法可以开启查询缓存；<br/>3.属性结果集缓存所有数据，实体对象结果集只缓存ID（关闭二级缓存时会根据查询缓存中的ID发出N条查询语句）；<br/>4.查询缓存只对list()有效，不支持iterate()方法。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=532</link>
			<title><![CDATA[Hibernate的二级缓存]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Mon,22 Sep 2008 21:49:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=532</guid>	
		<description><![CDATA[一、二级缓存：<br/>1.二级缓存的生命周期与SessionFactory一致；<br/>2.交互模式：通过Session的setCacheMode(CacheMode.参数)方法设置交互模式；<br/>&nbsp;&nbsp;CacheMode.NORMAL：可以从二级缓存中读写数据；<br/>&nbsp;&nbsp;CacheMode.GET：可以从二级缓存中读数据，只在数据更新时可以写数据；<br/>&nbsp;&nbsp;CacheMode.PUT：只向二级缓存中写数据，不能读数据；<br/>&nbsp;&nbsp;CacheMode.REFRESH：只向二级缓存中写数据，通过hibernate.cache.use_minimal_puts设置强制二级缓存从数据库中读取数据，刷新缓存内容；<br/><br/>二、配置二级缓存：<br/>1.开启二级缓存：<br/>&nbsp;&nbsp;在hibernate.cfg.xml的&lt;session-factory&gt;中加入如下标签：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;property&nbsp;name=&quot;hibernate.cache.use_second_level_cache&quot;&gt;true&lt;/property&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;property&nbsp;name=&quot;hibernate.cache.provider_class&quot;&gt;org.hibernate.cache.EhCacheProvider&lt;/property&gt;<br/>2.指定使用缓存的类：<br/>&nbsp;&nbsp;在hibernate.cfg.xml的&lt;session-factory&gt;中加入如下标签：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;class-cache&nbsp;class=&quot;类名&quot;&nbsp;usage=&quot;read-only&quot;/&gt;<br/>3.在src目录下建立echcahe.xml文件。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=531</link>
			<title><![CDATA[Hibernate的一级缓存]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Mon,22 Sep 2008 15:56:21 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=531</guid>	
		<description><![CDATA[1.一级缓存的生命周期和session一致，随着session的关闭而消失；<br/>2.可以使用一级缓存数据的操作：<br/>&nbsp;&nbsp;load、get、iterate（查询实体对象时）方法、save对象后load该对象；<br/>3.管理缓存：<br/>&nbsp;&nbsp;evict(对象)方法可以清除指定对象的一级缓存；<br/>&nbsp;&nbsp;clear()方法清除所有一级缓存；<br/>4.为避免一次性插入大量数据造成内存溢出，可以先调用flush()方法，再使用Clear()方法清除缓存。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=530</link>
			<title><![CDATA[Hibernate中配置集合映射]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Mon,22 Sep 2008 03:25:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=530</guid>	
		<description><![CDATA[1.Set映射：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;set&nbsp;name=&quot;Set属性名&quot;&nbsp;table=&quot;表名&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;key&nbsp;column=&quot;与主键关联字段名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;element&nbsp;type=&quot;数据类型&quot;&nbsp;column=&quot;字段名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;/set&gt;<br/>2.List映射：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;list&nbsp;name=&quot;List属性名&quot;&nbsp;table=&quot;表名&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;key&nbsp;column=&quot;与主键关联字段名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;list-index&nbsp;column=&quot;索引字段名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;element&nbsp;type=&quot;数据类型&quot;&nbsp;column=&quot;字段名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;/list&gt;<br/>3.Map映射：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;map&nbsp;name=&quot;Map属性名&quot;&nbsp;table=&quot;表名&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;key&nbsp;column=&quot;与主键关联字段名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;map-key&nbsp;type=&quot;数据类型&quot;&nbsp;column=&quot;KEY字段名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;element&nbsp;type=&quot;数据类型&quot;&nbsp;column=&quot;VALUE字段名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;/map&gt;<br/>4.Array映射：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;array&nbsp;name=&quot;Array属性名&quot;&nbsp;table=&quot;表名&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;key&nbsp;column=&quot;与主键关联字段名&quot;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;list-index&nbsp;column=&quot;索引字段名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;element&nbsp;type=&quot;数据类型&quot;&nbsp;column=&quot;字段名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;/array&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=529</link>
			<title><![CDATA[Hibernate中配置复合主键映射]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Mon,22 Sep 2008 01:33:20 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=529</guid>	
		<description><![CDATA[1.通常将复合主键单独建一个类；<br/>2.复合主键类必须实现java.io.Serializable接口，必须重写hashCode和equals方法；<br/>3.在映射文件中配置复合主键：<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;composite-id&nbsp;name=&quot;复合主键类名&quot;&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;key-property&nbsp;name=&quot;复合主键属性1&quot;&nbsp;column=&quot;对应字段名&quot;&nbsp;/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;key-property&nbsp;name=&quot;复合主键属性2&quot;&nbsp;column=&quot;对应字段名&quot;&nbsp;/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;/composite-id&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=528</link>
			<title><![CDATA[Hibernate中配置组件映射]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sun,21 Sep 2008 23:54:40 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=528</guid>	
		<description><![CDATA[1.一个类中包含另一个类时可以配置组件映射；<br/>2.配置方法：在&lt;class&gt;标签中加入如下标签：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;component&nbsp;name=&quot;组件类名&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;property&nbsp;name=&quot;属性名1&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;property&nbsp;name=&quot;属性名2&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;property&nbsp;name=&quot;属性名3&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/component&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=527</link>
			<title><![CDATA[Hibernate中HQL的分页查询]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sun,21 Sep 2008 21:08:16 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=527</guid>	
		<description><![CDATA[1.设置起始行数：Query接口的setFirstResult(起始行数)，起始行数从零开始；<br/>2.设置每页最大记录数：Query接口的setMaxResults(最大记录数)；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=526</link>
			<title><![CDATA[Hibernate中HQL的统计查询]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sun,21 Sep 2008 16:35:00 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=526</guid>	
		<description><![CDATA[1.与SQL一样，HQL也使用count(*)统计数据，如：select&nbsp;count(*)&nbsp;from&nbsp;类名<br/>2.分组统计使用group&nbsp;by，如：select&nbsp;c.id,c.name,count(s)&nbsp;from&nbsp;Student&nbsp;s&nbsp;join&nbsp;s.classes&nbsp;c&nbsp;group&nbsp;by&nbsp;c.id,&nbsp;c.name]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=525</link>
			<title><![CDATA[Hibernate中HQL的连接查询]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sun,21 Sep 2008 15:44:09 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=525</guid>	
		<description><![CDATA[1.内连接：join<br/>&nbsp;&nbsp;如：select&nbsp;s.name,&nbsp;c.name&nbsp;from&nbsp;Student&nbsp;s&nbsp;join&nbsp;s.classes&nbsp;c<br/>2.左外连接：left&nbsp;join<br/>&nbsp;&nbsp;如：select&nbsp;s.name,&nbsp;c.name&nbsp;from&nbsp;Student&nbsp;s&nbsp;left&nbsp;join&nbsp;s.classes&nbsp;c<br/>3.右外连接：right&nbsp;join<br/>&nbsp;&nbsp;如：select&nbsp;s.name,&nbsp;c.name&nbsp;from&nbsp;Student&nbsp;s&nbsp;right&nbsp;join&nbsp;s.classes&nbsp;c<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=524</link>
			<title><![CDATA[Hibernate中HQL的对象引用]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sun,21 Sep 2008 02:04:28 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=524</guid>	
		<description><![CDATA[在HQL中通过“.”来引用对象，如：<br/>select&nbsp;s.name&nbsp;from&nbsp;Student&nbsp;s&nbsp;where&nbsp;s.classes.id=1]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=523</link>
			<title><![CDATA[使用Hibernate过滤器查询数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sun,21 Sep 2008 01:25:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=523</guid>	
		<description><![CDATA[1.定义过滤器：<br/>&nbsp;&nbsp;在映射文件的&lt;hibernate-mapping&gt;标签中加入如下标签：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;filter-def&nbsp;name=&quot;过滤器名&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;filter-param&nbsp;name=&quot;变量名&quot;&nbsp;type=&quot;数据类型&quot;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/filter-def&gt;<br/>2.在类映射中使用过滤器：<br/>&nbsp;&nbsp;在&lt;class&gt;标签下加入如下标签：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;filter&nbsp;name=&quot;过滤器名&quot;&nbsp;condition=&quot;查询条件&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;查询条件只需要HQL语句where之后的部分，如：id&nbsp;&lt;&nbsp;:变量名（在标签中不能直接使用“&lt;”、“&gt;”，要用“&lt;”、“&gt;”替代）<br/>3.启用过滤器：<br/>&nbsp;&nbsp;session.enableFilter(&quot;过滤器名&quot;).setParameter(&quot;变量名&quot;,&nbsp;值);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=522</link>
			<title><![CDATA[Hibernate中HQL的命名查询]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sat,20 Sep 2008 23:44:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=522</guid>	
		<description><![CDATA[命名查询：<br/>1.在映射文件中在&lt;hibernate-mapping&gt;下加入如下标签：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;query&nbsp;name=&quot;查询名&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;![CDATA[HQL语句]]&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/query&gt;<br/>2.通过session.getNamedQuery(&quot;查询名&quot;)获得结果集。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=521</link>
			<title><![CDATA[Hibernate中使用SQL查询数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sat,20 Sep 2008 22:49:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=521</guid>	
		<description><![CDATA[在Hibernate中也可以使用标准SQL查询数据，格式如下：<br/>&nbsp;&nbsp;SQLQuery&nbsp;sqlQuery&nbsp;=&nbsp;session.createSQLQuery(&quot;SQL语句&quot;);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=520</link>
			<title><![CDATA[Hibernate中HQL的条件查询]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sat,20 Sep 2008 00:54:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=520</guid>	
		<description><![CDATA[1.拼接字符串查询：where&nbsp;字段名=&#39;值&#39;<br/>2.预处理查询：where&nbsp;字段名=?<br/>&nbsp;&nbsp;通过query.setParamter(0,值)给问号赋值，索引从0开始，值为Object类型不需要单引号；<br/>3.通过变量查询：where&nbsp;字段名=&nbsp;:变量名<br/>&nbsp;&nbsp;通过query.setParamter(&quot;变量名&quot;,值)给变量赋值；<br/>4.in查询：where&nbsp;字段名&nbsp;in&nbsp;(:变量名)<br/>&nbsp;&nbsp;通过query.setParamterList(&quot;变量名&quot;,new&nbsp;Object[]{...})给变量赋值；<br/>5.between查询：where&nbsp;字段名&nbsp;between&nbsp;?&nbsp;and&nbsp;?<br/>&nbsp;&nbsp;通过query.setParamter(0,值)给问号赋值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=519</link>
			<title><![CDATA[Hibernate中HQL的属性查询]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,19 Sep 2008 21:04:52 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=519</guid>	
		<description><![CDATA[1.单属性查询：select&nbsp;属性名&nbsp;from&nbsp;表名；<br/>&nbsp;&nbsp;结果集中的元素类型与属性的类型一致；<br/>2.多属性查询：select&nbsp;属性1,属性2,...属性n&nbsp;from&nbsp;表名；<br/>&nbsp;&nbsp;结果集中元素为数组类型，数组中包含所有属性，类型与对应属性的类型一致。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=518</link>
			<title><![CDATA[Hibernate中使用list和iterate方法获取HQL查询结果的区别]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,19 Sep 2008 20:27:56 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=518</guid>	
		<description><![CDATA[1.使用list方法获取查询结果：<br/>&nbsp;&nbsp;每次发出一条查询语句，查询所有对象；<br/>2.使用iterate方法获取查询结果：<br/>&nbsp;&nbsp;首先发出一条查询语句，查询对象的id列表，然后检查缓存，只查找缓存中没有的数据。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=517</link>
			<title><![CDATA[Hibernate中HQL的几种基本查询语句]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,19 Sep 2008 18:20:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=517</guid>	
		<description><![CDATA[HQL基本查询语句有以下几种：<br/>1.from&nbsp;类名；<br/>2.from&nbsp;类名&nbsp;as&nbsp;别名；<br/>3.from&nbsp;类名&nbsp;别名；<br/>4.select&nbsp;别名&nbsp;from&nbsp;类名&nbsp;别名；<br/><br/>注意：HQL不支持“select&nbsp;*&nbsp;from&nbsp;表名”这种查询语句。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=516</link>
			<title><![CDATA[Hibernate中配置继承映射（每个子类一张表）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,19 Sep 2008 03:07:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=516</guid>	
		<description><![CDATA[1.每个类一张表：父类不对应数据库表（abstract=&quot;true&quot;），每个子类对应的表中含有该对象全部信息；<br/>3.配置子类：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;union-subclass&nbsp;name=&quot;类名&quot;&nbsp;table=&quot;表名&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;property&nbsp;name=&quot;特有属性名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/union-subclass&gt;<br/>4.joined-subclass标签与class标签平行时需要添加extends属性，指定父类名；<br/>5.多态支持：<br/>&nbsp;&nbsp;get()：支持；<br/>&nbsp;&nbsp;load()：lazy=&quot;false&quot;时支持；<br/>6.各子类主键字段值不能相同。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=515</link>
			<title><![CDATA[Hibernate中配置继承映射（每个类一张表）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,19 Sep 2008 02:56:33 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=515</guid>	
		<description><![CDATA[1.每个类一张表：父类对应的数据库表中，存储了所有的记录，子类对应的数据库表中存储了特有属性映射的字段，父类与子类通过相同的主键关联；<br/>3.配置子类：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;joined-subclass&nbsp;name=&quot;类名&quot;&nbsp;table=&quot;表名&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;key&nbsp;column=&quot;父类主键字段名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;property&nbsp;name=&quot;特有属性名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/joined-subclass&gt;<br/>4.joined-subclass标签与class标签平行时需要添加extends属性，指定父类名；<br/>5.多态支持：<br/>&nbsp;&nbsp;get()：支持；<br/>&nbsp;&nbsp;load()：lazy=&quot;false&quot;时支持。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=514</link>
			<title><![CDATA[Hibernate中配置继承映射（每个类分层结构一张表）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,19 Sep 2008 02:53:01 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=514</guid>	
		<description><![CDATA[1.每个类分层结构一张表：只需要一张表，包含所有子类属性对应的字段，有一个标识字段，通过标识字段的值区分不同的子类；<br/>2.配置标识字段：&nbsp;在父类中定义discriminator：&lt;discriminator&nbsp;column=&quot;type&quot;&nbsp;type=&quot;string&quot;&nbsp;/&gt;指定字段名和类型；<br/>3.配置子类：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;subclass&nbsp;name=&quot;类名&quot;&nbsp;discriminator-value=&quot;标识值&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;property&nbsp;name=&quot;特有属性名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/subclass&gt;<br/>4.subclass标签与class标签平行时需要添加extends属性，指定父类名；<br/>5.多态支持：<br/>&nbsp;&nbsp;get()：支持；<br/>&nbsp;&nbsp;load()：lazy=&quot;false&quot;时支持。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=513</link>
			<title><![CDATA[Hibernate中配置多对多映射【双向】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Wed,17 Sep 2008 02:53:53 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=513</guid>	
		<description><![CDATA[1.通过双向映射，可以通过任意对象找到与其关联的对象数据；<br/>2.配置方法：在另一个对象映射文件中加入set标签，与关联对象配置对应&nbsp;。&nbsp;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=512</link>
			<title><![CDATA[Hibernate中配置多对多映射]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Wed,17 Sep 2008 02:06:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=512</guid>	
		<description><![CDATA[1.多对多映射需要建立中间映射表；<br/>2.中间映射表中保存了多对多关联的两个表主键的对应关系；<br/>3.配置方法：在映射文件中使用set标签配置：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;set&nbsp;name=&quot;引用对方对象的属性名&quot;&nbsp;table=&quot;中间表名&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;key&nbsp;column=&quot;当前表的关联字段&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;many-to-many&nbsp;class=&quot;关联目标类名&quot;&nbsp;column=&quot;关联目标表的关联字段&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/set&gt;<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=511</link>
			<title><![CDATA[Hibernate中配置一对多集合映射【双向】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Mon,15 Sep 2008 23:49:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=511</guid>	
		<description><![CDATA[1.通过双向映射，可以通过任意对象找到与其关联的对象数据；<br/>2.配置方法：在另一个对象映射文件中加入&lt;many-to-one&gt;标签&nbsp;；<br/>3.inverse属性：设置inverse=&quot;true&quot;时，只能从多一端来维护一对多关联。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=510</link>
			<title><![CDATA[Hibernate中配置一对一映射（唯一外键关联）【双向】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Mon,15 Sep 2008 20:05:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=510</guid>	
		<description><![CDATA[1.通过双向映射，可以通过任意对象找到与其关联的对象数据；<br/>2.配置方法：在另一个对象映射文件中加入&lt;one-to-one&nbsp;name=&quot;引用关联对象的属性名&quot;&nbsp;/&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=509</link>
			<title><![CDATA[Hibernate中配置一对一映射（主键关联）【双向】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Mon,15 Sep 2008 18:01:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=509</guid>	
		<description><![CDATA[1.通过双向映射，可以通过任意对象找到与其关联的对象数据；<br/>2.配置方法：在另一个对象映射文件中加入&lt;one-to-one&nbsp;name=&quot;引用关联对象的属性名&quot;&nbsp;/&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=508</link>
			<title><![CDATA[Hibernate中配置一对多集合映射]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sat,13 Sep 2008 19:27:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=508</guid>	
		<description><![CDATA[1.一对多关联关系，使用集合来表示；<br/>2.映射文件中使用&lt;set&gt;标签配置：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;set&nbsp;name=&quot;集合名&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;key&nbsp;column=&quot;数据库中字段名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;one-to-many&nbsp;class=&quot;集合子元素类名&quot;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/set&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=507</link>
			<title><![CDATA[Hibernate中配置一对一映射（唯一外键关联）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sat,13 Sep 2008 18:05:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=507</guid>	
		<description><![CDATA[在many-to-one基础上加上唯一限制unique=&quot;true&quot;，可以表示一对一映射]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=506</link>
			<title><![CDATA[Hibernate中配置一对一映射（主键关联）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sat,13 Sep 2008 02:56:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=506</guid>	
		<description><![CDATA[1.主键关联一对一映射不需要额外的字段，对象之间必须共享相同的主键；<br/>2.一对一映射默认采用级联操作，存储一个对象的时候，另一个对象也同时被储存；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=505</link>
			<title><![CDATA[Hibernate中使用load方法延迟加载对象]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,12 Sep 2008 20:40:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=505</guid>	
		<description><![CDATA[1.使用Session的load方法可以通过实例的持久化标识取得该持久化实例；<br/>2.load方法采用延迟加载技术，创建实例时不访问数据库，调用该实例的方法时才访问数据库。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=504</link>
			<title><![CDATA[Hibernate的级联配置]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,12 Sep 2008 20:02:57 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=504</guid>	
		<description><![CDATA[1.级联是指两个对象之间的操作联动关系，对一个对象执行了操作之后，对其指定的级联对象也需要执行相同的操作；<br/>2.级联配置通过many-to-one的cascade属性实现；<br/>3.cascade属性有四种取值：<br/>&nbsp;&nbsp;all：所有操作都执行级联操作；<br/>&nbsp;&nbsp;none：所有操作都不执行级联操作；<br/>&nbsp;&nbsp;save-update：保存和更新时执行级联操作；<br/>&nbsp;&nbsp;delete：删除时执行级联操作；<br/>4.通过级联操作可以解决持久化对象不能直接引用瞬时对象的问题。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=503</link>
			<title><![CDATA[Hibernate中配置多对一映射]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,12 Sep 2008 17:58:23 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=503</guid>	
		<description><![CDATA[1.多对一映射是指多个持久化类的关联；<br/>2.通过many-to-one元素定义多对一映射；<br/>3.持久对象不能直接引用瞬时对象，必须将被引用对象持久化后才能引用该对象；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=502</link>
			<title><![CDATA[Hibernate中使用内置生成器创建主键]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,12 Sep 2008 03:03:33 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=502</guid>	
		<description><![CDATA[1.在映射文件中通过&lt;id&gt;标签设置主键；<br/>2.&lt;id&gt;标签中通过&lt;generator&gt;标签设置主键生成策略；<br/>3.常用的主键生成策略有以下3种：<br/>&nbsp;&nbsp;uuid：使用UUID算法生成字符串类型的标识符；<br/>&nbsp;&nbsp;native：根据使用数据库的不同自动选择identity、sequence、hilo；<br/>&nbsp;&nbsp;assigned：手工指定；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=501</link>
			<title><![CDATA[Hibernate中使用Query接口查询数据库]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Thu,11 Sep 2008 21:22:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=501</guid>	
		<description><![CDATA[1.调用方法：Query&nbsp;query&nbsp;=&nbsp;session.createQuery(&quot;from&nbsp;User&quot;)；<br/>2.查询语句使用HQL；<br/>3.查询语句中查询对象为POJO对象，不能使用表名；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=500</link>
			<title><![CDATA[Java中使用JUint的测试集批量测试]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,09 Sep 2008 22:16:01 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=500</guid>	
		<description><![CDATA[测试集把不同测试分组组织，只需运行一个测试集就能执行一组测试，实现批量测试页面；<br/><br/>1.定义public&nbsp;static&nbsp;Test&nbsp;suite()方法；<br/>2.创建TestSuite对象；<br/>3.使用addTest(Test)&nbsp;向TestSuite中增加测试；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=499</link>
			<title><![CDATA[Java中使用JUint的setUp()和tearDown()方法初始化、重置测试参数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,09 Sep 2008 21:42:52 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=499</guid>	
		<description><![CDATA[1.setUp()方法在每个测试方法之前调用；<br/>2.tearDown()方法在每个测试方法之后调用。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=498</link>
			<title><![CDATA[使用JUint测试Java程序]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,09 Sep 2008 21:14:01 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=498</guid>	
		<description><![CDATA[使用JUint测试Java程序流程如下：<br/>1.加入jar包：下载地址：<a target="_blank" href="http://sourceforge.net/project/showfiles.php?group_id=15278&package_id=12472">http://sourceforge.net/project/showfiles.php?group_id=15278&package_id=12472</a><br/>（本例中使用的是junit-4.5.jar）<br/>2.组织文件：src目录下存放Java源代码，新建目录junit存放测试代码，测试代码与源代码放在不同目录的相同包下，便于管理和发布（这一步不是必要的，但是建议这么做）；<br/>3.编写测试代码：测试类继承junit.framework.TestCase类，测试方法要以test开头；<br/>4.运行测试：MyEclipse下，Run--&gt;Open&nbsp;Run&nbsp;Dialog，选择JUnit服务器，运行。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0809/v200899214956.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=497</link>
			<title><![CDATA[使用Hibernate将对象保存到数据库]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Mon,08 Sep 2008 21:39:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=497</guid>	
		<description><![CDATA[使用Hibernate将对象保存到数据库的流程如下：<br/>1.读取配置文件；<br/>2.创建SessionFactory；<br/>3.创建session；<br/>4.开启事务；<br/>5.新建对象；<br/>6.保存对象；<br/>7.提交事务；<br/>8.关闭session；<br/><br/>控制台显示SQL语句的方法：<br/>在hibernate.cfg.xml中的session-factory标签下加入如下标签：<br/>&lt;property&nbsp;name=&quot;show_sql&quot;&gt;true&lt;/property&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=496</link>
			<title><![CDATA[Hibernate中使用log4j调试程序]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Mon,08 Sep 2008 15:32:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=496</guid>	
		<description><![CDATA[1.使用log4j可以方便灵活的控制日志的输出目的地，输出格式；<br/>2.log4j通过log4j.properties文件配置；<br/>3.使用方法：将log4j-1.2.14.jar,commons-logging.jar导入项目，在classpath下建立log4j.properties。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=495</link>
			<title><![CDATA[Hibernate中使用类映射文件创建数据库表]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sun,07 Sep 2008 02:14:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=495</guid>	
		<description><![CDATA[1.加入Hibernate&nbsp;3支持；<br/>2.定义实体类；<br/>3.创建实体类的映射文件；<br/>4.通过配置文件hibernate.cfg.xml将映射文件加入到Hibernate中；<br/>5.使用SchemaExport类创建数据库。<br/>6.创建序列实现自增字段：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;id&nbsp;name=&quot;id&quot;&nbsp;type=&quot;java.lang.Long&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;column&nbsp;name=&quot;ID&quot;&nbsp;precision=&quot;22&quot;&nbsp;scale=&quot;0&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;generator&nbsp;class=&quot;sequence&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&lt;param&nbsp;name=&quot;sequence&quot;&gt;SEQ_HB_USER_ID&lt;/param&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/generator&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/id&gt;<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=494</link>
			<title><![CDATA[JS中使用DOM-Drag实现移动蒙版效果]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sat,06 Sep 2008 01:24:52 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=494</guid>	
		<description><![CDATA[1.将一个白色图片设置半透明作为蒙版；<br/>2.使用Drag.init(o,&nbsp;oroot,&nbsp;&nbsp;minX,&nbsp;maxX,&nbsp;minY,&nbsp;maxY);将一个小透明图片作为子组件，半透明图片作为父组件；<br/>3.拖动透明图片带动蒙版一起移动；<br/>4.只有IE支持蒙版效果。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0809/220089715041.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=493</link>
			<title><![CDATA[JS中使用DOM-Drag捕捉组件位置坐标]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Fri,05 Sep 2008 19:48:28 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=493</guid>	
		<description><![CDATA[1.使用Drag.init设置被拖放的组件；<br/>2.调用组件的onDrag、onDragStart、onDragEnd方法分别取得组件拖放过程中、开始拖放时、结束拖放时的位置坐标。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0809/a200895215244.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=492</link>
			<title><![CDATA[JS中使用DOM-Drag设置组件的移动轨迹]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Fri,05 Sep 2008 01:03:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=492</guid>	
		<description><![CDATA[1.使用Drag.init(o,&nbsp;oRoot,&nbsp;minX,&nbsp;maxX,&nbsp;minY,&nbsp;maxY,&nbsp;bSwapHorzRef,&nbsp;bSwapVertRef,&nbsp;fXMapper,&nbsp;fYMapper);设置要拖动的组件；<br/>2.参数fXMapper,&nbsp;fYMapper分别控制组件X，Y轴的移动轨迹；<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=491</link>
			<title><![CDATA[JS中使用DOM-Drag设置组件的堆叠次序]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Fri,05 Sep 2008 00:44:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=491</guid>	
		<description><![CDATA[1.使用Drag.init(o,&nbsp;oRoot,&nbsp;minX,&nbsp;maxX,&nbsp;minY,&nbsp;maxY,&nbsp;bSwapHorzRef,&nbsp;bSwapVertRef);设置要拖动的组件；<br/>2.bSwapHorzRef,&nbsp;bSwapVertRef两个参数的类型为布尔型，控制堆叠次序，最高层为true,true，最低层为false,false；<br/>3.有一个奇怪的现象需要注意：两参数的取值可能跟组件的位置定义有关，true,false组合跟top(bottom),left(right)组合可能有一定的对应关系，比如false,false只能对应top,left（官方提供的实例中没有说明）。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=490</link>
			<title><![CDATA[JS中使用DOM-Drag实现滚动条控制内容滚动]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Thu,04 Sep 2008 23:37:21 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=490</guid>	
		<description><![CDATA[1.下载ypSimpleScrollC.js<br/><a target="_blank" href="http://youngpup.net/projects/dom-drag/ypSimpleScrollC.js">http://youngpup.net/projects/dom-drag/ypSimpleScrollC.js</a><br/>2.使用构造函数ypSimpleScroll(id,&nbsp;left,&nbsp;top,&nbsp;width,&nbsp;height);创建一个滚动区域；<br/>3.计算滚动幅度；<br/>4.滚动条调用onDrag();方法，调用滚动区域的jumpTo(x,&nbsp;y);实现滚动条控制内容滚动。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=489</link>
			<title><![CDATA[JS中使用DOM-Drag限制拖放组件范围（模拟滚动条）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Wed,03 Sep 2008 21:58:00 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=489</guid>	
		<description><![CDATA[1.使用Drag.init(o,&nbsp;oRoot,&nbsp;&nbsp;minX,&nbsp;maxX,&nbsp;minY,&nbsp;maxY);设置拖放组件的范围；<br/>2.minX,minY为左上角XY坐标，maxX,maxY为右下角XY坐标；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=488</link>
			<title><![CDATA[JS中使用DOM-Drag实现鼠标拖放父子组件（模拟窗口）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Wed,03 Sep 2008 21:04:21 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=488</guid>	
		<description><![CDATA[1.使用两个DIV模拟窗口的窗体和标题栏，拖动标题栏，整个窗口一起移动；<br/>2.使用Drag.init(o,oRoot);方法实现；<br/>3.o为拖动的组件，即标题栏，oRoot为拖动组件的父组件，即窗体。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=487</link>
			<title><![CDATA[JS中使用DOM-Drag实现鼠标拖放组件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Wed,03 Sep 2008 02:27:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=487</guid>	
		<description><![CDATA[使用DOM-Drag可以实现通过鼠标拖放组件到网页中的任意位置；<br/>1.下载DOM-Drag:<br/><a target="_blank" href="http://youngpup.net/projects/dom-drag/dom-drag.js">http://youngpup.net/projects/dom-drag/dom-drag.js</a><br/>2.使用Drag.init(o)方法设置要拖动的组件o；<br/>3.Drag.init(o)方法不能在head里调用，必须在写body中。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=486</link>
			<title><![CDATA[JS中使用JsUint的标准/定制查询串自动选择测试]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Mon,01 Sep 2008 21:38:47 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=486</guid>	
		<description><![CDATA[使用标准查询串自动执行测试：<br/>1.使用URL参数testPage和autoRun可以实现自动提交查询；<br/>2.testPage为测试页面地址；<br/>3.autoRun=true时自动提交测试；<br/>4.例如：http://localhost:8888/jsunit/testRunner.html?testPage=http://localhost:8888/fajax/simpleSuite.html&autoRun=true<br/><br/>使用定制查询串选择测试页面：<br/>1.在URL查询串中增加任意形参/实参对，例如http://localhost:8888/jsunit/testRunner.html?suite=setUp；<br/>2.在测试页或测试集中使用top.jsUnitParmHash.parameterName或top.jsUnitParmHash[&#39;parameterName&#39;]获取参数值；<br/>3.根据参数值选择执行不同的测试页面；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=485</link>
			<title><![CDATA[JS中使用JsUint跟踪测试]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Mon,01 Sep 2008 15:38:20 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=485</guid>	
		<description><![CDATA[JsUnit包含以下3个跟踪函数：<br/>1.warn(message,&nbsp;[value])：警告；<br/>2.inform(message,[value])：信息；<br/>3.debug(message,[value])：调试；<br/><br/>JsUnit支持3个跟踪级别：warn、inform、debug；<br/>这3个级别按照以下顺序层叠：warn、inform、debug；<br/>运行测试时如果选择“debug”，则会显示warn()、inform()或debug()函数发出的消息；<br/>如果选择“inform”，则会显示warn()或inform()函数发出的消息；<br/>如果选择“warn”，则只会显示warn()函数发出的消息；<br/>默认值为“no&nbsp;tracing”（不跟踪）。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=484</link>
			<title><![CDATA[JS中使用JsUint的测试集批量测试页面]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Mon,01 Sep 2008 15:04:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=484</guid>	
		<description><![CDATA[测试集把不同测试页面分组组织，只需运行一个测试集就能执行一组测试，实现批量测试页面；<br/><br/>1.测试集中不能包含任何测试函数；<br/>2.测试集必须包含一个返回JsUnitTestSuite对象的suite()函数；<br/><br/>可以使用两种方法向测试集中增加测试页或子测试集：<br/>1.addTestPage(testPage)：向测试集中增加单个测试页，testPage为测试文件的绝对路径或相对路径；<br/>2.addTestSiute(testSuite)：向测试集中增加另一个测试集testSuite的类型为JsUnitSuite；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=483</link>
			<title><![CDATA[JS中使用JsUint的setUpPage()方法预处理测试页面]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Mon,01 Sep 2008 13:57:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=483</guid>	
		<description><![CDATA[1.setUpPage()函数只在每个测试页面所有函数调用之前调用一次；<br/>2.主要用来预处理，在运行测试之前向页面加载数据；<br/>3.setUpPage()函数中必须有这条语句：setUpPageStatus&nbsp;=&nbsp;&quot;complete&quot;;相当于告诉JsUnit可以继续执行测试。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=482</link>
			<title><![CDATA[JS中使用JsUint的setUp()和tearDown()方法初始化、重置测试页面]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sun,31 Aug 2008 13:53:08 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=482</guid>	
		<description><![CDATA[1.setUp()方法在每个测试之前调用；<br/>2.tearDown()方法在每个测试之后调用；<br/>3.必须将jsUnitCore.js文件放在所有测试代码的前面；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=481</link>
			<title><![CDATA[使用JsUnit测试JavaScript代码]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sun,31 Aug 2008 02:16:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=481</guid>	
		<description><![CDATA[1.JsUnit测试函数不能有任何参数，必须有一个前缀test，例如testDateValidation()；<br/>2.测试页必须包含jsUnitCore.js文件，此文件从JsUnit网站（http://www.jsunit.net/）下载；<br/>3.可以将测试函数放在单独文件中，这时需要使用exposeTestFunctionNames()方法；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0808/5200883121541.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=480</link>
			<title><![CDATA[JS中模拟类的继承]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sat,30 Aug 2008 20:50:03 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=480</guid>	
		<description><![CDATA[JavaScript的prototype继承机制不是一种自然的编程方法，可以通过一个函数来实现基于类的继承方法；<br/>实现方法如下：<br/>function&nbsp;createInheritance(parent,&nbsp;child){<br/>&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(var&nbsp;prototype&nbsp;in&nbsp;parent)&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;if&nbsp;(!child[prototype]){<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;child[prototype]&nbsp;=&nbsp;parent[prototype];<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>}<br/>1.函数中有两个参数，分别是父对象和子对象；<br/>2.函数迭代处理父对象中所有成员（属性和方法），如果当前成员在子对象中不存在，则复制到子对象中；<br/>3.这样就相当于子类从父类中继承了自己没有覆盖的所有成员。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=479</link>
			<title><![CDATA[JS中使用私有属性隐藏信息]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sat,30 Aug 2008 20:10:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=479</guid>	
		<description><![CDATA[1.私有属性在构造函数中使用var关键词字定义；<br/>2.私有属性只能由特权函数公用访问；<br/>3.特权函数是在构造函数中使用this关键字定义的函数；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=477</link>
			<title><![CDATA[通过prototype属性建立面向对象的JavaScript]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sat,30 Aug 2008 02:21:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=477</guid>	
		<description><![CDATA[每个JavaScript对象都有prototype属性，保存着对另一个JavaScript对象的引用；<br/>这个对象作为当前对象的父对象；<br/>这种继承结构是一种“has&nbsp;a”的关系。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=476</link>
			<title><![CDATA[eSHOP网上书店 V0.7（Struts框架）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Wed,20 Aug 2008 13:08:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=476</guid>	
		<description><![CDATA[使用Struts框架：<br/>1.使用Struts标签替换相应代码；<br/>2.彻底解决乱码问题；<br/>3.搜索不区分大小写；<br/>4.使用Ajax实现图书简介提示框功能；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=475</link>
			<title><![CDATA[eSHOP网上书店 V0.6（图书搜索模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sat,16 Aug 2008 16:49:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=475</guid>	
		<description><![CDATA[订单、帐户管理模块:<br/>1.输入关键字搜索所有商品；<br/>2.在搜索结果页面中可以选择栏目缩小搜索范围；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0808/a2008816164835.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=474</link>
			<title><![CDATA[eSHOP网上书店 V0.5（订单、帐户管理模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Fri,15 Aug 2008 20:24:01 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=474</guid>	
		<description><![CDATA[订单、帐户管理模块:<br/>1.确认订单后将订单信息写入数据库；<br/>2.用户在我的帐户中可以查看自己的订单、修改用户信息；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0808/s2008815201520.gif" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=473</link>
			<title><![CDATA[Struts中将参数封装实体类作为Form属性（登录模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Thu,14 Aug 2008 23:57:51 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=473</guid>	
		<description><![CDATA[将参数封装实体类作为Form属性可以增强程序的可维护性；<br/>数据库字段增减时不需要修改Form和Action代码；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=472</link>
			<title><![CDATA[Struts国际化（登录模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Thu,14 Aug 2008 23:52:31 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=472</guid>	
		<description><![CDATA[Struts国际化：<br/>资源文件不支持中文编码，页面上显示乱码；<br/>解决方法是使用JDK的bin目录下的native2ascii.exe转换编码：<br/>1.打开程序，输入中文，回车后复制生成的编码；<br/>2.使用命令转换文件编码：<br/>native2ascii&nbsp;-encoding&nbsp;gbk&nbsp;待转换的文件名&nbsp;转换后的文件名<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=471</link>
			<title><![CDATA[使用Struts的动态Form实现计算器功能]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Thu,14 Aug 2008 23:47:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=471</guid>	
		<description><![CDATA[DynaActionForm通过struts-config.xml配置参数创建Form；<br/>使用动态Form可以省略ActionForm类，减少工作量；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=470</link>
			<title><![CDATA[使用Struts的DispatchAction实现计算器功能]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Thu,14 Aug 2008 23:33:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=470</guid>	
		<description><![CDATA[DispatchAction可以根据传入参数值自动选择调用的方法。<br/>1.在struts-config.xml中配置参数：parameter=&quot;&quot;；<br/>2.为前台页面的各种操作设置不同的参数值；<br/>3.DispatchAction中根据传入参数值自动选择调用的方法；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=469</link>
			<title><![CDATA[使用Struts框架的简单登录模块]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Wed,13 Aug 2008 23:58:51 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=469</guid>	
		<description><![CDATA[1.ActionForm中使用validate方法验证用户名和密码格式，不符合格式则返回输出错误信息，符合格式则进入下一步；<br/>2.Action中验证用户名和密码是否合法，合法则跳转到欢迎页面，否则返回输出登录失败信息；<br/>3.使用资源文件保存网页中的提示信息；&nbsp;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=468</link>
			<title><![CDATA[使用Struts框架的标准HelloWorld程序]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Wed,13 Aug 2008 22:13:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=468</guid>	
		<description><![CDATA[1.ActionForm中使用reset方法初始化数据，validate方法验证数据格式；<br/>2.Action中验证数据是否符合业务需求；<br/>3.使用常量类管理常量；<br/>4.使用资源文件保存网页中的提示信息；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=467</link>
			<title><![CDATA[使用Struts框架编写加法计算器]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Tue,12 Aug 2008 22:37:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=467</guid>	
		<description><![CDATA[使用Struts编写加法计算器的步骤：<br/>1.给项目添加Struts支持；<br/>2.添加业务逻辑类；<br/>3.添加Struts视图组件ActionForm；<br/>4.添加Struts控制器组件Action；<br/>5.添加JSP页面；<br/>6.配置struts-config.xml；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=466</link>
			<title><![CDATA[使用Struts框架的简单HelloWorld程序]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Tue,12 Aug 2008 22:14:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=466</guid>	
		<description><![CDATA[使用Struts编写HelloWorld程序的步骤：<br/>1.给项目添加Struts支持；<br/>2.添加Struts视图组件ActionForm；<br/>3.添加Struts控制器组件Action；<br/>4.添加JSP页面；<br/>5.配置struts-config.xml；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=465</link>
			<title><![CDATA[eSHOP网上书店 V0.4（图书列表详情模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Mon,11 Aug 2008 23:53:22 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=465</guid>	
		<description><![CDATA[图书列表详情模块:<br/>1.通过Servlet从数据库中取出类别和图书信息，放入request区域的属性中；<br/>2.在JSP页面中使用JSTL和EL表达式取得类别和图书信息并输出；<br/>3.修正购物车中修改数量后价格不变的错误；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0808/d200881201520.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=464</link>
			<title><![CDATA[eSHOP网上书店 V0.3（购物车模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sun,10 Aug 2008 23:52:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=464</guid>	
		<description><![CDATA[购物车模块:<br/>1.点击购买商品，服务器判断session中是否有购物车，没有则创建；<br/>2.检查购物车中是否有该商品，如果有则将其数量加1，没有则创建商品类，加入购物车；<br/>3.使用Ajax修改删除购物车中的商品清单；<br/><div align="center"><img src="http://mgc.name/attachments/month_0808/520088120035.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=463</link>
			<title><![CDATA[eSHOP网上书店 V0.2（会员登录模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sat,09 Aug 2008 23:59:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=463</guid>	
		<description><![CDATA[会员登录模块:<br/>1.使用Ajax验证用户合法性；<br/>2.合法用户跳转到首页，非法用户弹出提示框；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0808/d20088100910.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=462</link>
			<title><![CDATA[eSHOP网上书店 V0.1（会员注册模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sat,09 Aug 2008 21:10:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=462</guid>	
		<description><![CDATA[会员注册模块:<br/>1.用户填写表单时验证：使用JavaScript验证用户输入的格式是否正确，使用Ajax验证用户名和邮箱是否在数据库中存在；<br/>2.用户提交表单时验证：使用JavaScript验证用户输入的格式是否正确；<br/>3.写入数据库前验证：使用Servlet、JavaBean验证用户输入的数据。<br/><br/><div align="center">&nbsp;<img src="http://mgc.name/attachments/month_0808/h200889211635.jpg" border="0" alt=""/>&nbsp;</div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=461</link>
			<title><![CDATA[JSP中JSTL核心标签库的<c:forEach>标签]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Thu,07 Aug 2008 23:59:21 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=461</guid>	
		<description><![CDATA[&lt;c:forEach&gt;标签为循环控制，其属性如下：<br/>var:存放现在指到的成员；<br/>items:被迭代的集合对象；<br/>varStatus:存放现在指到的相关成员信息；<br/>begin:开始位置；<br/>end:结束位置；<br/>step:每次迭代的间隔数；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=460</link>
			<title><![CDATA[JSP中JSTL核心标签库的<c:choose>标签]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Thu,07 Aug 2008 23:58:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=460</guid>	
		<description><![CDATA[c:choose标签用来选择执行语句<br/>当c:when的test中判断结果为true时执行该标签中的内容；<br/>如果所有c:when的test中判断结果都为false，则执行c:otherwise中的内容；<br/><br/>格式如下：<br/>&lt;c:choose&gt;<br/>&nbsp;&nbsp;&lt;c:when&nbsp;test=&quot;testCondition&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Content1<br/>&nbsp;&nbsp;&lt;/c:when&gt;<br/>&nbsp;&nbsp;&lt;c:when&nbsp;test=&quot;testCondition&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Content2<br/>&nbsp;&nbsp;&lt;/c:when&gt;<br/>&nbsp;&nbsp;&lt;c:otherwise&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Content3<br/>&nbsp;&nbsp;&lt;/c:otherwise&gt;<br/>&lt;/c:choose&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=459</link>
			<title><![CDATA[JSP中JSTL核心标签库的<c:if>标签]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Thu,07 Aug 2008 22:50:27 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=459</guid>	
		<description><![CDATA[c:if标签的两种形式如下：<br/>1.无体：<br/>&lt;c:if&nbsp;test=&quot;testCondition&quot;&nbsp;[var=&quot;varName&quot;]&nbsp;[scope=&quot;page|request|session|application&quot;]&nbsp;/&gt;<br/>2.有体：<br/>&lt;c:if&nbsp;test=&quot;testCondition&quot;&nbsp;[var=&quot;varName&quot;]&nbsp;[scope=&quot;page|request|session|application&quot;]&nbsp;/&gt;<br/>Content<br/>&lt;/c:if&gt;<br/><br/>test中执行判断，结果为true时执行Content中的内容，var保存test中的布尔值，scope设置属性范围]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=458</link>
			<title><![CDATA[JSP中JSTL核心标签库的<c:set>标签]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Thu,07 Aug 2008 22:44:21 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=458</guid>	
		<description><![CDATA[c:set标签两种不同的设置方法如下：<br/>1.var:设置作用域属性；<br/>2.target:设置bean属性或Map值；<br/><br/>c:set标签的两种形式如下：<br/>1.有体：<br/>&lt;c:set&nbsp;var=&quot;name&quot;&nbsp;scope=&quot;session&quot;&gt;<br/>value<br/>&lt;/c:set&gt;<br/>2.无体：<br/>&lt;c:set&nbsp;var=&quot;name&quot;&nbsp;scope=&quot;session&quot;&nbsp;value=&quot;value&quot;&nbsp;/&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=457</link>
			<title><![CDATA[JSP中EL隐含对象]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Thu,07 Aug 2008 21:27:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=457</guid>	
		<description><![CDATA[EL隐含对象有以下11种：<br/>1.pageContext:取得用户请求或页面信息；<br/>2.pageScope:相当于page.getAttribute(name);<br/>3.requestScope:相当于request.getAttribute(name);<br/>4.sessionScope:相当于session.getAttribute(name);<br/>5.applicationScope:相当于application.getAttribute(name);<br/>6.param:相当于request.getParameter(name);<br/>7.paramValues:相当于request.getParameterValues(name);<br/>8.header:相当于request.getHeader(name);<br/>9.headerValues:相当于request.getHeaders(name);<br/>10.cookie:相当于request.getCookies();<br/>11.initParam:相当于config.getInitParameter(name);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=456</link>
			<title><![CDATA[使用Ajax打造属于自己的搜索引擎]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Thu,07 Aug 2008 20:34:01 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=456</guid>	
		<description><![CDATA[1.建立Yahoo!网关，将XMLHttpRequest请求转发到Yahoo!提供API的Web服务；<br/>2.Yahoo!做出响应时，网关将响应转发到客户端；<br/>3.客户端接收到响应，显示搜索结果；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0808/2200887203420.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=455</link>
			<title><![CDATA[使用Ajax实现自动完成]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Wed,06 Aug 2008 23:09:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=455</guid>	
		<description><![CDATA[1.初始化：使用DIV作为提示框，初始化时无边框，背景与网页背景一致；<br/>2.在文本框输入时，触发onKeyUp事件，在数据库中查询以用户输入字符串开头的所有字符串，返回给客户端；<br/>3.客户端接收到响应后清除提示框，将返回的字符串加入到D提示框中，边框设为1，根据文本框的位置设定提示框的位置；<br/>4.鼠标点击提示框中的字符串时，改变背景色和前景色，实现选中效果，将字符串设置到文本框中，通过上下方向键可以循环选择；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0808/l20088720612.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=454</link>
			<title><![CDATA[使用Ajax动态更新页面]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Tue,05 Aug 2008 23:59:03 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=454</guid>	
		<description><![CDATA[1.初始化：从数据库中提取信息，在页面中显示，创建添加表单和删除按钮（本例中使用动态数组模拟数据库）；<br/>2.添加：在表单中输入数据，提交，服务器验证数据合法性，向数据库中插入数据，返回XML文档给客户端；<br/>客户端接收XML文档，提取信息，判断数据是否成功插入数据库，如果成功则更新页面，根据返回值创建一行数据；<br/>3.删除：点击删除按钮，服务器从数据库中删除该记录，返回XML文档给客户端；<br/>客户端接收XML文档，提取信息，判断数据是否从数据库中成功删除，如果成功则更新页面，删除该行数据；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=453</link>
			<title><![CDATA[使用Ajax创建工具提示框]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Mon,04 Aug 2008 15:57:46 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=453</guid>	
		<description><![CDATA[功能：鼠标移到某个网页元素上，显示提示框；<br/>1.初始化DIV提示框，设置DIV元素不可见；<br/>2.鼠标移动到网页元素上，触发onMouseOver事件，将该元素传递给JS函数处理；<br/>3.将此元素上的信息通过XMLHttpRequest提交给服务器，获得返回信息；<br/>4.计算此元素的偏移坐标；<br/>5.根据偏移坐标设置DIV的绝对位置，并将服务器返回信息加入到DIV中，设置DIV为可见；<br/>6.鼠标从此元素上移走时触发onMouseOut事件，清除DIV中内容，设置为不可见；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0808/a20088415589.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=452</link>
			<title><![CDATA[使用Ajax显示进度条]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Sun,03 Aug 2008 23:58:31 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=452</guid>	
		<description><![CDATA[1.进度条由DIV框和数个有背景颜色的SPAN组成；<br/>2.初始化时DIV不可见，SPAN背景色与网页背景色一致；<br/>3.根据服务器返回的进度百分比，计算出应显示几个SPAN块，并为SPAN块设置背景色；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0808/12008840353.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=451</link>
			<title><![CDATA[网页聊天室系统 V1.3（使用Ajax优化自动更新页面）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sun,03 Aug 2008 18:11:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=451</guid>	
		<description><![CDATA[1.3版更新内容：<br/>1.优化更新：使用Ajax自动更新页面（不刷新页面）；<br/>2.滚动条优化：使用JS实现滚动条始终在最下面，保证能看到最新信息；<br/>3.输入优化：使用JS取得消息文本框焦点，每次发送后光标仍在文本框内，可以连续发送、输入；<br/>4.关闭退出优化：修正了关闭后不能正常退出聊天室的问题；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0808/g200883181354.jpg" border="0" alt=""/></div><br/><br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=450</link>
			<title><![CDATA[Ajax实现自动更新页面（不刷新页面更新网页内容）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Sun,03 Aug 2008 17:49:56 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=450</guid>	
		<description><![CDATA[1.使用XMLHttpRequest向服务器发送请求，接受信息改变网页中某些元素的内容；<br/>2.使用setTimeout设置重复发送请求间隔时间，起到自动更新页面的效果；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=449</link>
			<title><![CDATA[网页聊天室系统 V1.2（Ajax实现关闭网页时清除Session）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sun,03 Aug 2008 01:38:09 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=449</guid>	
		<description><![CDATA[1.2版更新内容：<br/>关闭网页时清除Session：<br/>通常情况下关闭网页时并不能清除Session，聊天室中的在线用户列表还会保留用户昵称；<br/>使用Ajax可以解决这一问题，当页面关闭时触发onunload事件，调用函数通过XMLHttpRequest向注销页面发送空数据，注销页面清除Session。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=448</link>
			<title><![CDATA[网页聊天室系统 V1.1（Filter过滤器验证用户是否登录）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sun,03 Aug 2008 01:21:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=448</guid>	
		<description><![CDATA[1.1版更新内容：<br/>1.Filter过滤器验证：使用Filter过滤器验证用户是否登录，没有登录则返回登录页面；<br/>2.每条消息后显示发表时间；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=447</link>
			<title><![CDATA[网页聊天室系统 V1.0]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sat,02 Aug 2008 23:55:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=447</guid>	
		<description><![CDATA[1.0版内容：<br/>1.登录处理：输入昵称登录，昵称为空或昵称已被别人使用时弹出提示框；<br/>2.监听器处理：监听器监听Session属性创建和销毁事件，初始化在线用户和消息的applications属性，用户登录后将昵称加入在线用户、在消息中加入公告，注销后移除昵称；<br/>3.刷新处理：消息窗口和在线用户窗口每1秒刷新一次；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=446</link>
			<title><![CDATA[使用JSP判定指定日期是星期几]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,01 Aug 2008 23:23:21 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=446</guid>	
		<description><![CDATA[1.按照规定格式输入日期，提交；<br/>2.接受参数，使用SimpleDateFormat处理字符串，如果符合格式转换为Date类型；<br/>3.使用SimpleDateFormat(date,&quot;E&quot;)取得日期的星期数；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=445</link>
			<title><![CDATA[JSP中使用exception对象显示出错信息]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,01 Aug 2008 23:06:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=445</guid>	
		<description><![CDATA[exception对象：<br/>1.是java.lang.Throwable类的一个实例；<br/>2.存储了JSP文件运行时所产生的异常信息；<br/>3.不能在一般的JSP文件中直接使用；<br/>4.只能在错误显示页面中使用，必须在页面的page指令中设定&lt;%@page&nbsp;isErrorPage=&quot;true&quot;%&gt;<br/>5.经常被用来捕捉JSP页面中的异常。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=444</link>
			<title><![CDATA[Ajax实现下拉列表联动]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Fri,01 Aug 2008 22:22:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=444</guid>	
		<description><![CDATA[1.取得一级列表中的值，通过XMLHttpRequest发送给服务器；<br/>2.服务器根据传入参数在内存或数据库中找到相应信息，返回给客户端；<br/>3.客户端根据返回值更新二级列表。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=443</link>
			<title><![CDATA[Ajax中读取响应首部]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Thu,31 Jul 2008 23:36:54 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=443</guid>	
		<description><![CDATA[Ajax中忽略内容，读取响应首部的方法是使用head请求。<br/>从XMLHttpRequest对象中读取相应首部有如下几个方法：<br/>getAllResponseHeaders();读取所有头部信息；<br/>getResponseHeader(&quot;headName&quot;);读取指定的头部信息；<br/>status：取得服务器响应的HTTP状态码。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=442</link>
			<title><![CDATA[使用Ajax验证表单参数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Thu,31 Jul 2008 23:25:40 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=442</guid>	
		<description><![CDATA[1.当触发表单中的文本框相应的事件时，通过XMLHttpRequest向服务器提交参数；<br/>2.服务器验证后返回信息，提示用户；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=441</link>
			<title><![CDATA[Ajax中使用JSON向服务器发送数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Thu,31 Jul 2008 22:42:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=441</guid>	
		<description><![CDATA[JSON是一种文本格式，主要有两种数据结构：<br/>·键值对集合；<br/>·值的有序列表；<br/>JSON编码比XML简短，是一个轻量级的数据互换格式。<br/>参考网站：<a target="_blank" href="http://www.json.org">http://www.json.org</a><br/>本例中使用了JSON的JavaScript库和Java库，<br/><img src="http://mgc.name/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/> <a href="http://mgc.name/attachments/month_0807/22008731223614.rar" target="_blank">点击下载JavaScript库</a><br/>官方提供的都是源码库，Java库我已经打成jar包。<br/><img src="http://mgc.name/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/> <a href="http://mgc.name/attachments/month_0807/g2008731223815.rar" target="_blank">点击下载Java库</a><br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=440</link>
			<title><![CDATA[使用JS验证表单提交参数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Wed,30 Jul 2008 22:00:31 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=440</guid>	
		<description><![CDATA[使用按钮触发onClick事件调用JS验证表单参数是否为空或格式是否错误；<br/>发现不符合要求弹出提示框，全部符合要求再调用表单的submit方法提交到服务器。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=439</link>
			<title><![CDATA[JS实现网页跳转和返回]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Wed,30 Jul 2008 20:40:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=439</guid>	
		<description><![CDATA[跳转到url表示的页面：window.location.href&nbsp;=&nbsp;url;<br/>返回到上一个页面：window.history.go(-1);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=438</link>
			<title><![CDATA[JS中使用setTimeout实现时钟功能]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Wed,30 Jul 2008 16:23:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=438</guid>	
		<description><![CDATA[setTimeout(&quot;调用函数&quot;,定时时间)：每隔一段时间调用一个函数，时间单位为毫秒]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=437</link>
			<title><![CDATA[JS小游戏——猜数字]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Wed,30 Jul 2008 15:48:22 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=437</guid>	
		<description><![CDATA[系统随机产生0-10之间的整数，<br/>用户输入一个数，如果猜中系统会返回成功信息和所猜次数，<br/>如果没有猜中系统返回大于或小于的信息，提示用户重新输入数字直至猜中。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=436</link>
			<title><![CDATA[JS中的eval和isNaN函数用法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Wed,30 Jul 2008 15:20:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=436</guid>	
		<description><![CDATA[eval：计算字符串表达式的值；<br/>isNaN：判断参数是否为非数字，true表示非数字，false表示数字；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=435</link>
			<title><![CDATA[Ajax中使用XMLHttpRequest发送XML请求参数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Tue,29 Jul 2008 23:59:57 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=435</guid>	
		<description><![CDATA[1.使用JavaScript根据提交参数创建XML串（结束标签使用&lt;\/&nbsp;&gt;是为了适应不同的浏览器）；<br/>2.使用XMLHttpRequest的send(xml)方法将XML发送到服务器；<br/>3.使用Servlet从请求中抽取XML，并转换为Document对象；<br/>4.处理Document文档，提取信息并输出。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=434</link>
			<title><![CDATA[Ajax中使用XMLHttpRequest发送请求参数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Tue,29 Jul 2008 16:11:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=434</guid>	
		<description><![CDATA[使用XMLHttpRequest发送请求参数有以下两种形式：<br/>1.GET：<br/>通过open(&quot;GET&quot;,url)指定使用GET方式发送请求，将参数写在url中；<br/>2.POST：<br/>通过open(&quot;GET&quot;,url)指定使用GET方式发送请求；<br/>使用send(args)发送参数；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=433</link>
			<title><![CDATA[Oracle中存储过程的创建和调用]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Tue,29 Jul 2008 01:21:14 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=433</guid>	
		<description><![CDATA[1.Oracle中创建存储过程的格式如下：<br/>create&nbsp;[or&nbsp;replace]&nbsp;procedure&nbsp;&lt;过程名&gt;<br/>&lt;参数1&gt;，&nbsp;[方式1]&nbsp;，&lt;数据类型1&gt;,<br/>&lt;参数2&gt;，&nbsp;[方式2]&nbsp;，&lt;数据类型2&gt;,<br/>...<br/>is&nbsp;|&nbsp;as<br/>begin<br/>PL/SQL<br/>end;<br/>其中参数in表示输入，out表示输出，in&nbsp;out&nbsp;表示既可以输入也可以输出；<br/><br/>2.调用存储过程的方法如下：<br/>a.使用execute命令调用：<br/>SQL&gt;execute&nbsp;proc_name(part1,&nbsp;part2);<br/>b.在PL/SQL块内部调用：<br/>declare<br/>&nbsp;&nbsp;part1,part2;<br/>begin<br/>&nbsp;&nbsp;proc_name(part1,&nbsp;part2);<br/>end;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=432</link>
			<title><![CDATA[Oracle中使用触发器插入自增字段]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Tue,29 Jul 2008 00:55:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=432</guid>	
		<description><![CDATA[创建触发器格式如下：<br/>create&nbsp;[or&nbsp;replace]&nbsp;trigger&nbsp;name<br/>{before|after}<br/>{event&nbsp;[or...]}<br/>on&nbsp;table<br/>[for&nbsp;[each]&nbsp;{row|stament}]<br/>[when(condition)]<br/>plsql&nbsp;block&nbsp;|&nbsp;call&nbsp;procedure&nbsp;statement]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=431</link>
			<title><![CDATA[Oracle中PL/SQL的异常处理]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Tue,29 Jul 2008 00:36:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=431</guid>	
		<description><![CDATA[1.PL/SQL异常处理包括预定义异常和自定义异常；<br/>&nbsp;&nbsp;使用raise自定义异常；<br/>2.异常处理格式：<br/>begin<br/>exception<br/>&nbsp;&nbsp;when&nbsp;exception1&nbsp;then<br/>&nbsp;&nbsp;...<br/>&nbsp;&nbsp;when&nbsp;exception2&nbsp;then<br/>&nbsp;&nbsp;...<br/>&nbsp;&nbsp;when&nbsp;others&nbsp;then<br/>&nbsp;&nbsp;...<br/>end;<br/>3.创建错误信息格式：<br/>raise_application_error(error_number,&nbsp;error_massage);<br/>错误编号必须在-20000到-20999之间。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=430</link>
			<title><![CDATA[Oracle中PL/SQL的动态SQL语句]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Tue,29 Jul 2008 00:11:04 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=430</guid>	
		<description><![CDATA[1.动态SQL是指在PL/SQL执行时生成的SQL语句；<br/>2.编译程序时不处理动态SQL，而是在程序运行时构造语句并执行；<br/>3.DDL语句和会话控制语句不能直接在PL/SQL中使用，可以通过动态SQL执行；<br/>4.动态SQL的格式如下：<br/>execute&nbsp;immediate&nbsp;dynamic_sql_string<br/>[into&nbsp;define_variable_list]<br/>[using&nbsp;bing_argument_list];]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=429</link>
			<title><![CDATA[Oracle中PL/SQL的循环语句]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Mon,28 Jul 2008 23:43:04 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=429</guid>	
		<description><![CDATA[PL/SQL的三种形式的循环：<br/>1.LOOP（无条件循环）：<br/>loop<br/>&nbsp;&nbsp;statements;<br/>end&nbsp;loop;<br/>2.WHILE（有条件循环）：<br/>while&nbsp;condition&nbsp;loop<br/>&nbsp;&nbsp;statements;<br/>end&nbsp;loop;<br/>3.FOR（固定次数循环）：<br/>for&nbsp;counter&nbsp;in&nbsp;value1&nbsp;..&nbsp;value2<br/>loop<br/>&nbsp;&nbsp;statements;<br/>end&nbsp;loop;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=428</link>
			<title><![CDATA[Oracle中PL/SQL的CASE语句]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Mon,28 Jul 2008 23:33:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=428</guid>	
		<description><![CDATA[CASE语句的格式如下：<br/>case&nbsp;变量<br/>&nbsp;&nbsp;when&nbsp;表达式1&nbsp;then&nbsp;值1;<br/>&nbsp;&nbsp;when&nbsp;表达式2&nbsp;then&nbsp;值2;<br/>&nbsp;&nbsp;when&nbsp;表达式3&nbsp;then&nbsp;值3;<br/>&nbsp;&nbsp;else&nbsp;&nbsp;&nbsp;值4;<br/>end;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=427</link>
			<title><![CDATA[Oracle中PL/SQL的IF语句]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Mon,28 Jul 2008 23:30:26 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=427</guid>	
		<description><![CDATA[PL/SQL的三种形式的IF语句：<br/>1.if&nbsp;...&nbsp;then&nbsp;...&nbsp;end&nbsp;if<br/>2.if&nbsp;...&nbsp;then&nbsp;...&nbsp;else&nbsp;...&nbsp;end&nbsp;if<br/>3.if&nbsp;...&nbsp;then&nbsp;...&nbsp;elsif&nbsp;...&nbsp;then&nbsp;...&nbsp;end&nbsp;if]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=426</link>
			<title><![CDATA[Oracle中PL/SQL语句的变量、常量声明和赋值]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Mon,28 Jul 2008 15:22:51 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=426</guid>	
		<description><![CDATA[1.声明：<br/>a.格式：Variable_name&nbsp;[constant]&nbsp;databyte&nbsp;[not&nbsp;null]&nbsp;[:=default&nbsp;expression]<br/>b.变量与常量声明基本一致，使用constant声明的为常量，不使用为变量；<br/>c.使用%TYPE和%ROWTYPE声明可以使变量的类型与表中字段类型或整个记录类型保持一致；<br/><br/>2.赋值：<br/>a.使用“:=”赋值；<br/>b.使用“select&nbsp;into”&nbsp;或&nbsp;“fetch&nbsp;into”赋值；<br/>c.使用“&str”从键盘输入赋值；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=425</link>
			<title><![CDATA[Oracle中PL/SQL语句的格式]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Mon,28 Jul 2008 14:58:21 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=425</guid>	
		<description><![CDATA[--声明部分：声明变量、游标、自定义异常；<br/>[declare<br/>&nbsp;&nbsp;declarations]<br/>--可执行部分：包含SQL和PL/SQL语句的可执行部分；<br/>begin<br/>executable&nbsp;statements<br/>--异常处理部分：指定出现错误是需要执行的操作；<br/>[exception<br/>&nbsp;&nbsp;handlers]<br/>end;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=424</link>
			<title><![CDATA[Ajax中解决浏览器兼容性问题]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Sun,27 Jul 2008 23:59:16 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=424</guid>	
		<description><![CDATA[1.将元素加入到表格中：<br/>使用appendChild将&lt;tr&gt;元素直接加到&lt;table&gt;中，在低版本的IE中不会出现；<br/>解决方法：在&lt;table&gt;中加入&lt;tbody&gt;元素，再将&lt;tr&gt;加入到&lt;tbody&gt;中；<br/>2.设置class属性：<br/>使用setAttribute设置class属性，在IE中不能正确的设置；<br/>解决方法：同时使用setAttribute(&quot;class&quot;,&nbsp;&quot;newClassName&quot;)和SetAttribute(&quot;className&quot;,&nbsp;&quot;newClassName&quot;)；<br/>3.设置style属性：<br/>使用setAttribute设置style属性，在IE不能正确的设置；<br/>解决方法：使用&lt;element&gt;.style.cssText&nbsp;=&nbsp;&quot;font:12px;&quot;设置。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=423</link>
			<title><![CDATA[Ajax中使用DOM动态编辑页面]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Sun,27 Jul 2008 23:54:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=423</guid>	
		<description><![CDATA[动态编辑页面所用到的DOM的属性和方法：<br/>document.createElement(tagName)：创建由tagName指定的元素；<br/>document.createTextNode(text)：创建一个包含静态文本的节点；<br/>&lt;element&gt;.appendChild(childNode)：增加一个子节点；<br/>&lt;element&gt;.getAttribute(name)：获得元素的name属性值；<br/>&lt;element&gt;.setAttribute(name,&nbsp;vlue)：设置元素的name属性值；<br/>&lt;element&gt;.insertBefore(newNode,&nbsp;targetNode)：将子节点插入到targetNode元素的前面；<br/>&lt;element&gt;.removeAttribute(name)：删除name属性；<br/>&lt;element&gt;.removeChild(childNode)：删除childNode节点；<br/>&lt;element&gt;.replaceChild(newNode,&nbsp;oldNode)：替换节点；<br/>&lt;element&gt;.hasChildNodes()：判断元素是否有子节点；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=422</link>
			<title><![CDATA[Ajax中使用DOM处理服务器响应的XML]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Sun,27 Jul 2008 01:31:28 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=422</guid>	
		<description><![CDATA[1.使用XMLHttprequest对象的responseXML属性获取服务器响应的XML文档；<br/>2.使用DOM遍历XML文档，取出需要的信息。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=421</link>
			<title><![CDATA[Ajax中使用XMLHttpRequest处理服务器响应]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Sat,26 Jul 2008 22:39:48 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=421</guid>	
		<description><![CDATA[1.为了简化服务器处理，重点关注前台处理，本例使用XML文件提供HTML代码，使用HTML元素的innerHTML属性显示服务器响应。<br/>2.XMLHttpRequest接收到服务器响应后，使用responseText属性获得服务器的相应；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=420</link>
			<title><![CDATA[Ajax中使用XMLHttpRequest发送简单请求]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Sat,26 Jul 2008 22:04:12 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=420</guid>	
		<description><![CDATA[1.创建XMLHttpRequest对象；<br/>2.为onreadystatechange属性设置回调函数指针，当XMLHttpRequest对象内部状态发生变化时，就会调用这个函数；<br/>3.使用open()方法指定请求的属性；<br/>4.用send()方法将请求发送给服务器；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=419</link>
			<title><![CDATA[Ajax中使用iframe模拟远程脚本]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Sat,26 Jul 2008 21:28:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=419</guid>	
		<description><![CDATA[1.在iframe.html中定义函数；<br/>2.通过超链接将server.html引入到iframe.html中的子框架中；<br/>3.server.html在子框架中调用父框架的函数；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=418</link>
			<title><![CDATA[Ajax中XMLHttpRequest对象的方法和属性]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Sat,26 Jul 2008 17:11:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=418</guid>	
		<description><![CDATA[1.XMLHttpRequest的方法：<br/>abort()：停止当前请求；<br/>getAllResponseHeaders()：把HTTP请求的所有相应首部作为键/值对返回；<br/>getResponseHeader(&quot;header&quot;)：返回指定首部的串值；<br/>open(&quot;method&quot;,&nbsp;&quot;url&quot;)：建立对服务器的调用；<br/>send(content)：向服务器发送请求；<br/>setRequestHeader(&quot;header&quot;,&nbsp;&quot;value&quot;)：把指定首部设置为所提供的值，在设置任何首部之前必须先调用open();<br/><br/>2.XMLHttpRequest的属性；<br/>onreadystatechange：每个状态改变时都会触发这个事件处理器，通常会调用一个JavaScript函数；<br/>readyState：请求的状态，有5个可取值：0=未初始化，1=正在加载，2=已加载，3=交互中，4=完成；<br/>responseText：服务器的相应，表示为一个串；<br/>responseXML：服务器的相应，表示为XML，这个对象可以解析为一个DOM对象；<br/>status：服务器的HTTP状态码，200=OK，404=Not&nbsp;Found，等等；<br/>statusText：HTTP状态码的相应文本，OK、Not&nbsp;Found等等；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=417</link>
			<title><![CDATA[Ajax中创建XMLHttpRequest对象]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Sat,26 Jul 2008 16:54:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=417</guid>	
		<description><![CDATA[1.声明一个全局变量xmlHttp；<br/>2.如果浏览器支持ActiveX对象，则使用ActiveX创建XMLHttpRequest对象；否则使用本地JavaScript对象来创建；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=416</link>
			<title><![CDATA[使用DWR框架开发第一个Ajax程序——HelloWorld]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Fri,25 Jul 2008 22:48:14 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=416</guid>	
		<description><![CDATA[1.下载DWR开发包：<a target="_blank" href="http://directwebremoting.org/">http://directwebremoting.org/</a><br/>2.将dwr.jar、bsh-2.0b4.jar、bsf-2.3.jar、commons-logging-1.0.4.jar（从官方提供的实例中复制）文件导入WEB-INF\lib文件夹下；<br/>3.新建Java类：Hello.java；<br/>4.配置web.xml、dwr.xml；<br/>5.在JSP页面中调用DWR。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=415</link>
			<title><![CDATA[Java数组排序——快速排序法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,22 Jul 2008 23:58:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=415</guid>	
		<description><![CDATA[快速排序法：<br/>1.将数组分为两个部分，一部分中的任意一个数都小于另一部分中的任意一个数；<br/>2.将两个部分分别递归处理；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=414</link>
			<title><![CDATA[学生信息管理系统V0.3（优化文件存取、增加修改删除功能）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,22 Jul 2008 23:50:23 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=414</guid>	
		<description><![CDATA[0.3版更新内容：<br/>1.程序启动时从文件中加载学生信息到HashMap中；<br/>2.所有操作都在内存中进行，操作完成后写入文件；<br/>3.增加修改、删除功能。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=413</link>
			<title><![CDATA[学生信息管理系统V0.2（使用文件存储数据）【MVC模式、DAO模式、Factory模式】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,20 Jul 2008 23:30:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=413</guid>	
		<description><![CDATA[0.2版更新内容：<br/>1.使用文件存储数据；<br/>2.使用HashMap查找学生信息；<br/>3.使用DAO模式；<br/>4.使用Factory模式；<br/>5.使用BufferedReader、PrintWriter读写文件。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=412</link>
			<title><![CDATA[学生信息管理系统V0.1（字符界面、内存中存储数据）【MVC模式】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,18 Jul 2008 00:01:00 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=412</guid>	
		<description><![CDATA[0.1版内容：<br/>1.字符界面；<br/>2.数据以Vector的形式存储在内存中；<br/>3.使用MVC设计模式；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=411</link>
			<title><![CDATA[Java中使用List实现Stack功能]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Jul 2008 15:57:14 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=411</guid>	
		<description><![CDATA[使用List实现Stack功能:<br/>1.封装List，不提供geter和seter方法；<br/>2.使用push和pop方法压栈、出栈；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=410</link>
			<title><![CDATA[JS中使用window.parent取得父框架]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Wed,16 Jul 2008 23:39:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=410</guid>	
		<description><![CDATA[window.parent:取得父框架]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=409</link>
			<title><![CDATA[JS中使用window.frames取得子框架集合]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Wed,16 Jul 2008 18:16:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=409</guid>	
		<description><![CDATA[使用window.frames取得框架集合;<br/>window.frames[index]：取得第index个框架；<br/>window.frames[&quot;frameName&quot;]：取得name为frameName的框架；<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=408</link>
			<title><![CDATA[Java在线聊天系统V1.4（重写代码、增加私聊功能）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,15 Jul 2008 23:43:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=408</guid>	
		<description><![CDATA[1.4版更新内容：<br/>1.窗体右侧显示在线用户；<br/>2.选中用户进行私聊。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0807/z2008716165642.JPG" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=407</link>
			<title><![CDATA[JS中添加删除列表框中的选项]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sun,13 Jul 2008 18:37:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=407</guid>	
		<description><![CDATA[1.添加选项：<br/>selectName.option[selectName.length]&nbsp;=&nbsp;new&nbsp;Option(value,text);<br/>2.删除选项；<br/>selectName.options[index]&nbsp;=&nbsp;null;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=406</link>
			<title><![CDATA[JS中取得被选中单选（复选）按钮的值]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sun,13 Jul 2008 17:56:19 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=406</guid>	
		<description><![CDATA[取得被选中单选（复选）按钮值的方法如下：<br/>1.取得指定name值的所有单选（复选）按钮对象；<br/>2.遍历所有对象，使用对象名.checked判断对象是否被选中；<br/>3.输出被选中的单选（复选）按钮value值；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=405</link>
			<title><![CDATA[JS中表单域的onFocus和onBlur事件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sun,13 Jul 2008 16:32:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=405</guid>	
		<description><![CDATA[onFocus事件：表单域取得焦点时触发事件；<br/>onBlur事件：表单域失去焦点时触发事件；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=404</link>
			<title><![CDATA[JS中使用focus()、blur()方法取得、失去表单域的焦点]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sun,13 Jul 2008 16:19:33 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=404</guid>	
		<description><![CDATA[focus()：取得表单域的焦点；<br/>blur()：失去表单域的焦点；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=403</link>
			<title><![CDATA[JS中引用表单元素的几种方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sun,13 Jul 2008 16:07:57 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=403</guid>	
		<description><![CDATA[JS中引用表单元素的方法如下：<br/>1.document.formName.elements[index];<br/>2.document.formName.elements(&quot;elementName&quot;);<br/>3.document.getElementById(&quot;idName&quot;);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=402</link>
			<title><![CDATA[JS中使用nodeValue取得节点的值]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sun,13 Jul 2008 02:53:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=402</guid>	
		<description><![CDATA[使用nodeValue取得节点的值；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=401</link>
			<title><![CDATA[JS中使用nodeName取得节点名]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sun,13 Jul 2008 02:48:16 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=401</guid>	
		<description><![CDATA[使用nodeName可以取得节点名]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=400</link>
			<title><![CDATA[JS中使用nextSibling和PreviousSibling引用兄弟节点]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sun,13 Jul 2008 02:33:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=400</guid>	
		<description><![CDATA[nextSibling：取得下一个兄弟节点；<br/>previousSibling：取得上一个兄弟节点；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=399</link>
			<title><![CDATA[JS中使用parentNode引用父节点]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sun,13 Jul 2008 02:11:09 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=399</guid>	
		<description><![CDATA[使用parentNode可以引用父节点]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=398</link>
			<title><![CDATA[JS中使用childNodes引用子节点]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sun,13 Jul 2008 01:30:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=398</guid>	
		<description><![CDATA[使用childNodes可以取得该节点的所有子节点；<br/>firstChild：取得第一个子节点；<br/>lastChild：取得最后一个子节点。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=397</link>
			<title><![CDATA[JS中使用getElementsByName取得指定name属性的对象数组]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sat,12 Jul 2008 23:57:53 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=397</guid>	
		<description><![CDATA[使用getElementsByName可以获得相同name属性值对象数组;<br/>使用循环输出每一个对象值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=396</link>
			<title><![CDATA[JS中使用getAttribute和setAttribute取得、设置属性]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sat,12 Jul 2008 22:42:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=396</guid>	
		<description><![CDATA[getAttribute：取得属性；<br/>setAttribute：设置属性；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=395</link>
			<title><![CDATA[JS中使用className设置CSS样式]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sat,12 Jul 2008 19:55:48 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=395</guid>	
		<description><![CDATA[使用className可以设置CSS样式]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=394</link>
			<title><![CDATA[JS中使用getElementsByTagName取得指定标签名的对象数组]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sat,12 Jul 2008 19:21:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=394</guid>	
		<description><![CDATA[使用getElementsByTagName取得指定标签名的对象数组；<br/>使用对象名.id取得该对象的id名；<br/>循环遍历输出所有使用该标签的对象id。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=393</link>
			<title><![CDATA[JS中使用getElementById取得指定ID的节点对象]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Sat,12 Jul 2008 18:59:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=393</guid>	
		<description><![CDATA[使用getElementById取得指定ID的节点对象;<br/>使用typeof&nbsp;查看该对象的类型]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=392</link>
			<title><![CDATA[Java中使用JTable显示数据库中表的内容]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,11 Jul 2008 23:30:19 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=392</guid>	
		<description><![CDATA[1.创建向量Vector保存数据库中数据；<br/>2.创建向量保存每列标题；<br/>3.创建表格数据模型DefaultTableModel；<br/>4.创建表格对象JTable；<br/>5.将JTable加入到课滚动的面板JScrollPane中；<br/>6.将JScrollPane加入到JFrame中。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=391</link>
			<title><![CDATA[Java使用Swing创建登录窗体并验证用户合法性（三层架构）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,11 Jul 2008 15:39:20 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=391</guid>	
		<description><![CDATA[视图层：<br/>1.Login.java:登录窗体；<br/>2.Admin.java:登录成功窗体；<br/><br/>处理层：<br/>1.User.java:用户类；<br/>2.ActionCheck.java:用户合法性验证类；<br/><br/>数据库层：<br/>DB.java:数据库类；<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=390</link>
			<title><![CDATA[Java使用Swing创建登录窗体并验证用户合法性]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,10 Jul 2008 23:52:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=390</guid>	
		<description><![CDATA[1.创建登录窗口；<br/>2.连接Oracle数据库验证用户是否合法；<br/>3.非法用户弹出对话框，合法用户进入管理窗体。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=389</link>
			<title><![CDATA[Java中使用重载构造方法打印杨辉三角]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,10 Jul 2008 15:31:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=389</guid>	
		<description><![CDATA[打印杨辉三角：<br/>调用无参构造方法打印9行杨辉三角；<br/>调用有参构造方法，指定行数；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=388</link>
			<title><![CDATA[Java中使用Scanner取得各种类型的输入数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,10 Jul 2008 13:18:16 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=388</guid>	
		<description><![CDATA[使用Scanner类可以方便的取得各种类型的输入数据。<br/>Scanner类位于java.util包。<br/>创建：Scanner&nbsp;sc&nbsp;=&nbsp;new&nbsp;Scanner();<br/>输入：<br/>&nbsp;&nbsp;sc.nextInt();取得整型值；<br/>&nbsp;&nbsp;sc.nextDouble;取得Double型值；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=387</link>
			<title><![CDATA[Magci新闻发布平台V0.3（后台管理）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sun,06 Jul 2008 01:45:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=387</guid>	
		<description><![CDATA[前台页面：<br/>1.index.jsp：首页；<br/>2.classlist.jsp：栏目列表页；<br/>3.readnews.jsp：文章正文页；<br/>4.search.jsp：搜索页面；<br/>5.header.jsp：头部页面；<br/>6.left.jsp：左部页面；<br/>7.right.jsp：右部页面；<br/>8.footer.jsp：底部页面；<br/>9.style.css：CSS样式文件；<br/><br/>后台页面：<br/>1.admin.jsp:管理首页；<br/>2.admin_class.jsp:栏目管理页；<br/>3.admin_class_new.jsp:添加栏目页；<br/>4.admin_class_modi.jsp:修改栏目页；<br/>5.admin_class_del.jsp:删除栏目页；<br/>6.admin_news.jsp:新闻管理页；<br/>7.admin_news_new.jsp:添加新闻页；<br/>8.admin_news_modi.jsp:修改新闻页；<br/>9.admin_news_del.jsp:删除新闻页；<br/>10.admin_news_search.jsp:搜索新闻页；<br/>11.admin_left.jsp:左栏菜单页；<br/>12.admin_logout.jsp:退出后台页；<br/><br/><br/>二、JavaBean模块：<br/>1.DB.java：数据库类；<br/>2.Article.java：文章类；<br/>3.Category.java：类别类；<br/>4.ArticleDAO.java：文章操作接口；<br/>5.CategoryDAO.java：类别操作接口；<br/>6.ArticleDAOImpl.java：文章操作实现类；<br/>7.CategotyDAOImpl.java：类别操作实现类；<br/>8.DAOFactory.java：数据库操作工厂类；<br/>9.Admin.java:管理员类；<br/>10.AdminDAO.java:管理员操作接口；<br/>11.AdminDAOImpl.java:管理员操作实现类；<br/>12.AdminFilter.java:管理员过滤器；<br/>13.AdminServlet.java:管理员处理类；<br/>14.CategoryServlet.java:栏目处理类；<br/>15.ArticleServlet.java:文章处理类；<br/><br/>三、数据库模块：<br/>1.news.sql：数据库创建文件；<br/><br/>四、eWebEditor编辑器。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=386</link>
			<title><![CDATA[Magci新闻发布平台V0.2（前台动态页面）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sat,05 Jul 2008 01:34:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=386</guid>	
		<description><![CDATA[一、JSP模块：<br/>前台页面：<br/>1.index.jsp：首页；<br/>2.classlist.jsp：栏目列表页；<br/>3.readnews.jsp：文章正文页；<br/>4.search.jsp：搜索页面；<br/>5.header.jsp：头部页面；<br/>6.left.jsp：左部页面；<br/>7.right.jsp：右部页面；<br/>8.footer.jsp：底部页面；<br/>9.style.css：CSS样式文件；<br/><br/>二、JavaBean模块：<br/>1.DB.java：数据库类；<br/>2.Article.java：文章类；<br/>3.Category.java：类别类；<br/>4.ArticleDAO.java：文章操作接口；<br/>5.CategoryDAO.java：类别操作接口；<br/>6.ArticleDAOImpl.java：文章操作实现类；<br/>7.CategotyDAOImpl.java：类别操作实现类；<br/>8.DAOFactory.java：数据库操作工厂类；<br/><br/>三、数据库模块：<br/>1.news.sql：数据库创建文件；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=385</link>
			<title><![CDATA[Magci新闻发布平台V0.1（首页、栏目、正文静态页面）【DIV+CSS】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Fri,04 Jul 2008 02:11:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=385</guid>	
		<description><![CDATA[前台静态页面：<br/>index.htm：首页；<br/>classlist.htm：栏目列表页；<br/>readnews.htm：文章正文页；<br/>style.css：CSS样式文件；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0807/d2008742655.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=382</link>
			<title><![CDATA[M商城V1.9（增加商品搜索、最新商品功能，修正BUG）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Mon,16 Jun 2008 01:39:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=382</guid>	
		<description><![CDATA[1.增加商品搜索功能；<br/>2.增加最新商品功能；<br/>3.限制列表中产品名的显示长度；<br/>4.修正价格、金额的格式；<br/>5.完善导航功能。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0806/720086293157.jpg" border="0" alt=""/></div><br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=381</link>
			<title><![CDATA[M商城V1.8（JS实现产品类别下拉列表联动）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sun,15 Jun 2008 02:32:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=381</guid>	
		<description><![CDATA[产品类别根类别与子类别实现联动原理如下：<br/>在JS中嵌入Java代码，<br/>Java代码负责处理类别信息，在服务端执行，并返回到客户端；<br/>JS代码在客户端对类别信息进行处理，将其加入列表框。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=380</link>
			<title><![CDATA[M商城V1.7（订单管理模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sat,14 Jun 2008 20:14:53 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=380</guid>	
		<description><![CDATA[后台页面：<br/>JSP：<br/>1.orderlist.jsp：订单列表页；<br/>2.orderview.jsp：订单详情页；<br/>3.orderdelete.jsp：删除订单页；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0806/o200862931154.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=379</link>
			<title><![CDATA[M商城V1.6（用户订单模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sat,14 Jun 2008 03:43:52 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=379</guid>	
		<description><![CDATA[<span style="color:Red">五、订单模块：</span><br/><br/>前台页面：<br/>JSP：<br/>1.editorder.jsp：编辑订单用户信息页面；<br/>2.checkorder.jsp：核对订单信息页面；<br/>3.orderresult.jsp：订单处理结果页面；<br/>4.user.jsp：增加帐户管理，查看余额、帐户充值、查看订单<br/><br/>Java类：<br/>1.Order.java：订单类；<br/>2.OrderItem.java：订单中商品清单类；<br/>3.OrderDAO.java：订单操作接口类；<br/>4.OrderDAOImpl.java：订单操作接口实现类；<br/><br/>Servlet：<br/>1.OrderServlet.java：订单处理模块；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0806/l20086293957.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=378</link>
			<title><![CDATA[M商城V1.5（配置Tomcat数据源解决网页打开过慢的问题）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Mon,09 Jun 2008 19:52:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=378</guid>	
		<description><![CDATA[将Oracle驱动程序拷到Tomcat安装目录中的lib文件夹下，<br/>修改conf文件夹下context.xml和web.xml文件。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=377</link>
			<title><![CDATA[M商城V1.4（购物车模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sat,07 Jun 2008 03:04:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=377</guid>	
		<description><![CDATA[<span style="color:Red">四、购物车模块：</span><br/><br/>前台页面：<br/>JSP：<br/>1.cart.jsp：购物车页面；<br/><br/>Java类：<br/>1.Cart.java：购物车类；<br/>2.CartItem.java：购物车中商品类；<br/><br/>Servlet：<br/>1.CartServlet.java：购物车处理模块；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0806/4200862925743.jpg" border="0" alt=""/></div><br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=376</link>
			<title><![CDATA[M商城V1.3（产品显示模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Fri,06 Jun 2008 02:50:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=376</guid>	
		<description><![CDATA[前台页面：<br/>JSP：<br/>1.listroot.jsp：根类别产品列表页；<br/>2.listchild.jsp：子类别产品列表页；<br/>3.product.jsp：产品页；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0806/c200862925555.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=375</link>
			<title><![CDATA[M商城V1.2（SmartUpload上传模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Wed,04 Jun 2008 05:21:21 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=375</guid>	
		<description><![CDATA[upload.jsp：上传页面]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=374</link>
			<title><![CDATA[M商城V1.1（产品管理模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Tue,03 Jun 2008 04:27:28 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=374</guid>	
		<description><![CDATA[<span style="color:Red">三、产品模块：</span><br/><br/>后台页面：<br/>JSP：<br/>1.productlist.jsp：产品列表页；<br/>2.productedit.jsp：编辑产品页；<br/>3.productdelete.jsp：删除产品页；<br/><br/>Java类：<br/>1Product.java：产品类；<br/>2.ProductDAO.java：产品操作接口类；<br/>3.ProductDAOImpl.java：产品操作实现类；<br/><br/>Servlet：<br/>1.ProductServlet.java：产品处理模块；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0806/5200862925312.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=373</link>
			<title><![CDATA[M商城V1.0（类别模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sat,31 May 2008 20:07:46 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=373</guid>	
		<description><![CDATA[<span style="color:Red">二、类别模块：</span><br/><br/>后台页面：<br/>JSP：<br/>1.categorylist.jsp：类别列表页；<br/>2.categoryedit.jsp：编辑类别页；<br/>3.categorydelete.jsp：删除类别页；<br/><br/>Java类：<br/>1Category.java：类别类；<br/>2.CategoryDAO.java：类别操作接口类；<br/>3.CategoryDAOImpl.java：类别操作实现类；<br/><br/>Servlet：<br/>1.CategoryServlet.java：类别处理模块；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0806/l200862924951.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=372</link>
			<title><![CDATA[M商城V0.9（增加首页）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Thu,29 May 2008 19:03:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=372</guid>	
		<description><![CDATA[index.jsp：首页<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0806/p200862924547.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=371</link>
			<title><![CDATA[M商城V0.8（增加用户帐户模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Thu,29 May 2008 00:40:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=371</guid>	
		<description><![CDATA[user.jsp：用户帐户页面；<br/>UserFilter.java：用户Session验证模块；<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0806/h200862921050.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=370</link>
			<title><![CDATA[M商城V0.7（使用Filter验证Session）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Wed,28 May 2008 16:37:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=370</guid>	
		<description><![CDATA[Filter：<br/>1.UserFilter.java：后台Session验证模块；<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=369</link>
			<title><![CDATA[M商城V0.6（增加用户管理模块）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Sat,24 May 2008 05:13:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=369</guid>	
		<description><![CDATA[后台页面：<br/>JSP：<br/>1.index.jsp：欢迎页面；<br/>2.list.jsp：用户列表页；<br/>3.edit.jsp：编辑用户页；<br/>4.delete.jsp：删除用户页；<br/>CSS：<br/>1.style.css<br/>JS：<br/>1.flyout.js<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0806/n200862922112.jpg" border="0" alt=""/></div><br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=368</link>
			<title><![CDATA[M商城V0.5（优化用户模块）【Factory模式】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Fri,23 May 2008 17:59:16 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=368</guid>	
		<description><![CDATA[JSP模块：<br/>1.register.jsp：注册页面；<br/>2.login.jsp：登录页面；<br/>3.footer.jsp：底部页面；<br/><br/>CSS模块：<br/>1.style.css：样式表页面；<br/><br/>Java类模块：<br/>1.DB.java：数据库连接类；<br/>2.User.java：用户类；<br/>3.UserDAO.java：用户操作接口类；<br/>4.UserDAOImpl.java：用户操作实现类；<br/>5.DAOFactory.java：工厂类；<br/><br/>Servlet模块：<br/>1.UserServlet.java：用户处理模块；<br/><br/>数据库模块：<br/>shop.sql：数据库创建脚本；<br/><br/>配置文件：<br/>web.xml：服务器配置文件。<br/><br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=367</link>
			<title><![CDATA[M商城V0.4（优化用户模块）【MVC模式】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Fri,23 May 2008 04:56:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=367</guid>	
		<description><![CDATA[JSP模块：<br/>1.register.jsp：注册页面；<br/>2.login.jsp：登录页面；<br/>3.footer.jsp：底部页面；<br/><br/>CSS模块：<br/>1.style.css：样式表页面；<br/><br/>Java类模块：<br/>1.DB.java：数据库连接类；<br/>2.User.java：用户类；<br/>3.UserDAO.java：用户操作接口类；<br/>4.UserDAOImpl：用户操作实现类；<br/><br/>Servlet模块：<br/>1.UserServlet.java：用户处理模块；<br/><br/>数据库模块：<br/>shop.sql：数据库创建脚本；<br/><br/>配置文件：<br/>web.xml：服务器配置文件。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=366</link>
			<title><![CDATA[M商城V0.3（增加登录页面）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Fri,23 May 2008 01:40:56 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=366</guid>	
		<description><![CDATA[JSP模块：<br/>1.register.jsp：注册页面；<br/>2.login.jsp：登录页面；<br/>3.footer.jsp：底部页面；<br/><br/>CSS模块：<br/>1.style.css：样式表页面；<br/><br/>Java类模块：<br/>1.DB.java：数据库连接类；<br/>2.User.java：用户类；<br/><br/>数据库模块：<br/>shop.sql：数据库创建脚本。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0806/u20086292847.jpg" border="0" alt=""/></div><br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=365</link>
			<title><![CDATA[M商城V0.2（美化页面）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Thu,22 May 2008 04:50:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=365</guid>	
		<description><![CDATA[JSP模块：<br/>1.register.jsp：注册页面；<br/><br/>CSS模块：<br/>1.style.css：样式表页面；<br/><br/>Java类模块：<br/>1.DB.java：数据库连接类；<br/>2.User.java：用户类；<br/><br/>数据库模块：<br/>shop.sql：数据库创建脚本。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0806/020086292639.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=364</link>
			<title><![CDATA[M商城V0.1（注册页面）【DAO模式】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2EE]]></category>
			<pubDate>Tue,20 May 2008 23:33:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=364</guid>	
		<description><![CDATA[JSP模块：<br/>1.register.jsp：注册页面；<br/><br/>Java类模块：<br/>1.DB.java：数据库连接类；<br/>2.User.java：用户类；<br/><br/>数据库模块：<br/>shop.sql：数据库创建脚本。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0806/x20086292415.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=363</link>
			<title><![CDATA[JSP BBS V1.6（搜索帖子）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sun,18 May 2008 14:40:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=363</guid>	
		<description><![CDATA[1.6版更新内容：<br/>搜索帖子：<br/>1.加入搜索表单；<br/>2.加入搜索SQL语句；<br/>3.分页时将搜索参数转发到下一页。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=362</link>
			<title><![CDATA[JSP BBS V1.5（修改帖子）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sun,18 May 2008 03:35:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=362</guid>	
		<description><![CDATA[1.5版更新内容：<br/>修改帖子：<br/>1.增加修改帖子页面；<br/>2.根据ID查询数据库，取出数据；<br/>3.修改数据，并更新数据库。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=361</link>
			<title><![CDATA[JSP BBS V1.4（后台管理）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sun,18 May 2008 01:38:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=361</guid>	
		<description><![CDATA[1.4版更新内容：<br/>后台管理：<br/>1.增加登录页面；<br/>2.登录成功后设置session；<br/>3.增加页面验证用户是否登录。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=360</link>
			<title><![CDATA[JSP BBS V1.3（页面重定向）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sat,17 May 2008 23:47:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=360</guid>	
		<description><![CDATA[1.3版更新内容：<br/>页面重定向：<br/>1.使用request的方法取得当前URL：<br/>&nbsp;&nbsp;getScheme：取得协议名；<br/>&nbsp;&nbsp;getServerName：取得主机名或主机IP地址；<br/>&nbsp;&nbsp;getServerPort：取得主机端口号；<br/>&nbsp;&nbsp;getContextPath：取得路径名；<br/>&nbsp;&nbsp;getServletPath：取得文件名；<br/>&nbsp;&nbsp;getQueryString：取得参数。<br/>2.将当前URL转发给删除页面，删除后再重定向回本页面。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=359</link>
			<title><![CDATA[JSP BBS V1.2（删除帖子）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sat,17 May 2008 21:05:08 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=359</guid>	
		<description><![CDATA[1.2版更新内容：<br/>删除帖子：<br/>1.递归删除树形帖子；<br/>2.检查父贴是否为叶子节点。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=358</link>
			<title><![CDATA[JSP BBS V1.1（分页）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,16 May 2008 21:21:31 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=358</guid>	
		<description><![CDATA[1.1版更新内容：<br/>分页：<br/>1.统计帖子数，计算总页数；<br/>2.根据页数查询数据库并显示。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=357</link>
			<title><![CDATA[JSP BBS V1.0（平板展示帖子内容）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,16 May 2008 04:18:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=357</guid>	
		<description><![CDATA[1.0版更新内容：<br/>平板展示帖子内容：<br/>1.列表页只显示根帖子；<br/>2.帖子内容页显示该帖子及其所有回复帖。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=356</link>
			<title><![CDATA[JSP BBS V0.9（发表新主题）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,16 May 2008 02:10:22 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=356</guid>	
		<description><![CDATA[0.9版更新内容：<br/>发表新主题：<br/>1.增加一个页面post.jsp，根据action的不同分别提交参数和处理参数；<br/>2.取得自动编号，更新记录中的rootid。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=355</link>
			<title><![CDATA[JSP BBS V0.8（回复帖子）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sat,10 May 2008 03:00:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=355</guid>	
		<description><![CDATA[0.8版更新内容：<br/>回复帖子：<br/>1.增加回复帖子页面：reply.jsp；<br/>2.增加处理回复页面：replydeal.jsp；<br/>3.使用fckeditor编辑器代替文本域。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=354</link>
			<title><![CDATA[JSP BBS V0.7（动态显示帖子内容）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,09 May 2008 00:44:05 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=354</guid>	
		<description><![CDATA[0.7版更新内容：<br/>动态显示帖子内容：<br/>根据id现实帖子内容]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=353</link>
			<title><![CDATA[JSP BBS V0.6（增加静态内容页）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Thu,08 May 2008 18:00:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=353</guid>	
		<description><![CDATA[0.6版更新内容：<br/>增加静态内容页：<br/>增加显示贴子内容页面article.htm]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=352</link>
			<title><![CDATA[JSP BBS V0.5（动态显示树形帖子列表）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Thu,08 May 2008 03:12:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=352</guid>	
		<description><![CDATA[0.5版更新内容：<br/>动态显示树形帖子列表：<br/>1.使用容器存放数据库查询出来的帖子；<br/>2.递归调用数据库查询方法，将帖子存入容器；<br/>3.相邻帖子的背景不同；<br/>4.根据树形结构缩进帖子。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=351</link>
			<title><![CDATA[JSP BBS V0.4（封装Article类）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Thu,08 May 2008 02:13:12 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=351</guid>	
		<description><![CDATA[0.4版更新内容：<br/>封装Article类：<br/>设置成员变量的Geter/Seter方法]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=350</link>
			<title><![CDATA[JSP BBS V0.3（封装数据库操作类）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Wed,07 May 2008 23:56:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=350</guid>	
		<description><![CDATA[0.3版更新：<br/>封装数据库操作类：<br/>将数据库操作封装成一个类供JSP调用]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=349</link>
			<title><![CDATA[JSP BBS V0.2（创建数据库）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Wed,07 May 2008 13:29:23 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=349</guid>	
		<description><![CDATA[0.2版更新内容：<br/>创建数据库。<br/>1.创建bbs数据库；<br/>2.创建article表；<br/>3.插入测试数据。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=348</link>
			<title><![CDATA[JSP BBS V0.1（静态列表页）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Wed,07 May 2008 12:41:22 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=348</guid>	
		<description><![CDATA[0.1版：<br/>静态列表页]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=347</link>
			<title><![CDATA[Java日期处理——取得指定时区的时间]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,06 May 2008 03:15:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=347</guid>	
		<description><![CDATA[取得指定时区的时间：<br/>new&nbsp;GregorianCalendar(TimeZone.getTimeZone(&quot;时区ID&quot;));<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=346</link>
			<title><![CDATA[Java日期处理——字符串转换为日期时间]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,06 May 2008 03:08:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=346</guid>	
		<description><![CDATA[字符串转换为日期时间：<br/>使用Timestamp类的valueOf方法可以将字符串转换为日期时间。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=345</link>
			<title><![CDATA[Java日期处理——取得当前日期时间的3种方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,06 May 2008 03:02:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=345</guid>	
		<description><![CDATA[取得当前日期时间的3种方法：<br/>1.系统方法取得当前毫秒数；<br/>2.通过Date对象取得当前时间；<br/>3.通过Calendar对象取得当前时间。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=344</link>
			<title><![CDATA[Java日期处理——取得数据库查询结果集的日期和时间]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,06 May 2008 02:25:00 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=344</guid>	
		<description><![CDATA[使用java.sql.Timestamp类可以处理日期和时间。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=343</link>
			<title><![CDATA[Java日期处理——取得日历字段的值]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,06 May 2008 01:44:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=343</guid>	
		<description><![CDATA[使用java.util.Calendar类可以取得年月日的值<br/>创建Calendar对象：Calendar&nbsp;cal&nbsp;=&nbsp;Calendar.getInstance();<br/>取得日历字段的值：cal.get(Calendar.MONTH);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=342</link>
			<title><![CDATA[Java日期处理——日期格式化]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,06 May 2008 01:16:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=342</guid>	
		<description><![CDATA[java.text.SimpleDateFormat类可以对日期进行格式化。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=341</link>
			<title><![CDATA[JDBC连接MySQL数据库]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[MySQL]]></category>
			<pubDate>Mon,05 May 2008 01:54:03 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=341</guid>	
		<description><![CDATA[连接方法：<br/>1.&nbsp;在MyEclipse中导入MySQL的JDBC驱动包（mysql-connector-java-5.1.5-bin.jar）；<br/>2.驱动程序：com.mysql.jdbc.Driver<br/>3.连接地址：jdbc:mysql://localhost/数据库名?user=用户名&password=密码]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=340</link>
			<title><![CDATA[Oracle数据库中处理可滚动的结果集]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Sun,04 May 2008 22:04:33 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=340</guid>	
		<description><![CDATA[Oracle数据库中处理可滚动的结果集：<br/>为了让结果集可以滚动，创建Statement时需设置以下参数：<br/>stmt&nbsp;=&nbsp;conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=339</link>
			<title><![CDATA[Oracle数据库的事务处理]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Sun,04 May 2008 21:27:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=339</guid>	
		<description><![CDATA[事务处理：<br/>如果一个事务中一个操作发生错误，则将此事务中所有操作回滚。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=338</link>
			<title><![CDATA[使用JDBC批处理操作Oracle数据库]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Sun,04 May 2008 21:02:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=338</guid>	
		<description><![CDATA[使用JDBC批处理操作Oracle数据库：<br/>1.使用addBatch方法添加DML语句；<br/>2.使用executeBatch方法提交批处理语句。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=337</link>
			<title><![CDATA[使用CallableStatement处理Oracle数据库的存储过程]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Sun,04 May 2008 18:46:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=337</guid>	
		<description><![CDATA[使用CallableStatement处理Oracle数据库的存储过程:<br/>1.预处理SQL语句；<br/>2.使用registerOutParameter方法注册变量数据类型；<br/>3.为每一个“？”赋值；<br/>4.执行操作。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=336</link>
			<title><![CDATA[使用PreparedStatement操作Oracle数据库]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Sun,04 May 2008 17:57:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=336</guid>	
		<description><![CDATA[使用PreparedStatement操作Oracle数据库:<br/>1.定义预处理SQL语句；<br/>2.为每一个“？”设置对应的值；<br/>3.使用PreparedStatement操作数据库。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=335</link>
			<title><![CDATA[使用DML语句操作Oracle数据库]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Sun,04 May 2008 17:27:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=335</guid>	
		<description><![CDATA[将命令行参数写入Oracle数据库：<br/>1.输入命令行参数；<br/>2.使用DML语句将命令行参数写入数据库。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=334</link>
			<title><![CDATA[JDBC连接Oracle数据库]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Sun,04 May 2008 02:23:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=334</guid>	
		<description><![CDATA[连接方法：<br/>1.&nbsp;在MyEclipse中导入Oracle的JDBC驱动包（oracle\jbdc\lib\classes12.jar）；<br/>2.驱动程序：oracle.jdbc.driver.OracleDriver<br/>3.连接地址：jdbc:oracle:thin:@localhost:1521:数据库名]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=333</link>
			<title><![CDATA[Java正则表达式——三种quantifiers的区别]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,03 May 2008 02:43:31 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=333</guid>	
		<description><![CDATA[三种quantifiers的区别：<br/>1.Greedy&nbsp;quantifiers：<br/>X{n,m}：先取出m个字符进行匹配，如果不匹配再依次减少取出的字符，直至n个字符；<br/>2.Reluctant&nbsp;quantifiers：<br/>X{n,m}?：先取出n个字符进行匹配，如果不匹配再依次增加取出的字符，直至m个字符；<br/>3.Possessive&nbsp;quantifiers：<br/>X{n,m}+：直接取出m个字符进行匹配。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=332</link>
			<title><![CDATA[Java正则表达式——统计源码中的空行、注释行、代码行数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,03 May 2008 02:09:08 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=332</guid>	
		<description><![CDATA[统计源码中的空行、注释行、代码行数：]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=331</link>
			<title><![CDATA[Java正则表达式——抓取网页中的Email地址]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,02 May 2008 22:15:26 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=331</guid>	
		<description><![CDATA[抓取网页中的Email地址：<br/>1.读取网页文件；<br/>2.在网页文件中查找匹配Email地址格式的字符串。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=330</link>
			<title><![CDATA[Java正则表达式——分组]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,02 May 2008 20:59:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=330</guid>	
		<description><![CDATA[分组：<br/>Pattern中将要分在一组的内容用“()”包含起来。<br/>Matcher的group方法可以对查找到的匹配字符串进行分组。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=329</link>
			<title><![CDATA[Java正则表达式——替换字符串]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,02 May 2008 20:02:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=329</guid>	
		<description><![CDATA[替换字符串：<br/>Pattern.CASE_INSENSITIVE&nbsp;：不区分大小写；<br/>Matcher的replaceAll方法用来替换全部字符串；<br/>Matcher的appendReplacement方法用来追加替换字符串。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=328</link>
			<title><![CDATA[Java正则表达式——字串匹配]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,02 May 2008 19:24:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=328</guid>	
		<description><![CDATA[字串匹配：<br/>Matcher的find方法用来匹配字串；<br/>Matcher的lookingAt方法用来从头开始匹配字串；<br/>Matcher的start、end方法用来标记查找到的匹配子串的起始位置。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=327</link>
			<title><![CDATA[Java正则表达式——边界匹配]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,02 May 2008 18:57:16 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=327</guid>	
		<description><![CDATA[边界匹配：<br/>“^”：行的开头；<br/>“$”：行的结尾；<br/>“\b”：单词边界<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=326</link>
			<title><![CDATA[Java正则表达式——空白、单词字符匹配]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,02 May 2008 18:15:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=326</guid>	
		<description><![CDATA[空白、单词字符匹配：<br/>&nbsp;&nbsp;“\s”：表示空白字符；<br/>&nbsp;&nbsp;“\S”：表示非空白字符；<br/>&nbsp;&nbsp;“\w”：表示单词字符（a-zA-Z0-9_）；<br/>&nbsp;&nbsp;“\W”：表示非单词字符.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=325</link>
			<title><![CDATA[Java正则表达式——字符范围匹配]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,02 May 2008 17:52:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=325</guid>	
		<description><![CDATA[字符范围：<br/>一个[]表示一个字符的范围]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=324</link>
			<title><![CDATA[Java正则表达式——匹配字符出现的次数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,02 May 2008 17:37:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=324</guid>	
		<description><![CDATA[“*”、“+”、“?”、“{n,m}”用法<br/>&nbsp;&nbsp;“*”：字符重复零次或多次；<br/>&nbsp;&nbsp;“+”：字符重复一次或多次；<br/>&nbsp;&nbsp;“?”：字符重复零次或一次；<br/>&nbsp;&nbsp;“{n,m}”：字符至少重复n次，至多m次。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=323</link>
			<title><![CDATA[Java正则表达式——字符匹配]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,02 May 2008 16:45:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=323</guid>	
		<description><![CDATA[字符匹配：<br/>字符串的matches方法用来判断字符是否匹配。<br/>（“.”代表一个字符）]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=322</link>
			<title><![CDATA[Java坦克大战网络对战平台V4.8（完善功能、发布程序） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,02 May 2008 04:06:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=322</guid>	
		<description><![CDATA[4.8版更新内容：<br/>完善功能、发布程序：<br/>1.增加昵称显示；<br/>2.修正创建坦克时的位置方向。<br/><br/><img src="http://mgc.name/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/> <a href="http://mgc.name/attachments/month_0805/s20085241227.rar" target="_blank"><span style="color:Red">点击下载此文件</span></a><br/><br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0805/b200852434.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=321</link>
			<title><![CDATA[Java坦克大战网络对战平台V4.7（坦克分组对战） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,01 May 2008 19:52:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=321</guid>	
		<description><![CDATA[4.7版更新内容：<br/>坦克分组对战：<br/>1.登录对话框中增加Choice选择队伍；<br/>2.根据队伍不同区分敌我；<br/>3.修正敌我坦克数量统计。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0805/72008524914.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=320</link>
			<title><![CDATA[Java坦克大战网络对战平台V4.6（炮弹同步） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,01 May 2008 17:22:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=320</guid>	
		<description><![CDATA[4.6版更新内容：<br/>炮弹同步：<br/>1.增加MissileNewMsg类，用于发送发射炮弹消息；<br/>2.坦克开火时将炮弹信息发送给服务器；<br/>3.服务器向所有客户端转发炮弹消息，客户端收到后判断是不是自己坦克发出的，如果不是就创建一个炮弹。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=319</link>
			<title><![CDATA[Java坦克大战网络对战平台V4.5（增加登录对话框） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,01 May 2008 03:51:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=319</guid>	
		<description><![CDATA[4.5版更新内容：<br/>增加登录对话框：<br/>使用Dialog自定义服务器IP地址，端口号，本机UDP端口号]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=318</link>
			<title><![CDATA[Java坦克大战网络对战平台V4.4（坦克同步） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,30 Apr 2008 23:54:05 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=318</guid>	
		<description><![CDATA[4.4版更新内容：<br/>坦克同步：<br/>1.在后连上的客户端中加入先连上的坦克；<br/>2.坦克移动时将坐标值也发送出去，保证坦克同步。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=317</link>
			<title><![CDATA[Java坦克大战网络对战平台V4.3（使用多态封装坦克加入和移动的消息） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,29 Apr 2008 23:47:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=317</guid>	
		<description><![CDATA[4.3版更新内容：<br/>使用多态封装坦克加入和移动的消息：<br/>1.增加TankMoveMsg类，处理坦克移动信息；<br/>2.增加Msg接口，使用多态分别处理坦克加入和移动的消息。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=316</link>
			<title><![CDATA[Java坦克大战网络对战平台V4.2（客户端处理坦克加入的消息） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,29 Apr 2008 03:14:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=316</guid>	
		<description><![CDATA[4.2版更新内容：<br/>客户端处理坦克加入的消息：<br/>1.通过ID判断是否是自己的坦克，不处理自己的坦克；<br/>2.根据坦克信息在窗体上画出坦克。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=315</link>
			<title><![CDATA[Java坦克大战网络对战平台V4.1（服务器端转发坦克加入的消息） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,29 Apr 2008 01:19:28 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=315</guid>	
		<description><![CDATA[4.1版更新内容：<br/>服务器端转发坦克加入的消息：<br/>1.服务器收到坦克消息后将消息转发给所有客户端；<br/>2.客户端增加线程处理UDP连接接受坦克消息。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=314</link>
			<title><![CDATA[Java坦克大战网络对战平台V4.0（客户端发送坦克加入的消息） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,28 Apr 2008 01:05:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=314</guid>	
		<description><![CDATA[4.0版更新内容：<br/>客户端发送坦克加入的消息：<br/>1.增加TankMsg类，用于发送坦克信息；<br/>2.使用UDP向服务端发送坦克加入的消息。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=313</link>
			<title><![CDATA[Java坦克大战网络对战平台V3.9（服务端保存客户端信息并分配给客户端唯一的ID） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,27 Apr 2008 20:34:46 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=313</guid>	
		<description><![CDATA[3.9版更新内容：<br/>服务端保存客户端信息并分配给客户端唯一的ID：<br/>1.服务端将客户端发送的IP和端口保存在容器中;<br/>2.服务端分配给客户端坦克唯一的ID，并在坦克下方显示。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=312</link>
			<title><![CDATA[Java坦克大战网络对战平台V3.8（客户端与服务端连接） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,27 Apr 2008 00:55:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=312</guid>	
		<description><![CDATA[3.8版更新内容：<br/>客户端与服务端连接：<br/>1.增加Server类，作为服务端；<br/>2.增加NetClient类，用于处理TankClient与服务端的连接。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=311</link>
			<title><![CDATA[Java坦克大战图片版V3.7（发布Applet）【可在网页中运行】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,26 Apr 2008 20:33:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=311</guid>	
		<description><![CDATA[3.7版更新内容：<br/>发布Applet：<br/>1.将Application改为Applet；<br/>2.在网页中嵌入Applet；<br/><br/><span style="color:Red">点击图片开始游戏：</span><br/><br/><div align="center"><a target="_blank" href="http://mgc.name/java/tankwar/tank.html"><img src="http://mgc.name/attachments/month_0804/g2008426202831.jpg" border="0" alt=""/></a></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=310</link>
			<title><![CDATA[Java坦克大战图片版V3.6（修正BUG，发布程序）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,26 Apr 2008 16:53:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=310</guid>	
		<description><![CDATA[3.6版更新内容：<br/>修正BUG：<br/>1.修正敌方坦克支援时与原有坦克重叠的处理；<br/>2.修正爆炸产生的位置；<br/>3.修正开始游戏、暂停、取消暂停、游戏结束和重新开始的处理。<br/><br/><img src="http://mgc.name/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/> <a href="http://mgc.name/attachments/month_0804/g2008426193948.rar" target="_blank"><span style="color:Red">点击下载此文件</span></a><br/><br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0804/y200842619378.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=309</link>
			<title><![CDATA[Java坦克大战图片版V3.5（加入基地图片） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,25 Apr 2008 22:43:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=309</guid>	
		<description><![CDATA[3.5版更新内容：<br/>加入基地图片：<br/>1.创建Base类；<br/>2.将基地图片加入到窗体中下方；<br/>3.敌人坦克向基地方向移动。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0804/m2008425224052.jpg" border="0" alt=""/></div><br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=308</link>
			<title><![CDATA[Java坦克大战图片版V3.4（加入各种类型墙的图片）【严重模仿90坦克】]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,25 Apr 2008 18:49:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=308</guid>	
		<description><![CDATA[3.4版更新内容：<br/>加入各种类型墙的图片：<br/>1.石墙：炮弹、坦克都不能穿透；<br/>1.砖墙：炮弹能打掉，坦克不能穿透；<br/>3.河流：炮弹能穿透，坦克不能穿透；<br/>4.草地：炮弹、坦克都能穿透。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0804/z200842518548.jpg" border="0" alt=""/><br/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=307</link>
			<title><![CDATA[Java坦克大战图片版V3.3（使用配置文件）——单例模式]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,25 Apr 2008 02:21:21 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=307</guid>	
		<description><![CDATA[3.3版更新内容：<br/>使用配置文件：<br/>1.将需要经常改动的量放在配置文件中；<br/>2.使用单例模式将只需实例化一次的类中的语句用static关键字修饰。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=306</link>
			<title><![CDATA[Java坦克大战图片版V3.2（加入炮弹图片） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,24 Apr 2008 20:36:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=306</guid>	
		<description><![CDATA[3.2版更新内容：<br/>加入炮弹图片：<br/>1.将炮弹的半径常量改为长宽常量；<br/>2.根据炮筒位置的不同分别设置炮弹的长宽；<br/>3.根据炮弹尺寸重新设置碰撞矩形。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0804/1200842420342.jpg" border="0" alt=""/></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=305</link>
			<title><![CDATA[Java坦克大战图片版V3.1（加入坦克图片） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,24 Apr 2008 01:31:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=305</guid>	
		<description><![CDATA[3.1版更新内容：<br/>加入坦克图片（终于找到小霸王游戏机模拟器，截屏拿到坦克图片）：<br/>1.使用Map存放坦克图片；<br/>2.根据坦克方向加载图片。<br/><br/><div align="center"><img src="http://mgc.name/attachments/month_0804/1200842413013.jpg" border="0" alt=""/></div><br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=304</link>
			<title><![CDATA[Java坦克大战图片版V3.0（加入爆炸图片） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,23 Apr 2008 18:42:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=304</guid>	
		<description><![CDATA[3.0版更新内容：<br/>加入爆炸图片：<br/>1.将一系列模拟爆炸的图片放在src目录下；<br/>2.使用Toolkit类加载图片；<br/>3.产生爆炸时依次画出模拟爆炸图片。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=303</link>
			<title><![CDATA[Java坦克大战单机版V2.9（修正坦克方向为四个方向，区分敌我炮弹） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,23 Apr 2008 14:35:28 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=303</guid>	
		<description><![CDATA[2.9版更新内容：<br/>修正坦克方向为四个方向，区分敌我炮弹：<br/>1.增加枚举类，保存方向常量；<br/>2.坦克方向为四个方向；<br/>3.我方炮弹为红色，敌方炮弹为黑色。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=302</link>
			<title><![CDATA[Java坦克大战单机版V2.8（写注释、生成文档、发布程序） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,22 Apr 2008 22:36:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=302</guid>	
		<description><![CDATA[<div align="center"><img src="http://mgc.name/attachments/month_0804/w2008423142514.jpg" border="0" alt=""/><br/></div><br/><br/><div align="center"><img src="http://mgc.name/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/> <a href="http://mgc.name/attachments/month_0804/12008422223549.rar" target="_blank"><span style="color:Red">点击下载此文件</span></a></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=301</link>
			<title><![CDATA[Java坦克大战单机版V2.7（修正炮弹的发射频率） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,22 Apr 2008 13:28:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=301</guid>	
		<description><![CDATA[2.7版更新内容：<br/>修正炮弹的发射频率：<br/>1.添加方法判断窗体内是否有自身坦克发射的炮弹；<br/>2.当窗体内没有自身坦克发射的炮弹时发射新炮弹。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=300</link>
			<title><![CDATA[Java坦克大战单机版V2.6（游戏结束和重新开始） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,22 Apr 2008 01:59:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=300</guid>	
		<description><![CDATA[2.6版更新内容：<br/>游戏结束和重新开始：<br/>1.设置敌方坦克总数量，当前最大数量，当前数量；当前数量小于当前最大数量，且小于总数量时加入新坦克；<br/>2.当敌方坦克总数量为0或我方坦克生命值为0时，游戏结束；<br/>3.游戏结束后按F2键重新开始游戏。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=299</link>
			<title><![CDATA[Java坦克大战单机版V2.5（随机出现宝物） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,21 Apr 2008 23:41:01 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=299</guid>	
		<description><![CDATA[2.5版更新内容：<br/>随机出现宝物：<br/>1.添加Treasure类；<br/>2.在随机的一段时间内在随机的地点加入宝物；<br/>3.在随机的一段时间后清除宝物；<br/>4.宝物出现在墙中清除宝物；<br/>5.吃到宝物后生命值全满。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=298</link>
			<title><![CDATA[Java坦克大战单机版V2.4（图形化显示我方坦克的生命值） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,21 Apr 2008 20:47:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=298</guid>	
		<description><![CDATA[2.4版更新内容：<br/>图形化显示我方坦克的生命值：<br/>1.添加生命条类；<br/>2.空心矩形表示总生命值，空心矩形内部的实心矩形表示当前生命值；<br/>3.生命条画在我方坦克上方。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=297</link>
			<title><![CDATA[Java坦克大战单机版V2.3（增加我方坦克生命值） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,21 Apr 2008 20:20:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=297</guid>	
		<description><![CDATA[2.3版更新内容：<br/>增加我方坦克生命值：<br/>1.初始化我方坦克生命值；<br/>2.我方坦克被击中后生命值减少；<br/>3.当我方坦克生命值小于等于0时死亡。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=296</link>
			<title><![CDATA[Java坦克大战单机版V2.2（发射超级炮弹） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,21 Apr 2008 10:58:08 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=296</guid>	
		<description><![CDATA[2.2版更新内容：<br/>发射超级炮弹：八个方向同时开火。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=295</link>
			<title><![CDATA[Java坦克大战单机版V2.1（使坦克之间互不相撞） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,20 Apr 2008 21:11:27 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=295</guid>	
		<description><![CDATA[2.1版更新内容：<br/>使坦克之间互不相撞：<br/>1.添加碰撞检测方法；<br/>2.两个坦克碰撞后各自回到上一个位置。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=294</link>
			<title><![CDATA[Java坦克大战单机版V2.0（加入墙） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,20 Apr 2008 20:13:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=294</guid>	
		<description><![CDATA[2.0版更新内容：<br/>加入墙：<br/>1.添加Wall类；<br/>2.炮弹击中墙后消失；<br/>3.坦克碰到墙后回到上一个位置。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=293</link>
			<title><![CDATA[Java坦克大战单机版V1.9（敌方坦克智能化） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,20 Apr 2008 17:20:33 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=293</guid>	
		<description><![CDATA[1.9版更新内容：<br/>敌方坦克智能化：<br/>1.敌方坦克向随机方向移动；<br/>2.敌方坦克经过一段随机的时间改变方向；<br/>3.敌方坦克随机发射炮弹；<br/>4.炮弹不打本方坦克；<br/>5.经过一段随机的时间发射炮弹。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=292</link>
			<title><![CDATA[Java坦克大战单机版V1.8（加入多辆坦克） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,20 Apr 2008 14:47:05 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=292</guid>	
		<description><![CDATA[1.8版更新内容：<br/>加入多辆坦克：<br/>1.用容器存放敌方坦克；<br/>2.添加hitTanks方法，射击所有坦克。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=291</link>
			<title><![CDATA[Java坦克大战单机版V1.7（加入爆炸）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,20 Apr 2008 13:27:33 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=291</guid>	
		<description><![CDATA[1.7版更新内容：<br/>加入爆炸:<br/>1.添加爆炸类；<br/>2.用不同直径的圆模拟爆炸；<br/>3.将爆炸存放在集合类中。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=290</link>
			<title><![CDATA[Java坦克大战单机版V1.6（炮弹击中坦克后坦克、炮弹都消失） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,20 Apr 2008 01:53:12 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=290</guid>	
		<description><![CDATA[1.6版更新内容：<br/>炮弹击中坦克后坦克、炮弹都消失：<br/>1.Missile类中加入hitTank(Tank)方法，返回布尔类型；<br/>2.使用碰撞检测的辅助类Rectangle；<br/>3.为Tank和Missile都增加getRect方法；<br/>4.当炮弹击中坦克后，坦克、炮弹都消失；<br/>5.增加标记Tank生命状态的布尔量。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=289</link>
			<title><![CDATA[Java坦克大战单机版V1.5（加入敌方坦克） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,19 Apr 2008 22:33:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=289</guid>	
		<description><![CDATA[1.5版更新内容：<br/>加入敌方坦克：<br/>1.添加区别敌我的布尔量；<br/>2.根据敌我的不同设置不同的颜色；<br/>3.更新Tank的构造方法。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=288</link>
			<title><![CDATA[Java坦克大战单机版V1.4（坦克不能出界，炮弹出界后消亡） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,19 Apr 2008 20:17:48 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=288</guid>	
		<description><![CDATA[1.4版更新内容：<br/>坦克不能出界，炮弹出界后消亡：<br/>1.添加标记炮弹是否存在的布尔量，初始值为true；<br/>2.炮弹出界后将标记设为false；<br/>3.标记为false时将炮弹从容器中去除；<br/>4.坦克出界后让其回到边界。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=287</link>
			<title><![CDATA[Java坦克大战单机版V1.3（发射多发炮弹） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,19 Apr 2008 03:07:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=287</guid>	
		<description><![CDATA[1.3版更新内容：<br/>发射多发炮弹：<br/>1.使用容器装炮弹；<br/>2.抬起CTRL键后向容器中加入新炮弹；<br/>3.逐一画出每一发炮弹。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=286</link>
			<title><![CDATA[Java坦克大战单机版V1.2（增加炮筒） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,19 Apr 2008 01:41:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=286</guid>	
		<description><![CDATA[1.2版更新内容：<br/>增加炮筒：根据炮筒的方向发射炮弹]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=285</link>
			<title><![CDATA[Java坦克大战单机版V1.1（根据坦克的方向位置发射炮弹） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,18 Apr 2008 22:47:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=285</guid>	
		<description><![CDATA[1.1版更新内容：<br/>根据坦克的方向位置发射炮弹：<br/>1.增加对CTRL键的按键处理；<br/>2.增加fire方法，根据坦克的方向位置创建Missile方法。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=284</link>
			<title><![CDATA[Java坦克大战单机版V1.0（加入炮弹） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,18 Apr 2008 03:29:16 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=284</guid>	
		<description><![CDATA[1.0版更新内容：<br/>加入炮弹：<br/>1.添加Missile类；<br/>2.添加x,y,dir等属性以及常量；<br/>3.添加构造方法，draw方法等；<br/>4.根据不同方向，进行不同的运动。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=283</link>
			<title><![CDATA[Java坦克大战单机版V0.9（使坦克可以向八个方向移动） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,18 Apr 2008 00:41:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=283</guid>	
		<description><![CDATA[0.9版更新内容：<br/>使坦克可以向八个方向移动：<br/>1.添加记录按键状态的布尔量；<br/>2.添加代表方向的量（枚举型）；<br/>3.方向键被按下后标记为按下状态，松开后标记为松开状态；<br/>4.根据按键状态确定坦克方向；<br/>5.根据方向进行下一步移动。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=282</link>
			<title><![CDATA[Java坦克大战单机版V0.8（将坦克单独包装成类） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Apr 2008 19:48:31 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=282</guid>	
		<description><![CDATA[0.8版更新内容：<br/>将坦克单独包装成类:<br/>1.创建Tank类；<br/>2.为Tank类添加成员变量x,y；<br/>3.添加draw方法，使Tank类独立控制自己的画法；<br/>4.添加Tank类处理按键的方法；<br/>5.根据Tank类修改TankClient类]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=281</link>
			<title><![CDATA[Java坦克大战单机版V0.7（键盘控制坦克移动） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Apr 2008 13:49:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=281</guid>	
		<description><![CDATA[0.7版更新内容：<br/>键盘控制坦克移动：添加键盘事件监听器KeyMonitor，按方向键控制坦克移动。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=280</link>
			<title><![CDATA[Java坦克大战单机版V0.6（代码重构） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Apr 2008 13:11:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=280</guid>	
		<description><![CDATA[0.6版更新内容：<br/>代码重构：将以后可能需要多处改动的量定义为常量]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=279</link>
			<title><![CDATA[Java坦克大战单机版V0.5（使用双缓冲消除坦克移动时闪烁现象） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Apr 2008 12:47:23 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=279</guid>	
		<description><![CDATA[0.5版更新内容：<br/>使用双缓冲消除坦克移动时闪烁现象：<br/>先将窗体上的图形画在图片对象上，再一次性显示]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=278</link>
			<title><![CDATA[Java坦克大战单机版V0.4（重画窗体） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Apr 2008 01:37:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=278</guid>	
		<description><![CDATA[0.4版更新内容：<br/>重画窗体：<br/>1.将位置改为变量表示；<br/>2.使用线程每隔一段时间重画窗体，使坦克动起来。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=277</link>
			<title><![CDATA[Java坦克大战单机版V0.3（加入坦克）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Apr 2008 00:41:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=277</guid>	
		<description><![CDATA[0.3版更新内容：<br/>加入坦克：在窗体上画一个圆代表坦克]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=276</link>
			<title><![CDATA[Java坦克大战单机版V0.2（增加关闭按钮响应,固定窗口大小） ]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Apr 2008 00:20:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=276</guid>	
		<description><![CDATA[0.2版更新内容：<br/>1.增加关闭按钮相应；<br/>2.固定窗口大小]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=275</link>
			<title><![CDATA[Java坦克大战单机版V0.1（创建窗体）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,17 Apr 2008 00:04:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=275</guid>	
		<description><![CDATA[0.1版：<br/>创建客户端窗体]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=274</link>
			<title><![CDATA[Java在线聊天系统V1.3（修正BUG）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,16 Apr 2008 18:32:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=274</guid>	
		<description><![CDATA[1.3版更新内容：<br/>修正BUG：测试程序，修正了程序中的BUG]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=273</link>
			<title><![CDATA[Java在线聊天系统V1.2（增加客户端接收显示消息功能）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,16 Apr 2008 02:04:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=273</guid>	
		<description><![CDATA[1.2版更新内容：<br/>增加客户端接收显示消息功能：客户端建立一个线程接收服务端发送的消息，并在显示框显示]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=272</link>
			<title><![CDATA[Java在线聊天系统V1.1（增加服务端向客户端群发消息功能）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,16 Apr 2008 00:34:19 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=272</guid>	
		<description><![CDATA[0.8版更新内容：<br/>增加服务端向客户端群发消息功能]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=271</link>
			<title><![CDATA[Java在线聊天系统V1.0（增加多用户功能）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,15 Apr 2008 23:28:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=271</guid>	
		<description><![CDATA[1.0版更新内容：<br/>增加多用户功能：为每一个客户端建立一个线程]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=270</link>
			<title><![CDATA[Java在线聊天系统V0.9（优化错误处理）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,15 Apr 2008 21:25:51 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=270</guid>	
		<description><![CDATA[0.9版更新内容：<br/>优化错误处理：针对不同的错误显示友好的错误提示信息。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=269</link>
			<title><![CDATA[Java在线聊天系统V0.8（增加多次收发数据功能）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,15 Apr 2008 19:10:36 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=269</guid>	
		<description><![CDATA[0.8版更新内容：<br/>增加多次收发数据功能]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=268</link>
			<title><![CDATA[Java在线聊天系统V0.7（增加数据传送功能）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,15 Apr 2008 17:48:51 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=268</guid>	
		<description><![CDATA[0.7版更新内容：<br/>增加数据传送：服务端接收客户端发送的消息；<br/>1.客户端在输入框输入消息后回车；<br/>2.客户端将输入内容发送到服务器；<br/>3.服务器打印接受到的字符串。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=267</link>
			<title><![CDATA[Java在线聊天系统V0.6（增加客户端连接）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,15 Apr 2008 16:54:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=267</guid>	
		<description><![CDATA[0.6版更新内容：<br/>增加客户端连接：建立服务端与客户端的连接]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=266</link>
			<title><![CDATA[Java在线聊天系统V0.5（增加服务端）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,15 Apr 2008 16:42:26 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=266</guid>	
		<description><![CDATA[0.5版更新内容：<br/>增加服务端,接受客户端连接]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=265</link>
			<title><![CDATA[Java在线聊天系统V0.4（增加输入框响应）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,15 Apr 2008 16:24:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=265</guid>	
		<description><![CDATA[0.4版更新内容：<br/>增加输入框响应：在输入框输入消息后按回车，消息在显示框显示。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=264</link>
			<title><![CDATA[Java在线聊天系统V0.3（增加关闭按钮响应）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,15 Apr 2008 16:06:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=264</guid>	
		<description><![CDATA[0.3版更新内容：<br/>增加关闭按钮响应]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=263</link>
			<title><![CDATA[Java在线聊天系统V0.2（增加输入、显示框）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,15 Apr 2008 01:01:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=263</guid>	
		<description><![CDATA[0.2版更新内容：<br/>增加输入、显示框]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=262</link>
			<title><![CDATA[Java在线聊天系统V0.1（创建客户端窗体）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,15 Apr 2008 00:47:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=262</guid>	
		<description><![CDATA[0.1版：<br/>创建客户端窗体]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=261</link>
			<title><![CDATA[Java的Key事件监听]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,14 Apr 2008 22:57:09 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=261</guid>	
		<description><![CDATA[当在键盘上按下方向键时，显示按下的方向。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=260</link>
			<title><![CDATA[Java的匿名类]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,14 Apr 2008 21:55:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=260</guid>	
		<description><![CDATA[匿名类是指没有名字的类，格式如下：<br/>new&nbsp;someclass()&nbsp;{<br/>这里的内容相当于继承自someclass的类的内容<br/>}<br/><br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=259</link>
			<title><![CDATA[Java的Window事件监听]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,14 Apr 2008 21:40:22 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=259</guid>	
		<description><![CDATA[Window事件所对应的事件类为WindowEvent，所对应的时间监听接口为WindowListener。<br/><br/>WindowListener定义的方法有：<br/>&nbsp;&nbsp;public&nbsp;void&nbsp;windowOpened(WindowEvent&nbsp;e)<br/>&nbsp;&nbsp;&nbsp;public&nbsp;void&nbsp;windowClosing(WindowEvent&nbsp;e)<br/>&nbsp;&nbsp;&nbsp;public&nbsp;void&nbsp;windowClosed(WindowEvent&nbsp;e)<br/>&nbsp;&nbsp;&nbsp;public&nbsp;void&nbsp;windowIconified(WindowEvent&nbsp;e)<br/>&nbsp;&nbsp;&nbsp;public&nbsp;void&nbsp;windowDeioonfied(WindowEvent&nbsp;e)<br/>&nbsp;&nbsp;&nbsp;public&nbsp;void&nbsp;windowActivated(WindowEvent&nbsp;e)<br/>&nbsp;&nbsp;&nbsp;public&nbsp;void&nbsp;windowDeactived(WindowEvent&nbsp;e)<br/><br/>与WindowListener对应的适配器为WindowAdapter。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=258</link>
			<title><![CDATA[Java的鼠标事件适配器（MouseAdapter）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,14 Apr 2008 21:02:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=258</guid>	
		<description><![CDATA[抽象类java.awt.event.MouseAdapter实现了MouseListener接口，可以使用其子类作为MouseEvent的监听器，只要重写其相应的方法即可；<br/><br/>使用适配器可以避免监听器类定义没有必要的空方法；<br/><br/>repaint方法的执行步骤：<br/>update()&nbsp;--&gt;&nbsp;&nbsp;paint();]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=257</link>
			<title><![CDATA[Java中使用paint方法绘图]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,14 Apr 2008 19:53:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=257</guid>	
		<description><![CDATA[每个Component都有一个paint(Graphics&nbsp;g)用于实现绘图目的，每次重画该Component时都自动调用paint方法。<br/><br/>Graphics类中提供了很多绘图方法，如：<br/>&nbsp;&nbsp;drawRect(int&nbsp;x,int&nbsp;y,int&nbsp;width,int&nbsp;height)<br/>&nbsp;&nbsp;&nbsp;fillRoundRect(int&nbsp;x,int&nbsp;y,int&nbsp;width,int&nbsp;height,int&nbsp;arcWidth,int&nbsp;arcHeight)]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=256</link>
			<title><![CDATA[Java的内部类]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,14 Apr 2008 19:14:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=256</guid>	
		<description><![CDATA[1.内部类是指在一个class中嵌套另一个class；<br/>2.内部类的好处：<br/>&nbsp;&nbsp;可以方便的访问包装类的成员；<br/>&nbsp;&nbsp;可以更清楚的组织逻辑，防止不应该被其它类访问的类进行访问。<br/>3.何时使用：<br/>&nbsp;&nbsp;该类不允许或不需要其它类进行访问时。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=255</link>
			<title><![CDATA[Java的事件监听中通过持有对方引用来处理没有事件监听的对象]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,14 Apr 2008 18:50:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=255</guid>	
		<description><![CDATA[事件监听中通过持有对方引用来处理没有事件监听的对象。<br/>编写一个简单加法计算器，单击“=”按钮时将文本框中的两个数相加，结果放到标签里。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=254</link>
			<title><![CDATA[Java中TextField的事件监听]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,14 Apr 2008 13:04:16 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=254</guid>	
		<description><![CDATA[使用addActionListener(ActionListener&nbsp;i)方法为TextField对象注册一个ActionListener对象，<br/>当TextField对象发生Action事件时，会生成一个ActionEvent对象，<br/>该对象作为参数传递给ActionListener对象的actionPerformer方法在方法中可以获取该对象的信息，并做相应的处理。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=253</link>
			<title><![CDATA[Java中Button的事件监听]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,14 Apr 2008 11:19:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=253</guid>	
		<description><![CDATA[Button的事件监听]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=252</link>
			<title><![CDATA[Java布局管理器嵌套]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,14 Apr 2008 01:55:57 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=252</guid>	
		<description><![CDATA[1.Frame是个顶级窗口，Frame的缺省布局管理器为BorderLayout；<br/>2.Panel无法单独显示，必须添加到某个容器中，Panel的缺省布局管理器为FlowLayout；、<br/>3.当把panel作为一个组件添加到某个容器中后，该Panel仍然可以有自己的布局管理器；<br/>4.使用布局管理器时，布局管理器负责各个组件的大小和位置，因此用户无法在这种情况下设置组件大小和位置属性，如果试图使用Java语言提供的setLocation()，setSize()，setBounds()等方法，则都会被布局管理器覆盖；<br/>5.如果用户确实需要亲自设置组件大小或位置，则应取消该容器的布局管理器，方法为：<br/>&nbsp;&nbsp;setLayout(null)]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=251</link>
			<title><![CDATA[Java布局管理器——GridLayout]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,14 Apr 2008 01:24:28 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=251</guid>	
		<description><![CDATA[GirdLayout型布局管理器将空间划分成规则的矩形网格，每个单元格区域大小相等。组件被添加到每个单元格中，先从左到右添满一行后换行，再从上到下。<br/><br/>GirfLayout构造方法中指定分割的行数和列数：<br/>GirdLayout(3,4);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=250</link>
			<title><![CDATA[Java布局管理器——BorderLayout]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,14 Apr 2008 01:02:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=250</guid>	
		<description><![CDATA[BorderLayout是Frame类的默认布局管理器；<br/>1.BorderLayout将整个容器的布局划分成东（EAST）、西（WEST）、南（SOUTH）、北（NORTH）五个区域，组件只能被添加到指定的区域。<br/>2.如不指定组件的加入部位，则默认加到CENTER区；<br/>3.每个区域只能加入一个组件，如加入多个，则先前加入的会被覆盖。<br/>4.BorderLayout型布局其尺寸缩放原则：<br/>&nbsp;&nbsp;北、南两个区域在水平方向缩放；<br/>&nbsp;&nbsp;东、西两个区域在垂直方向缩放；<br/>&nbsp;&nbsp;中部区域可在两个方向上缩放。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=249</link>
			<title><![CDATA[Java布局管理器——FlowLayout]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,14 Apr 2008 00:16:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=249</guid>	
		<description><![CDATA[FlowLayout是Panel类的默认布局管理器。<br/>1.FlowLayout布局管理器对组件逐行定位，行内从左到右，一行排满后换行；<br/>2.不改变组件的大小，按组件原有尺寸显示组件，可设置不同的组件间距，行距以及对齐方式。<br/>3.FlowLayout布局管理器默认的对齐方式是居中。<br/><br/>FlowLayout的构造方法:<br/>new&nbsp;FlowLayout(FlowLayout.RIGHT,20,40);<br/>&#160;&#160;&#160;&#160;右对齐，组件之间水平间距20个像素，垂直间距40个像素；<br/>new&nbsp;FlowLayout(FlowLayout.LEFT);<br/>&#160;&#160;&#160;&#160;左对齐，水平间距和垂直间距为缺省值（5）；<br/>new&nbsp;FlowLayout();<br/>&#160;&#160;&#160;&#160;使用缺省的居中对齐方式，水平和垂直间距为缺省值（5）。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=248</link>
			<title><![CDATA[Java中使Panel在Frame上居中]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,13 Apr 2008 23:43:03 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=248</guid>	
		<description><![CDATA[实现Panel在Frame上居中：<br/>Panel起始点的X坐标值&nbsp;=&nbsp;（Frame的宽度&nbsp;-&nbsp;Panel的宽度）/2<br/>Panel起始点的Y坐标值&nbsp;=&nbsp;（Frame的高度&nbsp;-&nbsp;Panel的高度）/2]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=247</link>
			<title><![CDATA[Java中自定义Panel子类创建多个Panel]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,13 Apr 2008 23:15:33 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=247</guid>	
		<description><![CDATA[使用自定义Panel子类在Frame上创建多个Panel]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=246</link>
			<title><![CDATA[Java中创建Frame窗体的Panel对象]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,13 Apr 2008 23:10:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=246</guid>	
		<description><![CDATA[1.Panel对象可以看成容纳Component的空间；<br/>2.Panel对象可以拥有自己的布局管理器；<br/>3.Panel拥有从父类继承来的方法：<br/>&nbsp;&nbsp;setBounds(int&nbsp;x,int&nbsp;y,int&nbsp;width,int&nbsp;height)&nbsp;：设置窗体位置和大小；<br/>&nbsp;&nbsp;setSize(int&nbsp;width,int&nbsp;height)&nbsp;：设置窗体的大小；<br/>&nbsp;&nbsp;setBackground(Color&nbsp;c)&nbsp;：设置背景颜色；<br/>&nbsp;&nbsp;setResizable(boolean&nbsp;b)&nbsp;：设置是否可以调整大小。<br/>4.Panel的构造方法：<br/>&nbsp;&nbsp;Panel()&nbsp;：使用默认的FlowLayout类布局管理器初始化；<br/>&nbsp;&nbsp;Panel(LayoutManager&nbsp;layout)&nbsp;：使用指定的布局管理器初始化。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=245</link>
			<title><![CDATA[Java中自定义Frame子类创建多窗体]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,13 Apr 2008 19:51:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=245</guid>	
		<description><![CDATA[自定义Frame子类创建多窗体]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=244</link>
			<title><![CDATA[Java中创建Frame窗体]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,13 Apr 2008 19:32:46 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=244</guid>	
		<description><![CDATA[Frame是Window的子类，由Frame或其子类创建的对象为一个窗体。<br/>Frame常用构造方法：<br/>&nbsp;&nbsp;Frame()；<br/>&nbsp;&nbsp;Frame(String&nbsp;s)：创建标题栏为字符串s的窗口。<br/>Frame常用方法：<br/>&nbsp;&nbsp;setBounds(int&nbsp;x,int&nbsp;y,int&nbsp;width,int&nbsp;height)&nbsp;：设置窗体位置和大小；<br/>&nbsp;&nbsp;setSize(int&nbsp;width,int&nbsp;height)&nbsp;：设置窗体的大小；<br/>&nbsp;&nbsp;setBackground(Color&nbsp;c)&nbsp;：设置背景颜色；<br/>&nbsp;&nbsp;setVisible(boolean&nbsp;b)&nbsp;：设置是否可见；<br/>&nbsp;&nbsp;setResizable(boolean&nbsp;b)&nbsp;：设置是否可以调整大小。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=243</link>
			<title><![CDATA[Java的UDP通信]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,13 Apr 2008 17:43:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=243</guid>	
		<description><![CDATA[Java的UDP通信<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=242</link>
			<title><![CDATA[Java的TCP点对点通信]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,13 Apr 2008 02:14:03 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=242</guid>	
		<description><![CDATA[点对点通信：<br/>Server端和Client端建立连接后，交替发送、接受信息。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=241</link>
			<title><![CDATA[Java的Socket通信中Server和Client的读写顺序]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,12 Apr 2008 23:33:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=241</guid>	
		<description><![CDATA[在Socket通信中Server端和Client端的读写顺序是相反的；<br/>比如：服务端是先读后写，客户端必须是先写后读。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=240</link>
			<title><![CDATA[Java中获取通信对方的Socket信息]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,12 Apr 2008 22:30:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=240</guid>	
		<description><![CDATA[通过Socket对象可以获取通信对方的Socket信息。<br/>1.getInetAddress()&nbsp;：获取对方IP地址；<br/>2.getPort()&nbsp;：获取对方端口号。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=239</link>
			<title><![CDATA[Java中TCP的Socket通信]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,12 Apr 2008 18:02:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=239</guid>	
		<description><![CDATA[1.两个Java应用程序可通过一个双向的网络通信连接实现数据交换，这个双向链路的一端称为一个Socket；<br/>2.Socket通常用来实现Client-Server连接；<br/>3.java.net包中定义的两个类Socket和ServerSocket，分别用来实现双向连接的Client和Server端；<br/>4.建立连接时所需要的寻址信息为远程计算机的IP地址和端口号（Port&nbsp;number）<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=238</link>
			<title><![CDATA[Java线程同步的“生产消费”问题]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,12 Apr 2008 16:20:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=238</guid>	
		<description><![CDATA[“生产消费”问题：<br/>生产者每隔一段时间将一个苹果装入筐中，消费者每隔一段时间从筐中拿走一个苹果。<br/>模拟这个“生产消费”过程。<br/><br/>该过程需要使用两个方法：wait（等待），notify（唤醒）；<br/>wait与sleep的区别：<br/>**调用wait方法的时候必须锁定该对象，wait时其他线程可以访问锁定对象；<br/>**sleep时其他线程不能访问锁定对象。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=237</link>
			<title><![CDATA[Java线程同步中使用“互斥锁”锁住变量]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,12 Apr 2008 04:14:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=237</guid>	
		<description><![CDATA[在线程中使用synchronized关键字锁定一个模块时，只能保证当前模块不会被其他线程执行，但是其他线程还有可能访问该模块中使用到的变量。<br/>要解决这个问题，需要在使用该变量的地方都要用synchronized关键字修饰。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=236</link>
			<title><![CDATA[Java线程同步的“死锁”现象]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,12 Apr 2008 02:46:03 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=236</guid>	
		<description><![CDATA[当一个线程锁定的模块中含有被其他线程锁定的模块时,程序无法继续运行下去，就发生了“死锁”现象。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=235</link>
			<title><![CDATA[Java线程同步的“互斥锁”]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,11 Apr 2008 22:27:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=235</guid>	
		<description><![CDATA[如果几个线程同时处理一个数据，可能会出现无法预料的错误；<br/>要解决这个问题，每个对象都对应于一个“互斥锁”的标记，这个标记保证在任一时刻，只能有一个线程访问该对象。<br/>关键字synchronized来与对象的互斥锁联系。当某个对象被synchronized修饰时，表明对象在任一时刻只能由一个线程访问。<br/><br/>synchronized的使用方法：<br/>1.在需要加锁的内容放到如下方法中<br/>synchronized(this)&nbsp;{<br/>&nbsp;&nbsp;&nbsp;<br/>}<br/>2.synchronized还可以放在方法声明中，表示整个方法为同步方法，如：<br/>synchronized&nbsp;public&nbsp;void&nbsp;add()&nbsp;{...}<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=234</link>
			<title><![CDATA[Java中停止线程的方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,11 Apr 2008 17:45:04 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=234</guid>	
		<description><![CDATA[Thread的stop方法可以用来强制停止一个线程，<br/>但是最好不要使用这种方法，比较好的方法是：设置一个标志flag=true，当flag=false时停止线程。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=233</link>
			<title><![CDATA[Java线程的优先级]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,11 Apr 2008 15:41:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=233</guid>	
		<description><![CDATA[Java提供一个线程调度器来监控程序中启动后进入就绪状态的所有线程。<br/>线程调度器按照线程的优先级决定应调度哪个线程来执行。<br/><br/>线程的优先级用数字表示，范围从1到10，一个线程的缺省优先级是5；<br/>Thread.MIN_PRIORITY&nbsp;=&nbsp;1<br/>Thread.MAX_PRORITY&nbsp;=&nbsp;10&nbsp;<br/>Thread.NORM_PRIORITY&nbsp;=&nbsp;5<br/><br/>使用下述方法获得或设置线程对象的优先级：<br/>int&nbsp;getPriority()&nbsp;;<br/>void&nbsp;setPriority(int&nbsp;newPriority);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=232</link>
			<title><![CDATA[Java线程的yield方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,11 Apr 2008 15:30:05 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=232</guid>	
		<description><![CDATA[yield方法可以让出CPU，给其他线程执行的机会。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=231</link>
			<title><![CDATA[Java线程的join方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,11 Apr 2008 15:28:04 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=231</guid>	
		<description><![CDATA[join方法可以合并某个线程.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=230</link>
			<title><![CDATA[Java线程的sleep方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,11 Apr 2008 13:42:16 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=230</guid>	
		<description><![CDATA[1.可以调用Thread的静态方法：<br/>&nbsp;&nbsp;public&nbsp;static&nbsp;void&nbsp;sleep(long&nbsp;millis)&nbsp;throws&nbsp;InterruptedException<br/>&nbsp;&nbsp;使得当前线程休眠（暂时停止执行millis毫秒）<br/>2.sleep方法是静态方法，可以由类名直接调用。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=229</link>
			<title><![CDATA[Java中创建线程的两种方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,11 Apr 2008 12:25:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=229</guid>	
		<description><![CDATA[方法一：<br/>1.定义线程类实现Runnable接口；<br/>2.Runnable只有一个方法：public&nbsp;void&nbsp;run()&nbsp;{}；用于定义线程运行体；<br/>3.使用Runnable接口可以为多个线程提供共享的数据；<br/>4.在实现Runnable接口的类的run方法定义中可以使用Thread的静态方法：<br/>public&nbsp;static&nbsp;Tread&nbsp;currentThread()&nbsp;&nbsp;：获取当前线程的引用。<br/><br/>方法二：<br/>1.定义一个Thread的子类并重写其run方法；<br/>2.生成该类对象。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=228</link>
			<title><![CDATA[Java对象流]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,11 Apr 2008 01:16:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=228</guid>	
		<description><![CDATA[1.使用对象流可以直接将对象写入或读取。<br/>2.对象必须实现Serializable接口；<br/>3.使用transient关键字修饰的变量不会被写入或读取。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=227</link>
			<title><![CDATA[Java输出流]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,11 Apr 2008 00:35:48 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=227</guid>	
		<description><![CDATA[1.输出流包括PrintWriter和PrintStream，分别针对与字符和字节；<br/>2.输出流提供了重载print、println的方法用于多种数据类型的输出；<br/>3.输出流的输出操作不会抛出异常，用户通过检测错误状态获取错误信息；<br/>4.输出流有自动flush功能。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=226</link>
			<title><![CDATA[Java数据流]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,10 Apr 2008 22:26:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=226</guid>	
		<description><![CDATA[1.数据流DataInputStream和DataOutputStream需要分别“套接”在InputStream和OutputStream类型的节点流上；<br/>2.DataInputStream和DataOutputStream提供了可以存取与机器无关的Java原始类型数据（如：int，double等）的方法；<br/>3.构造方法：<br/>DataInputStream(InputStream&nbsp;in)<br/>DataOutputStream(OutputStream&nbsp;out)]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=225</link>
			<title><![CDATA[使用Java转换流读写文件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,10 Apr 2008 21:39:16 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=225</guid>	
		<description><![CDATA[转换流用于字节数据到字符数据之间的转换。<br/>InputStreamReader需要和InputStream“套接”；<br/>OutputStreamWriter需要和OutputStream“套接”；<br/>转换流在构造时可以指定其编码集合，如：InputStreamReader&nbsp;isr&nbsp;=&nbsp;new&nbsp;InputStreamReader(System.in,&quot;ISO8859_1&quot;)]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=224</link>
			<title><![CDATA[使用Java缓冲流读写文件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,10 Apr 2008 19:59:22 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=224</guid>	
		<description><![CDATA[缓冲流要“套接”在相应的节点流之上，对读写的数据提供了缓冲的功能，提高了读写的效率，同时增加了一些新的方法:<br/><br/>四种的缓冲流：<br/>BufferedReader(Reader&nbsp;in)<br/>BufferedWriter(Writer&nbsp;out)<br/>BufferedInputStream(InputStream&nbsp;in)<br/>BufferedOutStream(OutputStream&nbsp;out)<br/><br/>缓冲输入流支持其父类的mark和reset方法；<br/>BufferedReader提供了readLine方法用于读取一行字符串（以\r或\n分隔）；<br/>BufferedWriter提供了newLine方法用于写入一个行分隔符；<br/>对于输出的缓冲流，写出的数据会现在内存中缓存，使用flush方法将会使内存中的数据立刻写出。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=223</link>
			<title><![CDATA[使用Java的FileWriter类写入文件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,10 Apr 2008 01:06:28 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=223</guid>	
		<description><![CDATA[使用FileWriter类可以按字节流读取文件,<br/>可能会抛出FileNotFoundException]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=222</link>
			<title><![CDATA[使用Java的FileReader类读取文件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,10 Apr 2008 00:48:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=222</guid>	
		<description><![CDATA[使用FileReader类可以按字符流读取文件,<br/>可能会抛出FileNotFoundException]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=221</link>
			<title><![CDATA[使用Java的FileOutputStream类写入文件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,10 Apr 2008 00:25:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=221</guid>	
		<description><![CDATA[使用FileOutputStream类可以按字节流写入文件,<br/>可能会抛出IOException]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=220</link>
			<title><![CDATA[使用Java的FileInputStream类读取文件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,10 Apr 2008 00:22:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=220</guid>	
		<description><![CDATA[使用FileInputStream类可以按字节流读取文件,<br/>可能会抛出FileNotFoundException]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=219</link>
			<title><![CDATA[使用Java容器的Map接口统计单词个数（泛型）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,09 Apr 2008 14:30:21 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=219</guid>	
		<description><![CDATA[输入参数，统计参数中相同单词的个数。<br/>使用泛型方法改进]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=218</link>
			<title><![CDATA[Java容器的泛型]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,09 Apr 2008 14:14:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=218</guid>	
		<description><![CDATA[在容器中装入集合的类型都被当作Object对待，从而失去自己的实际类型；<br/>从集合中取出时往往需要转型，效率低，容易产生错误。<br/><br/>可以使用泛型解决这一问题：<br/>在定义集合的时候同时定义集合中对象的类型，在类型后加&lt;指定类型&gt;<br/>&nbsp;&nbsp;1.可以在定义Collection时指定；<br/>&nbsp;&nbsp;2.也可以在循环时用Iterator指定。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=217</link>
			<title><![CDATA[使用Java容器的Map接口统计单词个数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,09 Apr 2008 13:09:01 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=217</guid>	
		<description><![CDATA[输入参数，统计参数中相同单词的个数。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=216</link>
			<title><![CDATA[Java容器Map接口的Auto-boxing/unboxing]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,09 Apr 2008 03:04:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=216</guid>	
		<description><![CDATA[Auto-boxing/unboxing:在合适的时机自动打包、解包。<br/>1.自动将基础类型转换为对象；<br/>2.自动将对象转换为基础类型。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=215</link>
			<title><![CDATA[Java容器的Map接口]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,09 Apr 2008 02:54:05 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=215</guid>	
		<description><![CDATA[1.实现Map接口的类用来存储键-值对；<br/>2.Map接口的实现类有HashMap和TreeMap等；<br/>3.Map类中存储的键-值对通过键来标识，所以键值不能重复。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=214</link>
			<title><![CDATA[使用Comparable接口确定Java中List的排序方式]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,09 Apr 2008 01:51:23 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=214</guid>	
		<description><![CDATA[List中的sort方法可以对List中的对象排序，<br/>而实现了Comparable接口的类通过实现compareTo方法确定该类对象的排序方式。<br/>Comparable接口中只有一个方法：<br/>public&nbsp;int&nbsp;compareTo(Object&nbsp;obj);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=213</link>
			<title><![CDATA[Java中List的常用算法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,09 Apr 2008 01:03:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=213</guid>	
		<description><![CDATA[java.util.Collections类提供了一些静态方法实现基于List容器的一些常用算法。<br/>void&nbsp;sort(List)&nbsp;&nbsp;：对List容器内的元素排序；<br/>void&nbsp;shuffle(List)&nbsp;&nbsp;：对List容器内的对象进行随机排列；<br/>void&nbsp;reverse(List)&nbsp;&nbsp;：对List容器的对象进行逆序排列；<br/>void&nbsp;fill(List,Object)&nbsp;&nbsp;：用一个特定的对象重写整个List容器；<br/>void&nbsp;copy(List&nbsp;dest,List&nbsp;src)&nbsp;&nbsp;：将srcList容器内容复制到dest&nbsp;List容器<br/>int&nbsp;binarySearch(List,Object)&nbsp;&nbsp;：对于顺序的List容器，采用折半查找的方法查找特定对象。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=212</link>
			<title><![CDATA[Java容器的List接口]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,08 Apr 2008 23:58:57 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=212</guid>	
		<description><![CDATA[1.List接口是Collection的子接口，实现List接口的容器类中的元素是有顺序的，而且可以重复。<br/>2.List容器中的元素都对应一个整数型的序号，记载其在容器中的位置，可以根据序号存取容器中的元素。<br/>3.List容器类有ArrayList，LinkedList等。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=211</link>
			<title><![CDATA[Java容器的Set接口]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,08 Apr 2008 22:42:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=211</guid>	
		<description><![CDATA[1.Set接口是Collection的子接口，Set接口没有提供额外的方法，但实现Set接口的容器类中的元素是没有顺序的，而且不可以重复。<br/>2.Set容器可以与数学中“集合”的概念向对应；<br/>3.Set容器类有HashSet,TreeSet等。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=210</link>
			<title><![CDATA[Java增强的for循环]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,08 Apr 2008 22:38:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=210</guid>	
		<description><![CDATA[JDK1.5中增加了增强的for循环，格式如下：<br/>for(Object&nbsp;o&nbsp;:&nbsp;array)<br/>将array中的所有值依次赋值给o。<br/>缺点：<br/>&nbsp;&nbsp;对于数组，不能方便的访问下标值；]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=209</link>
			<title><![CDATA[Java容器的Iterator方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,08 Apr 2008 21:58:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=209</guid>	
		<description><![CDATA[所有实现了Collection接口的容器类都有一个iterator方法用于返回一个实现了Iterator接口的对象。<br/>Iterator对象称作迭代器，用以方便的实现对容器内元素的遍历操作。<br/>Iterator接口定义了如下方法：<br/>&nbsp;&nbsp;boolean&nbsp;hasNext()&nbsp;&nbsp;&nbsp;：判断游标右边是否有元素；<br/>&nbsp;&nbsp;Object&nbsp;next()&nbsp;：返回游标右边的元素并将游标移动到下一个位置；<br/>&nbsp;&nbsp;void&nbsp;remove()&nbsp;：删除游标左面的元素，在执行完next之后该操作只能执行一次。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=208</link>
			<title><![CDATA[Java容器的添加、删除对象方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,08 Apr 2008 20:56:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=208</guid>	
		<description><![CDATA[Collection接口定义了存取一组对象的方法，<br/>添加对象的方法：add(E&nbsp;o)<br/>移除对象的方法：remove(Object&nbsp;&nbsp;o)<br/>移除自定义类的对象时必须重写equals方法，同时重写hashCode方法。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=207</link>
			<title><![CDATA[Java枚举类型（Enum）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,08 Apr 2008 17:53:57 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=207</guid>	
		<description><![CDATA[枚举类型：java.lang.Enum<br/>1.只能取特定值中的一个；<br/>2.使用enum关键字。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=206</link>
			<title><![CDATA[使用Java的File类实现以树状结构显示指定文件夹中的子文件（夹）]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,08 Apr 2008 17:08:01 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=206</guid>	
		<description><![CDATA[以树状结构显示指定文件夹中的子文件（夹）：<br/>格式如下：<br/>A<br/>|_B<br/>&nbsp;&nbsp;&nbsp;&nbsp;|_C<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_D<br/>&nbsp;&nbsp;&nbsp;&nbsp;|_1.txt<br/>|_E<br/>&nbsp;&nbsp;&nbsp;&nbsp;|_F]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=205</link>
			<title><![CDATA[Java中使用File类创建文件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,08 Apr 2008 01:32:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=205</guid>	
		<description><![CDATA[java.io.File类代表系统文件名（路径和文件名）；<br/>File类的常见构造方法：<br/>Public&nbsp;File(String&nbsp;pathname)<br/>&#160;&#160;&#160;&#160;以pathname为路径创建File对象，如果pathname是相对路径，则默认的当前路径在系统属性user.dir中存储。<br/>public&nbsp;File(String&nbsp;parent,String&nbsp;child)<br/>&#160;&#160;&#160;&#160;以parent为父路径，child为子路径创建File对象。<br/>File的静态属性String&nbsp;separator存储量当前系统的路径分隔符。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=204</link>
			<title><![CDATA[Java的Math类]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,08 Apr 2008 01:28:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=204</guid>	
		<description><![CDATA[java.lang.Math提供了一系列静态方法用于科学计算；其方法的参数和返回值类型一般为double类型。<br/>&#160;&#160;&#160;&#160;abs&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;绝对值<br/>&#160;&#160;&#160;&#160;acos,asin,atan,cos,sin,tan&#160;&#160;&#160;&#160;三角函数<br/>&#160;&#160;&#160;&#160;sqrt&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;平方根<br/>&#160;&#160;&#160;&#160;pow(double&nbsp;a,double&nbsp;b)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;a的b次幂<br/>&#160;&#160;&#160;&#160;log&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;自然对数<br/>&#160;&#160;&#160;&#160;exp&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;e为底指数<br/>&#160;&#160;&#160;&#160;max(double&nbsp;a,double&nbsp;b)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;最大值<br/>&#160;&#160;&#160;&#160;min(double&nbsp;a,double&nbsp;b)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;最小值<br/>&#160;&#160;&#160;&#160;random()&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;返回0.0～1.0的随机数<br/>&#160;&#160;&#160;&#160;long&nbsp;round(double&nbsp;a)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;double型的数据a转换为long型（四舍五入）<br/>&#160;&#160;&#160;&#160;toDegrees(double&nbsp;angrad)&#160;&#160;&#160;&#160;弧度转换为角度<br/>&#160;&#160;&#160;&#160;toRadians(double&nbsp;angdeg)&#160;&#160;&#160;&#160;角度转换为弧度]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=203</link>
			<title><![CDATA[Java数组、字符串、数据类型转换综合应用]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,08 Apr 2008 00:10:30 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=203</guid>	
		<description><![CDATA[编写一个方法，返回一个double型二维数组，数组中的元素通过解析字符串参数获得；<br/>如字符串参数：&quot;1,2;3,4,5;6,7,8&quot;<br/>对应的数组为：<br/>d[0,0]=1.0&nbsp;d[0,1]=2.0<br/>d[1,0]=3.0&nbsp;d[1,1]=4.0&nbsp;d[1,2]=5.0<br/>d[2,0]=6.0&nbsp;d[2,1]=7.0&nbsp;d[2,2]=8.0]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=202</link>
			<title><![CDATA[Java基本数据类型包装类]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,07 Apr 2008 20:47:10 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=202</guid>	
		<description><![CDATA[包装类（如Integer，Double等）：<br/>&nbsp;&nbsp;这些类封装了一个相应的基本数据类型数值，并为其提供了一系列操作。<br/>构造方法（以java.lang.Integer类为例）：<br/>&nbsp;&nbsp;Integer(int&nbsp;value)&nbsp;<br/>&nbsp;&nbsp;&nbsp;Integer(String&nbsp;s)<br/>常用方法（以java.lang.Integer类为例）：<br/>&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;final&nbsp;int&nbsp;MAX_VALUE&nbsp;：最大的int型整数（2^31&nbsp;-&nbsp;1）<br/>&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;final&nbsp;int&nbsp;MIN_VALUE&nbsp;：最小的int型整数（-2^31）<br/>&nbsp;&nbsp;&nbsp;public&nbsp;long&nbsp;longValue()&nbsp;：返回封装数据的long型值<br/>&nbsp;&nbsp;&nbsp;public&nbsp;double&nbsp;doubleValue()&nbsp;：返回封装数据的double型值<br/>&nbsp;&nbsp;&nbsp;public&nbsp;int&nbsp;intValue()&nbsp;：返回封装数据的int型值<br/>&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;int&nbsp;parseInt(String&nbsp;s)&nbsp;throws&nbsp;NumberFormatException&nbsp;：将字符串解析成int型数据，返回该数据<br/>&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;Integer&nbsp;valueOf(String&nbsp;s)&nbsp;throws&nbsp;NumberFormatException&nbsp;：返回Integer对象，其中封装的整型数据为字符串s所表示。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=201</link>
			<title><![CDATA[Java的StringBuffer类]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,07 Apr 2008 19:48:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=201</guid>	
		<description><![CDATA[1.java.lang.StringBuffer代表可变的字符序列；<br/>2.StringBuffer和String类似，但StringBuffer可以对其字符串进行改变；<br/>3.StringBuffer类的常见构造方法：<br/>&nbsp;&nbsp;StringBuffer()<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;创建一个不包含字符序列的“空”的StringBuffer对象；<br/>&nbsp;&nbsp;StringBuffer(String&nbsp;str)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;创建一个StringBuffer对象，包含与String对象str相同的字符序列。<br/>4.常用方法：<br/>&nbsp;&nbsp;public&nbsp;StringBuffer&nbsp;append()<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可以为该StringBuffer对象添加字符序列，返回添加后的该StringBuffer对象引用；<br/>&nbsp;&nbsp;public&nbsp;StringBuffer&nbsp;insert()<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可以为该StringBuffer对象在指定位置插入字符序列，返回修改后的该StringBuffer对象引用；<br/>&nbsp;&nbsp;public&nbsp;StringBuffer&nbsp;delete(int&nbsp;start,int&nbsp;end)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可以删除从start开始到end-1为止的一段字符序列，返回修改后的该StringBuffer对象引用；<br/>&nbsp;&nbsp;public&nbsp;StringBuffer&nbsp;reverse()<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于将字符序列逆序，返回修改后的该StringBuffer对象引用。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=200</link>
			<title><![CDATA[Java中统计字符串中关键字的个数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,07 Apr 2008 19:09:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=200</guid>	
		<description><![CDATA[实现方法：<br/>&nbsp;&nbsp;在字符串中查找关键字，查到后再从下一位继续查找，直至查不到该关键字。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=199</link>
			<title><![CDATA[Java中统计字符串中大写、小写字母以及非英文字母数的N种方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,07 Apr 2008 18:21:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=199</guid>	
		<description><![CDATA[方法一：<br/>&nbsp;&nbsp;从字符串中分离出字符，依次将每一个字符与&#39;a&#39;,&#39;z&#39;比较，判断是否为小写字母，与&#39;A&#39;,&#39;Z&#39;比较，判断是否为大写字母，其他的为非英文字母。<br/>方法二：<br/>&nbsp;&nbsp;从字符串中分离出字符，依次将每一个字符在&#39;a&#39;~&#39;z&#39;中查找，如果查到则为小写字母，同样方法判断是否为大写字母，其他的为非英文字母。<br/>方法三：<br/>&nbsp;&nbsp;从字符串中分离出字符，依次将每一个字符用Character.isLowerCase()方法判断是否为小写字母，Character.isUpperCase()判断是否为大写字母，其他的为非英文字母。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=198</link>
			<title><![CDATA[Java中使用String类计算一个整数的位数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,07 Apr 2008 01:57:54 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=198</guid>	
		<description><![CDATA[计算一个整数的位数通常的做法是将这个数除10，在依次将商除10，直到商为0；<br/>除10的次数就是这个整数的位数。<br/>用String类也可以求出整数的位数，方法是先将整数转换为字符串，字符串的长度就是这个整数的位数。<br/>方法：public&nbsp;static&nbsp;String&nbsp;valueOf(int&nbsp;i)]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=197</link>
			<title><![CDATA[Java中String类的常用方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,07 Apr 2008 01:05:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=197</guid>	
		<description><![CDATA[public&nbsp;char&nbsp;charAt(int&nbsp;index)<br/>&nbsp;&nbsp;返回字符串中第index个字符；<br/>public&nbsp;int&nbsp;length()<br/>&nbsp;&nbsp;返回字符串的长度；<br/>public&nbsp;int&nbsp;indexOf(String&nbsp;str)<br/>&nbsp;&nbsp;返回字符串中第一次出现str的位置；<br/>public&nbsp;int&nbsp;indexOf(String&nbsp;str,int&nbsp;fromIndex)<br/>&nbsp;&nbsp;返回字符串从fromIndex开始第一次出现str的位置；<br/>public&nbsp;boolean&nbsp;equalsIgnoreCase(String&nbsp;another)<br/>&nbsp;&nbsp;比较字符串与another是否一样（忽略大小写）；<br/>public&nbsp;String&nbsp;replace(char&nbsp;oldchar,char&nbsp;newChar)<br/>&nbsp;&nbsp;在字符串中用newChar字符替换oldChar字符<br/>public&nbsp;boolean&nbsp;startsWith(String&nbsp;prefix)<br/>&nbsp;&nbsp;判断字符串是否以prefix字符串开头；<br/>public&nbsp;boolean&nbsp;endsWith(String&nbsp;suffix)<br/>&nbsp;&nbsp;判断一个字符串是否以suffix字符串结尾；<br/>public&nbsp;String&nbsp;toUpperCase()<br/>&nbsp;&nbsp;返回一个字符串为该字符串的大写形式；<br/>public&nbsp;String&nbsp;toLowerCase()<br/>&nbsp;&nbsp;返回一个字符串为该字符串的小写形式<br/>public&nbsp;String&nbsp;substring(int&nbsp;beginIndex)<br/>&nbsp;&nbsp;返回该字符串从beginIndex开始到结尾的子字符串；<br/>public&nbsp;String&nbsp;substring(int&nbsp;beginIndex,int&nbsp;endIndex)<br/>&nbsp;&nbsp;返回该字符串从beginIndex开始到endsIndex结尾的子字符串<br/>public&nbsp;String&nbsp;trim()<br/>&nbsp;&nbsp;返回该字符串去掉开头和结尾空格后的字符串<br/>public&nbsp;String[]&nbsp;split(String&nbsp;regex)<br/>&nbsp;&nbsp;将一个字符串按照指定的分隔符分隔，返回分隔后的字符串数组]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=196</link>
			<title><![CDATA[Java中String的构造方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,06 Apr 2008 23:58:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=196</guid>	
		<description><![CDATA[String类常见的构造方法：<br/>1.String(String&nbsp;original)&nbsp;<br/>&nbsp;&nbsp;创建一个String类对象为original的拷贝；<br/>2.String(char[]&nbsp;value)<br/>&nbsp;&nbsp;用一个字符数组创建一个String对象；<br/>3.String(char[]&nbsp;value,int&nbsp;offset,int&nbsp;count)<br/>&nbsp;&nbsp;用一个字符数组从offset项开始的count个字符序列创建一个String对象。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=195</link>
			<title><![CDATA[Java数组的复制]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,06 Apr 2008 22:13:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=195</guid>	
		<description><![CDATA[复制数组的方法：<br/>1.使用java.lang.System类的静态方法：<br/>&nbsp;&nbsp;public&nbsp;static&nbsp;void&nbsp;arraycopy(Object&nbsp;src,int&nbsp;srcPos,Object&nbsp;dest,int&nbsp;destPos,int&nbsp;length)<br/>2.可以用于数组src从第srcPos项元素开始的length个元素复制到目标数组从destPos项开始的length个位置。<br/>3.如果源数据数目超过目标数组边界会抛出IndexOutOfBoundsException异常。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=194</link>
			<title><![CDATA[Java二维数组的声明和初始化]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,06 Apr 2008 21:28:36 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=194</guid>	
		<description><![CDATA[1.二维数组可以看成以数组为元素的数组；<br/>2.Java中二维数组的声明和初始化应按照从高维到低维的顺序进行.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=193</link>
			<title><![CDATA[Java中使用“二分法”查找有序数组]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,06 Apr 2008 16:50:53 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=193</guid>	
		<description><![CDATA[“二分法”原理：<br/>把要查找的数与数组中间的数比较，如果小于则向前查找，如果大于则向后查找；<br/>再取中间的数比较，直至相等。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=192</link>
			<title><![CDATA[Java中使用面向对象思想求解“数三退一”游戏]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,06 Apr 2008 15:50:41 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=192</guid>	
		<description><![CDATA[构建一个玩家（Player）对象和一个圈（Circle）对象，玩家互相拉着手形成一个循环链表。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=191</link>
			<title><![CDATA[Java数组应用——“数三退一”游戏解法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,06 Apr 2008 03:13:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=191</guid>	
		<description><![CDATA[“数三退一”游戏规则：<br/>n个人编号0～n-1，手拉手围成一个圈，按照一定的方向从0号开始数，每数到3的人退出，从下一个人继续数，直到剩下最后一个人。<br/>求这个人的编号。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=190</link>
			<title><![CDATA[Java引用类型数组的排序]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,06 Apr 2008 00:50:12 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=190</guid>	
		<description><![CDATA[对日期（Date）类型数组排序]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=189</link>
			<title><![CDATA[Java数组排序——冒泡法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,05 Apr 2008 23:53:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=189</guid>	
		<description><![CDATA[冒泡法排序：<br/>从第一个数开始，与相邻的数比较，如果大于（升序）或小于（降序）则交换，一轮循环之后最大（小）的数沉到最后一位，较小（大）的数浮上来。<br/>继续下一轮循环，直至全部按顺序排列。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=188</link>
			<title><![CDATA[Java数组排序——选择法的改进]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,05 Apr 2008 22:01:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=188</guid>	
		<description><![CDATA[选择法排序是将一个数与一个较小（升序）或较大（降序）的数交换，再将这个较小（大）的数与后面的比较。<br/>这样每一轮循环需要多次交换，程序效率较低。<br/>为了提高程序执行的效率，可以设置一个指针，指向一个较小（大）的数，每一轮循环结束后指针指向的数是最小（大）的，如果指针指向的数不是原数字，则交换。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=187</link>
			<title><![CDATA[Java数组排序——选择法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,05 Apr 2008 21:23:51 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=187</guid>	
		<description><![CDATA[选择法排序：<br/>从第一个数开始，将每一个数都与它后面的数比较，如果如果该数大于（升序）或小于（降序）后面的数，则两个数交换。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=186</link>
			<title><![CDATA[Java中使用命令参数数组实现计算器功能]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,05 Apr 2008 20:55:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=186</guid>	
		<description><![CDATA[通过命令参数实现计算器功能<br/>运行方法：<br/>java&nbsp;TestArgs&nbsp;n1&nbsp;op&nbsp;n2<br/>n1:第一个数;n2:第二个数;op:运算符<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=185</link>
			<title><![CDATA[Java数组初始化]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,05 Apr 2008 19:51:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=185</guid>	
		<description><![CDATA[1.动态初始化：数组定义与为数组分配空间和赋值的操作分开进行；<br/>2.静态初始化：在定义数字的同时就为数组元素分配空间并赋值；<br/>3.默认初始化：数组是引用类型，它的元素相当于类的成员变量，因此数组分配空间后，每个元素也被按照成员变量的规则被隐士初始化。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=184</link>
			<title><![CDATA[Java数组对象的创建]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,05 Apr 2008 18:05:27 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=184</guid>	
		<description><![CDATA[一维数组的声明方式：<br/>type&nbsp;var[];&nbsp;或type[]&nbsp;var;<br/><br/>声明数组时不能指定其长度（数组中元素的个数）<br/><br/>Java中使用关键字new创建数组对象，格式为：<br/>数组名&nbsp;=&nbsp;new&nbsp;数组元素的类型&nbsp;[数组元素的个数]]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=183</link>
			<title><![CDATA[Java继承中重写方法的异常抛出]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,05 Apr 2008 17:35:09 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=183</guid>	
		<description><![CDATA[Java继承中子类方法抛出的异常范围不能大于父类中方法抛出的异常的范围（子类可以不抛出异常）。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=182</link>
			<title><![CDATA[Java中自定义异常]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,05 Apr 2008 17:19:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=182</guid>	
		<description><![CDATA[使用自定义异常的步骤：<br/>1.通过继承java.lang.Exception类声明自己的异常类；<br/>2.在方法适当的位置生成自定义异常的实例，并用throw语句抛出；<br/>3.在方法的声明部分用throws语句声明该方法可能抛出的异常。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=181</link>
			<title><![CDATA[Java中声明方法抛出的异常]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,05 Apr 2008 16:22:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=181</guid>	
		<description><![CDATA[Java中可以把不能处理的异常抛出]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=180</link>
			<title><![CDATA[Java异常的捕获和处理]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,05 Apr 2008 15:38:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=180</guid>	
		<description><![CDATA[1.try代码段包含可能产生例外的代码；<br/>2.try代码段后跟有一个或多个代码段；<br/>3.每个catch代码段声明其能处理的一种特定的异常并提供处理的方法；<br/>4.当异常发生时，程序会终止当前的流程，根据获取异常的类型去执行相应的catch代码段；<br/>5.finally段的代码无论是否发生异常都会执行。<br/>6.在一个try语句块中，基类异常的捕获语句不可以写在子类异常捕获语句的上面。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=179</link>
			<title><![CDATA[Java异常的分类]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,05 Apr 2008 03:59:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=179</guid>	
		<description><![CDATA[异常的分类：<br/>1.Error：称为错误，有Java虚拟机生成并抛出，包括动态链接失败、虚拟机错误等，程序对其不做处理。<br/>2.Exception：异常类的父类，其子类对应了各种各样可能出现的异常事件，一般需要用户显式的声明或捕获。<br/>3.Runtime&nbsp;Exception：一类特殊的异常，如被0除、数组下标超范围等，其产生比较频繁，处理麻烦，如果显式的声明或捕获将会对程序可读性和运行效率影响很大，因此由系统自动检测并将它们交给缺省的异常处理程序，用户可不必对其处理。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=178</link>
			<title><![CDATA[Java的异常处理]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,05 Apr 2008 01:08:19 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=178</guid>	
		<description><![CDATA[1.Java异常是Java提供的用于处理程序中错误的一种机制<br/>2.所谓错误是指在程序运行的过程中发生的一些异常事件（如：除0溢出，数组下标越界，所要读取的文件不存在）<br/>3.设计良好的程序应该在异常发生时提供处理这些错误的方法，使程序不会因为异常的发生而阻断或产生不可预见的结果<br/>4.Java程序的执行过程中如出现异常事件，可以生成一个异常类对象，该异常对对象封装了异常事件的信息并将被提交给Java运行时系统，这个过程称为抛出（throw）异常。<br/>5.当Java运行时系统接收到异常对象时，会寻求能处理这一异常的代码并把当前异常对象交给其处理，这一过程成为捕获（catch）异常。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=177</link>
			<title><![CDATA[Java中的多接口和继承]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,05 Apr 2008 00:06:52 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=177</guid>	
		<description><![CDATA[1.一个类可以在继承一个类的同时，实现多个接口；<br/>2.一个接口可以继承另一个接口。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=176</link>
			<title><![CDATA[Java接口]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,04 Apr 2008 22:51:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=176</guid>	
		<description><![CDATA[接口（interface）是抽象方法和常量值的定义的集合。<br/>从本质上讲，接口是一种特殊的车抽象类，这种抽象类只包含常量和方法的定义，而没有变量和方法的实现。<br/>特性：<br/>1.接口可以多重实现；<br/>2.接口中声明的属性默认为public&nbsp;static&nbsp;final的，也只能是public&nbsp;static&nbsp;final的；<br/>3.接口中只能定义抽象方法，而且这些方法默认为public的，也只能是public的；<br/>4.接口可以继承其它的接口，并添加新的属性和抽象方法。<br/>5.多个无关的类可以实现同一个接口；<br/>6.一个类可以实现多个无关的接口；<br/>7.与继承关系类似。接口与实现类之间存在多态性。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=175</link>
			<title><![CDATA[Java中final关键字的用法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,04 Apr 2008 20:57:23 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=175</guid>	
		<description><![CDATA[final关键字的用法:<br/>1.final变量的值不能够被改变；<br/>2.final方法不能够被重写；<br/>3.final类不能够被继承。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=174</link>
			<title><![CDATA[Java抽象类]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,04 Apr 2008 20:19:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=174</guid>	
		<description><![CDATA[1.用abstract关键字来修饰一个类时，这个类叫做抽象类；用abstract来修饰一个方法时，该方法叫做抽象方法。<br/>2.含有抽象方法的类必须被声明为抽象类，抽象类必须被继承，抽象方法必须被重写；<br/>3.抽象类不能被实例化；<br/>4.抽象方法只需声明，而不需实现。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=173</link>
			<title><![CDATA[Java中多态的用法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,04 Apr 2008 18:16:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=173</guid>	
		<description><![CDATA[多态是指在执行期间（非编译期）判断所引用对象的实际类型，根据其实际的类型调用其相应的方法。<br/>条件：<br/>1.要有继承；<br/>2.要有重写；<br/>3.父类引用指向子类对象。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=172</link>
			<title><![CDATA[Java对象转型的可扩展性]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,04 Apr 2008 15:52:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=172</guid>	
		<description><![CDATA[使用Java对象转型可以提高程序的可扩展性。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=171</link>
			<title><![CDATA[Java对象转型]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,04 Apr 2008 15:24:36 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=171</guid>	
		<description><![CDATA[Java对象的转型：<br/>1.一个基类的引用类型变量可以“指向”其子类的对象；<br/>2.一个基类的引用不可以访问其子类对象新增加的成员（属性和方法）；<br/>3.可以使用引用变量instanceof类名来判断该引用型变量所“指向”的对象是否属于该类或该类的子类；<br/>4.子类对象可以当作基类的对象来使用称作向上转型，反之称为向下转型。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=170</link>
			<title><![CDATA[Java中Object类的equals方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,04 Apr 2008 00:51:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=170</guid>	
		<description><![CDATA[Object类中equals方法的定义：<br/>public&nbsp;boolean&nbsp;equals(Object&nbsp;obj)<br/>1.x.equals(y)表示当x和y是同一个对象的应用时返回true，否则返回false。<br/>2.J2SDK提供的一些类，如String，Date等，重写了Object的equals方法，调用这些类的equals方法，x.equals(y)，当x和y所引用的对象是同一类对象且属性内容相等时（并不一定是相同对象），返回true，否则返回false。<br/>3.可以根据需要在用户自定义类型中重写equals方法。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=169</link>
			<title><![CDATA[Java中Object类的toString方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,03 Apr 2008 22:24:08 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=169</guid>	
		<description><![CDATA[Object类是所有Java类的基类；<br/>Object类中定义有public&nbsp;String&nbsp;toString()方法，其返回值是String类型，描述当前对象的有关信息；<br/>在进行String与其他类型数据的连接操作时（如：System.out.println(&quot;info&quot;&nbsp;+&nbsp;person)），将自动调用该对象类的toString()方法<br/>可以根据需要在用户自定义类型中重写toString()方法。<br/>默认情况下toString方法返回的字符如下：<br/>getClass().getName()&nbsp;+&nbsp;&#39;@&#39;&nbsp;+&nbsp;Integer.toHexString(hashCode())]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=168</link>
			<title><![CDATA[正方形是否是长方形的子类——里氏代换原则(LSP)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,03 Apr 2008 19:21:52 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=168</guid>	
		<description><![CDATA[应当尽量从抽象类继承，而不从具体类继承。Quadrangle接口相当于抽象类，使用这个抽象角色解决了具体类Rectangle和Square具有继承关系的问题。<br/>如果有两个具体类A和B有继承关系，那么一个最简单的修改方案应当是建立一个抽象类C，然后让类A和类B成为抽象类C的子类。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=167</link>
			<title><![CDATA[Java构造函数中this的用法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Wed,02 Apr 2008 00:49:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=167</guid>	
		<description><![CDATA[使用this(argument_list)可以调用本类的另外的构造函数]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=166</link>
			<title><![CDATA[Java继承中构造函数与一般成员函数的区别]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,01 Apr 2008 20:04:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=166</guid>	
		<description><![CDATA[在Java继承中构造函数与一般成员函数的区别：<br/>**构造函数子类的构造过程中必须调用其基类的构造函数；<br/>**一般成员函数的构造过程中只调用自身的构造函数。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=165</link>
			<title><![CDATA[Java继承中的构造方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,01 Apr 2008 17:56:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=165</guid>	
		<description><![CDATA[继承中的构造方法：<br/>1.子类的构造过程中必须调用其基类的构造方法；<br/>2.子类可以在自己的构造方法中使用super(argument_list)调用基类的构造方法；<br/>&nbsp;&nbsp;如果调用super，必须写在子类构造方法的第一行；<br/>3.如果子类的构造方法中没有显式调用基类构造方法，则系统默认调用基类无参数的构造方法；<br/>4.如果子类构造方法中既没有显式调用基类构造方法，而基类中又没有无参的构造方法，则编译出错。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=164</link>
			<title><![CDATA[Java中super关键字的用法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,01 Apr 2008 16:50:57 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=164</guid>	
		<description><![CDATA[在Java类中使用super来引用基类的成分。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=163</link>
			<title><![CDATA[Java中方法的重写]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Tue,01 Apr 2008 16:33:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=163</guid>	
		<description><![CDATA[方法重写要注意以下几点：<br/>1.在子类中可以根据需要对从基类中继承来的方法进行重写；<br/>2.重写方法必须和被重写方法具有相同方法名称、参数列表和返回类型；<br/>2.重写方法不能使用比被重写方法更严格的访问权限。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=162</link>
			<title><![CDATA[Java的类访问控制]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Mon,31 Mar 2008 23:34:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=162</guid>	
		<description><![CDATA[class的权限修饰只可以用public和default，<br/>public类可以在任意地方被访问；<br/>default类之可以被同一个包内部的类访问。<br/><br/>实例：]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=161</link>
			<title><![CDATA[Java的对象成员访问控制]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,30 Mar 2008 22:35:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=161</guid>	
		<description><![CDATA[Java权限修饰符public,protected,private置于类的成员定义之前，用来限定其他对象对该类对象成员的访问权限。<br/>------------------------------------------------------------------------<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;&nbsp;&nbsp;子类&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;任何地方<br/>------------------------------------------------------------------------<br/>private&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;√<br/>default&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;&nbsp;&nbsp;&nbsp;√<br/>protected&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;√<br/>public&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;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;√<br/>------------------------------------------------------------------------<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=160</link>
			<title><![CDATA[Java类的继承]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,30 Mar 2008 22:20:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=160</guid>	
		<description><![CDATA[Java中使用extends关键字实现类的继承机制，格式如下：<br/>&lt;modifier&gt;&nbsp;class&nbsp;&lt;name&gt;&nbsp;[extends&nbsp;&lt;superclass&gt;]&nbsp;{...}<br/>通过继承，子类自动拥有父类的所有成员（成员变量和方法），<br/>Java只支持单继承，不允许多继承，一个子类只能有一个父类，一个父类可以派生出多个子类。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=159</link>
			<title><![CDATA[Java中jar文件的创建与使用]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,30 Mar 2008 19:03:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=159</guid>	
		<description><![CDATA[1.创建jar文件的方法：<br/>&nbsp;&nbsp;DOS下使用命令：jar&nbsp;-cvf&nbsp;xx.jar&nbsp;*.*<br/>2.jar文件的使用：<br/>&nbsp;&nbsp;在环境变量classpath中加入jar文件的路径]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=158</link>
			<title><![CDATA[环境变量classpath在Java中的使用]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,30 Mar 2008 17:55:12 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=158</guid>	
		<description><![CDATA[使用import语句引入包，编译器首先在当前目录下查找这个包，如果找不到，会继续在环境变量classpath中的目录查找。<br/>因此，class文件的最上层包的父目录必须位于classpath下。<br/>不同的项目使用不同的classpath（Eclipse中可以实现）<br/>执行一个类需要写全包名。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=157</link>
			<title><![CDATA[Java的import语句]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,30 Mar 2008 16:50:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=157</guid>	
		<description><![CDATA[如果将一个类打包，则使用该类时，必须使用该类的全名（例如：cn.edu.ahau.mgc.Cat），Java编译器才会找到该类。<br/>为了简化语句，可以使用import在文件的开头引入要使用的类。<br/>特例：可以不需要用import语句直接使用java.lang包中的类。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=156</link>
			<title><![CDATA[Java的package语句]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,30 Mar 2008 16:31:19 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=156</guid>	
		<description><![CDATA[为了便于管理大型软件系统中数目众多的类，解决类的命名冲突问题，Java引入包（package）机制，提供类的多重类命名空间。<br/><br/>package语句的使用：<br/>1.package语句作为Java语句的第一条语句，指明该文件中定义的类所在的包，若缺省该语句，则指定为无名包。<br/>2.package语句的格式如下：<br/>&nbsp;&nbsp;package&nbsp;pkg1[.pkg2[.pkg3]]&nbsp;;<br/>3.Java编译器把包对应于文件系统的目录管理，package语句中，用“.”来指明包（目录）的层次，<br/>&nbsp;&nbsp;例如使用语句package&nbsp;cn.edu.mgc;<br/>&nbsp;&nbsp;则该文件中所有的类位于.\cn\edu\mgc目录下。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=155</link>
			<title><![CDATA[Java中static关键字的用法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,30 Mar 2008 15:12:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=155</guid>	
		<description><![CDATA[static关键字的用法：<br/>1.在类中，用static声明的成员变量为静态成员变量，它为该类的公用变量，在第一次使用时被初始化，对于该类的所有对象来说，static成员变量只有一份。<br/>2.用static声明的方法为静态方法，在调用该方法时，不会将对象的引用传递给它，所以在static方法中不可访问非静态成员；<br/>3.可以通过对象引用或类名（不需要实例化）访问静态成员。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=154</link>
			<title><![CDATA[Java中this关键字的用法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,30 Mar 2008 14:37:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=154</guid>	
		<description><![CDATA[Java中this关键字的用法如下：<br/>1.在类的方法定义中使用的this关键字代表使用该方法的对象的引用；<br/>2.当必须指出当前使用方法的对象是谁时要使用this；<br/>3.有时使用this可以处理的方法中成员变量和参数重名的情况；<br/>4.this可以看作是一个变量，它的值是当前对象的引用。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=152</link>
			<title><![CDATA[Java对象的创建与使用]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,27 Mar 2008 23:36:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=152</guid>	
		<description><![CDATA[创建一个圆对象（圆心坐标，半径），判断一个点（Point对象）是否在圆内<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=150</link>
			<title><![CDATA[Java构造函数的重载]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,23 Mar 2008 23:31:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=150</guid>	
		<description><![CDATA[构造函数也可以重载。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=149</link>
			<title><![CDATA[Java重载]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,23 Mar 2008 23:03:14 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=149</guid>	
		<description><![CDATA[重载：方法名相同，参数不同。<br/>方法名和参数名都相同是重复定义，不是重载，会产生错误。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=148</link>
			<title><![CDATA[使用Java构造函数创建Point类]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,23 Mar 2008 22:25:03 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=148</guid>	
		<description><![CDATA[定义一个点（Point）类用来表示三维空间的点（有三个坐标）：<br/>1.可以生成具有特定坐标的的点对象；<br/>2.提供可以设置三个坐标的方法；<br/>3.提供可以计算该“点”距原点距离平方的方法。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=147</link>
			<title><![CDATA[Java内存解析]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sun,23 Mar 2008 17:32:09 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=147</guid>	
		<description><![CDATA[方法调用完成之后，方法中的变量所占用的内存空间被释放，对象被垃圾收集器回收。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=146</link>
			<title><![CDATA[Java构造函数格式]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,22 Mar 2008 02:09:18 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=146</guid>	
		<description><![CDATA[构造函数格式：<br/>与类名相同（大小写一致），没有返回类型。<br/>如果类中没有写构造函数，系统会自动建立一个无参的构造函数。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=145</link>
			<title><![CDATA[Java中局部变量与成员变量的初始化]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,21 Mar 2008 21:09:12 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=145</guid>	
		<description><![CDATA[在Java中，局部变量必须初始化；成员变量可以不用初始化，系统自动初始化。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=144</link>
			<title><![CDATA[Java的递归非递归调用]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Fri,21 Mar 2008 19:45:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=144</guid>	
		<description><![CDATA[求Fibonacci数列：1,1,2,3,5,8,...第40个数的值。<br/><br/>分析：<br/>数列递推公式：F1=1，F2=1，...Fn=F(n-1)+F(n-2)(n&gt;2)<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=142</link>
			<title><![CDATA[Hibernate中使用HQL语句删除数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sat,01 Mar 2008 01:01:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=142</guid>	
		<description><![CDATA[在Hibernate&nbsp;3中，增加了HQL删除语句，格式如下：<br/>Delete&nbsp;FROM&nbsp;表名&nbsp;Where&nbsp;列名=?]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=141</link>
			<title><![CDATA[Hibernate中使用del&#101;te方法删除数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Sat,01 Mar 2008 00:54:12 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=141</guid>	
		<description><![CDATA[在Hibernate中，删除数据库中的数据可以使用Hibernate2、Hibernate3通用的删除方法，<br/>即：Session对象的delete方法。<br/>使用此种方法删除数据，必须先查找到数据对象，然后再删除，性能较低。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=140</link>
			<title><![CDATA[Hibernate中使用HQL查询数据库]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,29 Feb 2008 23:51:56 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=140</guid>	
		<description><![CDATA[在Hibernate中推荐使用HQL数据库查询语言查询数据库；<br/>查询语句格式与SQL相似，格式如下：<br/>FROM&nbsp;表名（首字母大写）&nbsp;Where&nbsp;列名=?]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=139</link>
			<title><![CDATA[使用Hibernate向Oracle中插入数据]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Hibernate]]></category>
			<pubDate>Fri,29 Feb 2008 20:24:54 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=139</guid>	
		<description><![CDATA[Hibernate是ORMapping的实现，通过一个类实现数据库操作]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=138</link>
			<title><![CDATA[使用Spring中的Ioc模式新建接口对象]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Spring]]></category>
			<pubDate>Fri,29 Feb 2008 00:39:04 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=138</guid>	
		<description><![CDATA[Spring主要应用是接口的设计，在Ioc设计模式中，去掉了工厂类，把所有的工厂放在资源文件（XML）中进行管理。<br/><br/>使用Spring的前提条件：<br/>1.下载最新的Spring开发包；<br/>2.把开发包中dist和lib目录中的全部文件复制到工作目录中的WEB-INF\lib文件夹下。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=137</link>
			<title><![CDATA[使用工厂设计模式新建接口对象]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,28 Feb 2008 01:50:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=137</guid>	
		<description><![CDATA[在Java中使用工厂设计模式，引入工厂类，可以解决客户端与子类之间的耦合问题<br/><br/>缺点：<br/>一个接口需要一个工厂类，如果接口过多，会造成工厂过多。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=136</link>
			<title><![CDATA[使用new方法新建接口对象]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Thu,28 Feb 2008 00:16:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=136</guid>	
		<description><![CDATA[Java中使用new方法新建接口对象格式如下：<br/>接口类型&nbsp;&nbsp;对象名称&nbsp;＝&nbsp;new&nbsp;接口子类();<br/><br/>这种方法的缺点：<br/>调用时必须知道接口有那些子类，程序之间紧密耦合。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=135</link>
			<title><![CDATA[WebLogic数据源配置]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[WebLogic]]></category>
			<pubDate>Wed,27 Feb 2008 00:29:16 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=135</guid>	
		<description><![CDATA[WebLogic中配置数据源的方法如下：<br/><br/>一、配置数据源；<br/><br/>二、测试数据源。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=134</link>
			<title><![CDATA[WebLogic服务器配置]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[WebLogic]]></category>
			<pubDate>Tue,26 Feb 2008 20:51:14 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=134</guid>	
		<description><![CDATA[WebLogic服务器配置过程如下：<br/><br/>一、配置域<br/><br/>二、部署服务器]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=133</link>
			<title><![CDATA[JSP基本登录模块Ⅺ(Struts框架)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Struts]]></category>
			<pubDate>Mon,25 Feb 2008 15:23:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=133</guid>	
		<description><![CDATA[使用Struts框架的登录模块由以下几部分组成：<br/><br/><span style="color:Red">JSP模块：</span><br/>login.jsp:登录页面，输入用户名、密码；<br/>errors.jsp:错误提示页，显示错误；<br/>success.jsp:登录成功页，显示成功信息；<br/>failure.jsp:登录失败页，显示失败信息；<br/><br/><span style="color:Red">Java模块：</span><br/>LoginForm.java:验证数据，保存错误信息；<br/>LoginAction.java:验证用户，判断用户是否合法；<br/><br/><span style="color:Red">XML模块：</span><br/>struts-config.xml:核心配置<br/>web.xml:服务器配置<br/><br/><span style="color:Red">资源模块：</span><br/>ApplicationResources.properties:保存错误信息。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=132</link>
			<title><![CDATA[Tomcat数据源配置]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Tomcat]]></category>
			<pubDate>Sun,24 Feb 2008 22:50:51 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=132</guid>	
		<description><![CDATA[使用数据源可以减少数据库打开关闭数据库的操作，提高性能。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=131</link>
			<title><![CDATA[JSP中连接Oracle数据库]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sun,24 Feb 2008 19:58:48 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=131</guid>	
		<description><![CDATA[连接方法：<br/>1.将Oracle的JDBC驱动程序（oracle\jbdc\lib\classes12.jar），拷贝到Tomcat安装目录的lib文件夹下；<br/>2.驱动程序：oracle.jdbc.driver.OracleDriver<br/>3.连接地址：jdbc:oracle:thin:@localhost:1521:数据库名<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=130</link>
			<title><![CDATA[Oracle SQL*Plus常用命令]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Oracle]]></category>
			<pubDate>Sun,24 Feb 2008 15:06:20 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=130</guid>	
		<description><![CDATA[1.登录SQL*Plus：<br/>&nbsp;&nbsp;命令行模式：sqlplus;<br/>&nbsp;&nbsp;图形界面：sqlplusw;<br/>2.查看所有表：<br/>&nbsp;&nbsp;Select&nbsp;*&nbsp;FROM&nbsp;tab;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=129</link>
			<title><![CDATA[JSP中连接MySQL数据库]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sun,24 Feb 2008 02:19:47 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=129</guid>	
		<description><![CDATA[连接方法：<br/>1.下载MySQL的JDBC驱动程序，拷贝到Tomcat安装目录的lib文件夹下；<br/>2.驱动程序：org.gjt.mm.mysql.Driver<br/>3.连接地址：jdbc:mysql://localhost/数据库名<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=128</link>
			<title><![CDATA[MySQL常用命令]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[MySQL]]></category>
			<pubDate>Sat,23 Feb 2008 23:37:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=128</guid>	
		<description><![CDATA[1.查看数据库：SHOW&nbsp;DATABASES;<br/>2.创建数据库：Create&nbsp;DATABASE&nbsp;数据库名;<br/>3.删除数据库：Drop&nbsp;DATABASE&nbsp;数据库名;<br/>4.选择数据库：USE&nbsp;数据库名;<br/>5.查看表：SHOW&nbsp;TABLES;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=127</link>
			<title><![CDATA[使用Servlet监听器统计在线用户]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Sun,17 Feb 2008 22:42:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=127</guid>	
		<description><![CDATA[使用Servlet监听器可以统计在线用户，具体实现方法如下：<br/>1.通过ServletContext监听初始化一个application对象，保存在线用户列表；<br/>2.通过Session监听当用户登录成功设置Session属性时将用户名保存在列表中；<br/>3.通过Session监听当用户注销登录时将用户名从列表中删除。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=126</link>
			<title><![CDATA[Servlet监听器对Session的监听]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Sun,17 Feb 2008 22:05:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=126</guid>	
		<description><![CDATA[Servlet监听器对Session监听的方法如下：<br/>1.HttpSessionListener<br/>public&nbsp;void&nbsp;sessionCreated(HttpSessionEvent&nbsp;se)：创建<br/>public&nbsp;void&nbsp;sessionDestroyed(HttpSessionEvent&nbsp;se)：销毁<br/><br/>2.HttpSessionAttributeListener<br/>public&nbsp;void&nbsp;attributeAdded(HttpSessionBindingEvent&nbsp;se)：增加属性<br/>public&nbsp;void&nbsp;attributeRemoved(HttpSessionBindingEvent&nbsp;se)：删除属性<br/>public&nbsp;void&nbsp;attributeReplaced(HttpSessionBindingEvent&nbsp;se)：更改属性]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=125</link>
			<title><![CDATA[Servlet监听器对ServletContext的监听]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Sun,17 Feb 2008 21:44:31 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=125</guid>	
		<description><![CDATA[Servlet监听器对ServletContext监听的方法如下：<br/>1.ServletContextListener:<br/>public&nbsp;void&nbsp;contextInitialized(ServletContextEvent&nbsp;sce)：初始化<br/>public&nbsp;void&nbsp;contextDestroyed(ServletContextEvent&nbsp;sce)：销毁<br/><br/>2.ServletContextAttributeListener<br/>public&nbsp;void&nbsp;attributeAdded(ServletContextAttributeEvent&nbsp;scab)：增加属性<br/>public&nbsp;void&nbsp;attributeRemoved(ServletContextAttributeEvent&nbsp;scab)：删除属性<br/>public&nbsp;void&nbsp;attributeReplaced(ServletContextAttributeEvent&nbsp;scab)：更改属性]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=124</link>
			<title><![CDATA[JSP基本登录模Ⅹ(Servlet过滤器验证Session)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Sat,16 Feb 2008 17:37:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=124</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">index.mgc</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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bsp;&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;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;V&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;&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;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">logout.jsp</span>------------------------------------&gt;|]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=123</link>
			<title><![CDATA[使用Servlet过滤器过滤非法字符]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Sat,16 Feb 2008 16:47:20 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=123</guid>	
		<description><![CDATA[使用Servlet过滤器可以方便的过滤非法字符。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=122</link>
			<title><![CDATA[Servlet过滤器的生命周期]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Sat,16 Feb 2008 16:16:14 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=122</guid>	
		<description><![CDATA[Servlet过滤器含有以下方法：<br/>1.初始化：服务器启动时自动初始化<br/>public&nbsp;void&nbsp;init(FilterConfig&nbsp;conf)&nbsp;throws&nbsp;ServletException;<br/>2.处理过程：<br/>pubic&nbsp;void&nbsp;doFilter(ServletRequest&nbsp;request,ServletResponse&nbsp;response,FilterChain&nbsp;chain)&nbsp;throws&nbsp;IOException,ServletException;<br/>3.销毁：服务器关闭时销毁<br/>public&nbsp;void&nbsp;destroy();]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=121</link>
			<title><![CDATA[JSP中使用EL调用集合]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,15 Feb 2008 23:25:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=121</guid>	
		<description><![CDATA[在JSP中使用EL调用集合时，可以将集合中的每一个元素逐一设置到pageContext属性中，再使用EL调用。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=120</link>
			<title><![CDATA[JSP中使用EL调用多层对象]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,15 Feb 2008 23:00:36 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=120</guid>	
		<description><![CDATA[在JSP中使用EL可以方便的调用多层对象。<br/>格式：<br/>${beanName.first.second}]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=119</link>
			<title><![CDATA[JSP中使用EL调用JavaBean]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,15 Feb 2008 22:25:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=119</guid>	
		<description><![CDATA[在JSP中使用EL调用JavaBean可以直接使用以下格式：<br/>1.点号记法：（常用）<br/>${beanName.beanProperty}<br/>2.数组记法：(很少使用)<br/>${beanName[&quot;beanProperty&quot;]}]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=118</link>
			<title><![CDATA[EL在MVC中的应用]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,15 Feb 2008 21:59:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=118</guid>	
		<description><![CDATA[在MVC中使用EL可以使代码更少，操作更方便。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=117</link>
			<title><![CDATA[JSP中使用EL精确访问存储对象]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,15 Feb 2008 21:43:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=117</guid>	
		<description><![CDATA[在JSP中使用表达式语言（EL）可以精确方便的访问存储对象。<br/>格式：<br/>${作用域变量}<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=116</link>
			<title><![CDATA[JSP中使用SmartUpload上传文件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,15 Feb 2008 20:16:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=116</guid>	
		<description><![CDATA[在JSP中可以使用SmartUpload组件上传文件。<br/><br/>使用组件前提方法：<br/>将smartupload.jar拷贝到Tomcat目录中的lib文件夹下。<br/><br/>注意：<br/>表单需要封装：ENCTYPE=&quot;multipart-data&quot;；<br/>使用封装后，接收参数应使用getRequest()方法获得request对象。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=115</link>
			<title><![CDATA[JSP留言管理系统Ⅵ(MVC+DAO设计模式)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Thu,14 Feb 2008 23:27:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=115</guid>	
		<description><![CDATA[使用MVC+DAO设计模式完成以下功能：<br/>1.游客可以查看通过审核的留言；<br/>2.普通用户登录后可以发表留言，修改密码；<br/>3.管理员登录后可以审核、修改、删除留言；<br/>4.超级管理员登录后可以管理用户，删除用户、修改密码、更改权限。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=114</link>
			<title><![CDATA[使用CSS设置重叠层次]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Wed,13 Feb 2008 23:53:00 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=114</guid>	
		<description><![CDATA[使用CSS可以对重叠的元素设置层次，格式如下：<br/>标签名{z-index:参数}<br/><br/>参数：<br/>整数，按照数值大小从上到下显示，数值最大的在上面。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=113</link>
			<title><![CDATA[使用CSS隐藏网页元素]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Wed,13 Feb 2008 23:42:07 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=113</guid>	
		<description><![CDATA[使用CSS可以隐藏文字、图像等网页元素，格式如下：<br/>标签名{visibility:参数}<br/><br/>参数：<br/>visible:可见；<br/>hidden:隐藏]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=112</link>
			<title><![CDATA[使用CSS定位]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Wed,13 Feb 2008 23:24:36 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=112</guid>	
		<description><![CDATA[使用CSS可以定位文字或图像，格式如下：<br/>标签名{position:参数;left:距离;top:距离}<br/><br/>参数：<br/>absolute:绝对定位；<br/>relative:相对定位；<br/>static:静止定位]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=111</link>
			<title><![CDATA[JSP基本登录模块Ⅸ(MVC+DAO设计模式)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Wed,13 Feb 2008 21:36:04 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=111</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">index.mgc</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|判断Cookie中有无用户名、密码<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----------------------<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;Y&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;N&nbsp;&nbsp;|<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;V<br/>&nbsp;&nbsp;&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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">logout.jsp</span>------------------------------------&gt;|]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=110</link>
			<title><![CDATA[使用CSS定位背景]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Wed,13 Feb 2008 14:50:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=110</guid>	
		<description><![CDATA[使用CSS可以定位背景，格式如下：<br/>标签名{background-position:水平参数&nbsp;垂直参数}<br/><br/>参数：<br/>1.关键字：center；水平：left,right；垂直：top,bottom；<br/>2.长度：px,pt,mm等；<br/>3.比例：%]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=109</link>
			<title><![CDATA[使用CSS固定背景]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Wed,13 Feb 2008 14:30:29 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=109</guid>	
		<description><![CDATA[使用CSS可以固定背景，格式如下：<br/>标签名{background-attachment:参数}<br/><br/>参数：<br/>fixed:页面滚动时，背景固定；<br/>scroll:页面滚动时，背景滚动。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=108</link>
			<title><![CDATA[使用CSS设置背景重复]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Wed,13 Feb 2008 14:15:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=108</guid>	
		<description><![CDATA[使用CSS可以设置背景重复,格式如下：<br/>标签名{background-repeat:参数}<br/><br/>参数：<br/>repeat:背景重复；<br/>repeat-x:横向重复；<br/>repeat-y:纵向重复；<br/>no-repeat:不重复。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=107</link>
			<title><![CDATA[使用CSS设置背景图片]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Wed,13 Feb 2008 14:02:01 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=107</guid>	
		<description><![CDATA[使用CSS可以设置背景图片，格式如下:<br/>标签名{background-image:url(参数)}<br/><br/>参数：<br/>图片地址，可以是相对路径，也可以是绝对路径。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=106</link>
			<title><![CDATA[使用CSS设置背景色]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Wed,13 Feb 2008 13:52:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=106</guid>	
		<description><![CDATA[使用CSS可以设置背景色，格式如下：<br/>标签{background-color:参数}<br/><br/>参数：<br/>1.颜色名称；<br/>2.16进制值；<br/>3.RGB值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=105</link>
			<title><![CDATA[使用CSS设置颜色]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Wed,13 Feb 2008 13:39:48 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=105</guid>	
		<description><![CDATA[使用CSS可以设置颜色，格式如下:<br/>标签名{color:参数}<br/><br/>参数：<br/>1.颜色名称：如blue、red等；<br/>2.16进制值：如#00FF00；<br/>3.RGB值：如RGB(255,0,0)，数值范围0-255，R表示红，G表示绿，B表示蓝。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=104</link>
			<title><![CDATA[使用CSS设置文字浮动]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Tue,12 Feb 2008 23:56:47 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=104</guid>	
		<description><![CDATA[使用CSS可以设置文字浮动，格式如下：<br/>标签名{float:参数}<br/><br/>参数：<br/>left：左浮动；<br/>reght：右浮动。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=103</link>
			<title><![CDATA[使用CSS设置边框颜色]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Tue,12 Feb 2008 23:48:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=103</guid>	
		<description><![CDATA[使用CSS可以设置边框颜色，格式如下：<br/>标签名{border-color:参数}<br/><br/>参数：<br/>1.颜色名称；<br/>2.16进制值<br/>3.RGB值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=102</link>
			<title><![CDATA[使用CSS设置边框样式]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Tue,12 Feb 2008 23:42:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=102</guid>	
		<description><![CDATA[使用CSS可以设置边框样式，格式如下：<br/>标签名{border-style:参数}<br/>参数见实例。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=101</link>
			<title><![CDATA[使用CSS设置空格填充]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Tue,12 Feb 2008 23:25:11 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=101</guid>	
		<description><![CDATA[使用CSS可以设置空格填充，格式如下：<br/>标签名{padding-top:参数;padding-bottom:参数;padding-left:参数;padding-right:参数}<br/>padding-top：顶空格填充；<br/>padding-bottom：底空格填充；<br/>padding-left：左空格填充；<br/>padding-right：右空格填充。<br/>参数不能为负值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=100</link>
			<title><![CDATA[使用CSS设置边距]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Tue,12 Feb 2008 23:20:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=100</guid>	
		<description><![CDATA[使用CSS可以设置边距，格式如下：<br/>标签名{margin-top:参数;margin-bottom:参数;margin-left:参数;margin-right:参数}<br/>margin-top：顶边距；<br/>margin-bottom：底边距；<br/>margin-left：左边距；<br/>margin-right：右边距。<br/>参数可以为负值。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=99</link>
			<title><![CDATA[JSP基本登录模块Ⅷ(MVC设计模式/无数据库)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Tue,12 Feb 2008 22:55:10 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=99</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-------------&gt;&nbsp;<span style="color:Red">login.jsp</span><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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|输入用户名、密码<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;V<br/>&nbsp;&nbsp;&nbsp;&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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;V&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;V<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-----<span style="color:Red">failure.jsp</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">pass.jsp</span><br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=98</link>
			<title><![CDATA[Servlet中使用RequestDispatcher接口跳转]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Tue,12 Feb 2008 22:17:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=98</guid>	
		<description><![CDATA[在Servlet中不能使用&lt;jsp:forward&nbsp;page=&quot;URL&quot;&nbsp;/&gt;跳转，而response.sendRedirect(&quot;URL&quot;)跳转不能传递request范围的参数。<br/>为了解决这一问题，可以使用RequestDispatcher接口的跳转，此跳转为服务器端跳转。<br/>方法如下：<br/>&#160;&#160;&#160;&#160;RequestDispatcher&nbsp;rdp=null;<br/>&#160;&#160;&#160;&#160;rdp=request.getRequestDispatcher(&quot;URL&quot;);<br/>&#160;&#160;&#160;&#160;rdp.forward(request,&nbsp;response);<br/>代码可以简化为：<br/>&#160;&#160;&#160;&#160;<span style="color:Red">request.getRequestDispatcher(&quot;URL&quot;).forward(request,&nbsp;response);</span>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=97</link>
			<title><![CDATA[Servlet中取得application对象的两种方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Tue,12 Feb 2008 20:58:47 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=97</guid>	
		<description><![CDATA[在Servlet中，取得application有两种方法：<br/>1.通过无参初始化方法，直接取得；<br/>2.通过有参初始化方法，必须使用config对象取得。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=96</link>
			<title><![CDATA[Servlet中设置session属性]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Tue,12 Feb 2008 20:19:47 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=96</guid>	
		<description><![CDATA[Servlet中，session对象的接口是HttpSession。<br/>使用request.getSession()方法取得session对象。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=95</link>
			<title><![CDATA[Servlet中的doGet与doPost方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Tue,12 Feb 2008 19:05:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=95</guid>	
		<description><![CDATA[在Servlet中，doGet方法处理get方法提交的参数，doPost方法处理post方法提交的参数]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=94</link>
			<title><![CDATA[Servlet中的初始化配置参数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Tue,12 Feb 2008 18:45:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=94</guid>	
		<description><![CDATA[Servlet中使用ServletConfig对象可以获得web.xml中配置的初始化参数。<br/>方法如下：<br/>public&nbsp;String&nbsp;getInitParameter(String&nbsp;name)<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=93</link>
			<title><![CDATA[设置多个名称映射同一个Servlet]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Tue,12 Feb 2008 18:35:54 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=93</guid>	
		<description><![CDATA[一个Servlet可以设置多个映射名称。<br/><br/>修改web.xml，只要&lt;servlet-name&gt;一致，就可以设置多个映射名称。<br/>“*”表示任意匹配。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=92</link>
			<title><![CDATA[Servlet的生命周期]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Tue,12 Feb 2008 16:42:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=92</guid>	
		<description><![CDATA[Servlet的生命周期：<br/>1.初始化（init）：<br/>&nbsp;&nbsp;&nbsp;&nbsp;默认情况下，第一次执行Servlet程序时初始化；<br/>2.服务（doGet、doPost）：<br/>&nbsp;&nbsp;&nbsp;&nbsp;执行多次；<br/>3.销毁（destroy）：<br/>&nbsp;&nbsp;&nbsp;&nbsp;服务器关闭或此Servlet长时间不使用。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=91</link>
			<title><![CDATA[通过映射访问Servlet]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Servlet]]></category>
			<pubDate>Tue,12 Feb 2008 16:11:08 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=91</guid>	
		<description><![CDATA[写好一个Servlet程序，需要映射一个地址才能被外部访问。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=90</link>
			<title><![CDATA[使用CSS设置垂直对齐]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Tue,12 Feb 2008 12:23:52 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=90</guid>	
		<description><![CDATA[使用CSS可以设置垂直对齐，格式如下：<br/>标签名{veritical-align:参数}<br/><br/>参数：<br/>top:顶端对齐；<br/>bottom:底端对齐；<br/>middle:居中；<br/>text-top:文字顶端对齐；<br/>text-bottom:文字底端对齐；<br/>baseline:基准线对齐；<br/>sub:下标；<br/>super:上标。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=89</link>
			<title><![CDATA[使用CSS设置段落缩进]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Mon,11 Feb 2008 23:49:27 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=89</guid>	
		<description><![CDATA[在CSS中，可以设置段落缩进，格式如下：<br/>标签名{text-indent:参数}<br/><br/>参数单位：<br/>cm:厘米<br/>mm:毫米<br/>pt:点数<br/>px:像素<br/>in:英寸<br/>pc:打印机字间距<br/>%:比例<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=88</link>
			<title><![CDATA[使用CSS设置文字对齐]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Mon,11 Feb 2008 23:38:16 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=88</guid>	
		<description><![CDATA[在CSS中，可以设置文字对齐，格式如下：<br/>标签名{text-align:参数}<br/><br/>参数：<br/>left:左对齐；<br/>center:居中；<br/>right:右对齐；<br/>justify:左右对齐。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=87</link>
			<title><![CDATA[使用CSS设置行间距]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Mon,11 Feb 2008 23:13:53 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=87</guid>	
		<description><![CDATA[在CSS中，可以设置行间距，格式如下：<br/>标签名{line-height:参数}<br/><br/>根据参数不同有3种方法：<br/>1.用数字参数设置：<br/>&nbsp;&nbsp;行间距＝字号×参数<br/>2.用单位参数设置：<br/>&nbsp;&nbsp;行间距＝参数<br/>3.用比例参数设置：<br/>&nbsp;&nbsp;行间距＝字号×参数]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=86</link>
			<title><![CDATA[JSP留言管理系统Ⅴ(DAO设计模式)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Mon,11 Feb 2008 22:57:33 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=86</guid>	
		<description><![CDATA[使用DAO设计模式完成以下功能：<br/>1.游客可以查看通过审核的留言；<br/>2.普通用户登录后可以发表留言，修改密码；<br/>3.管理员登录后可以审核、修改、删除留言；<br/>4.超级管理员登录后可以管理用户，删除用户、修改密码、更改权限。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=85</link>
			<title><![CDATA[JSP基本登录模块Ⅶ(DAO设计模式)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sun,10 Feb 2008 22:13:37 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=85</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">index.jsp</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|判断Cookie中有无用户名、密码<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----------------------<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;Y&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;V&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;&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;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">logout.jsp</span>------------------------------------&gt;|]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=84</link>
			<title><![CDATA[在DAO设计模式中使用工厂设计]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sun,10 Feb 2008 21:05:14 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=84</guid>	
		<description><![CDATA[工厂设计：<br/>&nbsp;&nbsp;&nbsp;&nbsp;使用工厂设计，使前台不用知道具体子类是谁，是前台显示与后台逻辑操作分离，便于修改。<br/><br/>实例：在DAO设计模式中加入工厂设计<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=83</link>
			<title><![CDATA[DAO设计模式]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sun,10 Feb 2008 20:41:00 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=83</guid>	
		<description><![CDATA[DAO设计模式：<br/>&nbsp;&nbsp;&nbsp;&nbsp;将所有的数据库操作封装在DAO中，实现前台显示与后台逻辑操作分离，便于维护。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=82</link>
			<title><![CDATA[JSP中JavaBean的四种作用范围]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sun,10 Feb 2008 13:44:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=82</guid>	
		<description><![CDATA[JavaBean的四种作用范围如下：<br/>1.page范围：属性只在当前页面有效，如果跳转到其他页面，需要重新实例化。<br/>&nbsp;&nbsp;&nbsp;&nbsp;适用于JSP页面操作资源；<br/>2.request范围：属性在服务器端跳转中有效；<br/>&nbsp;&nbsp;&nbsp;&nbsp;不常用，必须使用&lt;jsp:forward&nbsp;page=&quot;URL&quot;/&gt;跳转；<br/>3.session范围：属性在一次会话中有效；<br/>&nbsp;&nbsp;&nbsp;&nbsp;适用于用户登录；<br/>4.application范围：属性保存在服务器中；<br/>&nbsp;&nbsp;&nbsp;&nbsp;尽量少用，占用资源。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=81</link>
			<title><![CDATA[JSP中取得JavaBean属性]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sat,09 Feb 2008 22:58:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=81</guid>	
		<description><![CDATA[在JSP中，取得JavaBean属性可以使用getProperty()方法<br/>格式：<br/>&lt;jsp:getProperty&nbsp;name=&quot;实例化对象&quot;&nbsp;property=&quot;属性名&quot;&nbsp;/&gt;<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=80</link>
			<title><![CDATA[JSP中设置JavaBean属性的四种方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sat,09 Feb 2008 21:33:31 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=80</guid>	
		<description><![CDATA[在JSP中使用标签设置JavaBean属性有以下四种方法：<br/>1.<span style="color:Red">&lt;jsp:setProperty&nbsp;name=&quot;实例化对象名&quot;&nbsp;property=&quot;*&quot;&nbsp;/&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;根据参数名自动匹配设置属性，参数名要与Bean中的属性名一致；<br/>2.&lt;jsp:setProperty&nbsp;name=&quot;实例化对象名&quot;&nbsp;property=&quot;属性名&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;根据需要设置属性；<br/>3.&lt;jsp:setProperty&nbsp;name=&quot;实例化对象名&quot;&nbsp;property=&quot;属性名&quot;&nbsp;param=&quot;参数名&quot;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;手动设置参数和属性的关联；<br/>4.&lt;jsp:setProperty&nbsp;name=&quot;实例化对象名&quot;&nbsp;property=&quot;属性&quot;&nbsp;value=&quot;属性值&quot;&nbsp;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;为属性设置属性值，如是变量，需用表达式输出。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=79</link>
			<title><![CDATA[JSP中使用标签指令调用JavaBean]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sat,09 Feb 2008 20:57:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=79</guid>	
		<description><![CDATA[格式：<br/>&lt;jsp:useBean&nbsp;id=&quot;实例化对象名&quot;&nbsp;scope=&quot;使用范围&quot;&nbsp;class=&quot;包名.类名&quot;&nbsp;/&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=78</link>
			<title><![CDATA[JSP中使用import指令调用JavaBean]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sat,09 Feb 2008 20:48:58 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=78</guid>	
		<description><![CDATA[格式：<br/>&lt;%@page&nbsp;import=&quot;包名.*&quot;&nbsp;%&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=77</link>
			<title><![CDATA[Java命名规范]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[J2SE]]></category>
			<pubDate>Sat,09 Feb 2008 20:39:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=77</guid>	
		<description><![CDATA[Java命名规范如下：<br/>1.包名：全部小写，如：mgc.bean.test<br/>2.类名：首字母大写，如：Bean<br/>3.属性、方法名：第一个单词首字母小写，其余单词首字母大写，如：getName();public&nbsp;void&nbsp;setName()<br/>4.常量名：大写，如：DBDRIVER]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=76</link>
			<title><![CDATA[JSP留言管理系统Ⅳ(附加用户权限功能)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,08 Feb 2008 21:55:10 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=76</guid>	
		<description><![CDATA[附加权限功能：<br/>1.游客可以查看通过审核的留言；<br/>2.普通用户登录后可以发表留言，修改密码；<br/>3.管理员登录后可以审核、修改、删除留言；<br/>4.超级管理员登录后可以管理用户，删除用户、修改密码、更改权限。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=75</link>
			<title><![CDATA[JSP留言管理系统Ⅲ(附加审核功能)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,08 Feb 2008 20:37:53 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=75</guid>	
		<description><![CDATA[功能：游客可以发表留言，查看留言，留言按照发表时间倒序显示；管理员登录后可以审核、修改、删除留言。<br/><br/>此留言管理系统包含以下文件：<br/>1.首页(index.jsp)：按发表时间倒序显示留言内容，管理员登录后显示欢迎信息和管理链接；<br/>2.发表留言页面(post.jsp)：输入作者、内容提交；<br/>3.留言保存页面(post_do.jsp)：将提交的留言存入数据库；<br/>4.登录页面(login.jsp)：输入用户名、密码提交；<br/>5.登录验证页面(check.jsp)：验证用户名、密码是否合法；<br/>6.修改留言页面(alter.jsp)：修改留言，登录后可用；<br/>7.修改留言保存页面(alter_do.jsp)：修改后将留言存入数据库，登录后可用；<br/>8.删除留言页面(del.jsp)：删除留言，登录后可用；<br/>9.审核留言页面(show.jsp)：通过审核、撤销审核；<br/>10.注销登录页面(logout.jsp)：注销登录；<br/>11.数据库(gb.mdb)：<br/>&nbsp;&nbsp;content&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;留言内容表<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;序号列<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_gb_author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作者列<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_gb_content&nbsp;&nbsp;&nbsp;&nbsp;内容列<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_gb_time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发表时间列<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_is_show&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否显示列<br/>&nbsp;&nbsp;admin<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;序号列&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_username&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户名列<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_password&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;密码列]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=74</link>
			<title><![CDATA[JSP留言管理系统Ⅱ(附加管理功能)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,08 Feb 2008 17:46:48 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=74</guid>	
		<description><![CDATA[功能：游客可以发表留言，查看留言，留言按照发表时间倒序显示；管理员登录后可以修改、删除留言。<br/><br/>此留言管理系统包含以下文件：<br/>1.首页(index.jsp)：按发表时间倒序显示留言内容，管理员登录后显示欢迎信息和管理链接；<br/>2.发表留言页面(post.jsp)：输入作者、内容提交；<br/>3.留言保存页面(post_do.jsp)：将提交的留言存入数据库；<br/>4.登录页面(login.jsp)：输入用户名、密码提交；<br/>5.登录验证页面(check.jsp)：验证用户名、密码是否合法；<br/>6.修改留言页面(alter.jsp)：修改留言，登录后可用；<br/>7.修改留言保存页面(alter_do.jsp)：修改后将留言存入数据库，登录后可用；<br/>8.删除留言页面(del.jsp)：删除留言，登录后可用；<br/>9.注销登录页面(logout.jsp)：注销登录；<br/>10.数据库(gb.mdb)：<br/>&nbsp;&nbsp;content&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;留言内容表<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;序号列<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_gb_author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作者列<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_gb_content&nbsp;&nbsp;&nbsp;&nbsp;内容列<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_gb_time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发表时间列<br/>&nbsp;&nbsp;admin<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;序号列&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_username&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户名列<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_password&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;密码列]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=73</link>
			<title><![CDATA[JSP留言管理系统Ⅰ(无管理功能)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Thu,07 Feb 2008 23:08:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=73</guid>	
		<description><![CDATA[功能：游客可以发表留言，查看留言，留言按照发表时间倒序显示。<br/><br/>此留言管理系统包含以下文件：<br/>1.首页(index.jsp)：按发表时间倒序显示留言内容；<br/>2.发表留言页面(post.jsp)：输入作者、内容提交；<br/>3.留言保存页面(post_do.jsp)：将提交的留言存入数据库；<br/>4.数据库(gb.mdb)：<br/>&nbsp;&nbsp;content&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;留言内容表<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;序号列<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_gb_author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作者列<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_gb_content&nbsp;&nbsp;&nbsp;&nbsp;内容列<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|_gb_time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发表时间列]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=72</link>
			<title><![CDATA[JSP基本登录模块Ⅵ(附加注册功能)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Thu,07 Feb 2008 20:38:43 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=72</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">index.jsp</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;V&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;&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;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">logout.jsp</span>------------------------------------&gt;|]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=71</link>
			<title><![CDATA[JSP基本登录模块Ⅴ(防SQL注入攻击)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Thu,07 Feb 2008 17:16:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=71</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">index.jsp</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=70</link>
			<title><![CDATA[JSP基本登录模块Ⅳ(使用Access数据库)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Thu,07 Feb 2008 16:33:56 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=70</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">index.jsp</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|判断Cookie中有无用户名、密码<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----------------------<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;Y&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;N&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">logout.jsp</span>------------------------------------&gt;|]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=69</link>
			<title><![CDATA[通过XML设置Tomcat默认主页]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Tomcat]]></category>
			<pubDate>Wed,06 Feb 2008 18:38:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=69</guid>	
		<description><![CDATA[在TOMCAT中，默认主页为：index.htm,index.html,index.jsp<br/>如果需要使用其他页面作为默认主页，需要配置WEB-INF文件夹下的web.xml文件<br/>格式:<br/>&nbsp;&nbsp;&lt;welcome-file-list&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;<br/>&nbsp;&nbsp;&lt;/welcome-file-list&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=68</link>
			<title><![CDATA[JSP中使用config对象在映射页面中取得初始化参数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Wed,06 Feb 2008 18:20:56 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=68</guid>	
		<description><![CDATA[在JSP中，可以在WEB-INF文件夹下的web.xml中设置服务器初始化参数。<br/>在页面中取得这些参数需要使用config对象的getInitParameter()方法：<br/>public&nbsp;String&nbsp;getInitParameter(String&nbsp;name)<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=67</link>
			<title><![CDATA[使用XML映射WEB-INF中的页面]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[Tomcat]]></category>
			<pubDate>Wed,06 Feb 2008 18:00:01 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=67</guid>	
		<description><![CDATA[在JSP中“WEB-INF”文件夹是不能直接访问的，把重要的文件放到该目录别人无法访问，安全性较高。<br/>我们如果要访问该文件夹下的页面，需要对该文件夹下的web.xml文件进行配置。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=66</link>
			<title><![CDATA[JSP中取得工作目录的真实路径]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Wed,06 Feb 2008 17:28:01 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=66</guid>	
		<description><![CDATA[在JSP中，取得服务器的工作目录可是使用application对象的getRealPath方法：<br/>public&nbsp;String&nbsp;getRealPath(String&nbsp;Path)<br/>参数Path是加到路径后面的字符<br/>在实际应用中，往往使用getServletContext()代替application]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=65</link>
			<title><![CDATA[JSP中JDBC批处理操作]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Tue,05 Feb 2008 22:03:09 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=65</guid>	
		<description><![CDATA[JDBC2.0中提供了批处理操作，可以让一个Statement同时执行多个SQL语句，以提高性能。<br/>方法：<br/>1.取消自动提交；<br/>2.执行批处理；<br/>3.如果没有异常，提交数据；只要有一个SQL语句出现异常，回滚事务]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=64</link>
			<title><![CDATA[JSP中可滚动的ResultSet(JDBC2.0)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Tue,05 Feb 2008 21:58:27 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=64</guid>	
		<description><![CDATA[设置ResultSet可以上下滚动的参数：<br/>TYPE_FORWARD_ONLY：只能向下依次移动<br/>TYPE_SCROLL_SENSITIVE：可以上下滚动，不能取得结果集改变的值<br/>TYPE_SCROLL_INSENSITIVE：可以上下滚动，能取得结果集改变的值<br/>这种方法性能较差，不建议使用]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=63</link>
			<title><![CDATA[JSP中解决数据插入的单引号问题]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Tue,05 Feb 2008 20:30:53 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=63</guid>	
		<description><![CDATA[在JSP中,向数据库中插入数据,可以通过以下方法设置SQL语句:<br/>sql=&quot;Insert&nbsp;INTO&nbsp;member&nbsp;(列名,列名)&nbsp;VALUES(&#39;&quot;+变量+&quot;&#39;,&#39;&quot;+变量+&quot;&#39;)&quot;;<br/>用户可以提交自己填写用户名、密码，但是如果提交的内容里含有单引号“&#39;”，就会发生“数据库操作失败”错误。<br/>这是因为含有单引号的变量代入到SQL语句里，会使SQL语句多一个单引号，<br/>比如：用户输入用户名：“Mr&#39;s”&nbsp;，密码：“123456”，则<br/>sql=&quot;Insert&nbsp;INTO&nbsp;member&nbsp;(username,password)&nbsp;VALUES(&#39;Mr<span style="color:Red">&#39;</span>s&#39;,&#39;123456&#39;)&quot;;<br/>这样SQL语句的格式就出错了。<br/><br/>要解决这一问题，可以使用Statement的一个子接口:PreparedStatement<br/>先预处理SQL语句:<br/>sql=&quot;Insert&nbsp;INTO&nbsp;member&nbsp;(列名,列名)&nbsp;VALUES(?,?)&quot;;<br/>再为&quot;?&quot;指定对应的变量<br/>pstmt.setString(1,变量);<br/>pstmt.setString(2,变量);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=62</link>
			<title><![CDATA[JSP中查询Access数据库(JDBC-ODBC)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Tue,05 Feb 2008 18:34:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=62</guid>	
		<description><![CDATA[查询数据库时，使用ResultSet对象处理结果集<br/><br/>获得结果值的两种方法：<br/>1.String&nbsp;Str=rs.getString(&quot;列名&quot;);<br/>2.String&nbsp;Str=rs.getString(&quot;列序号&quot;);<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=61</link>
			<title><![CDATA[使用CSS设置字母间距]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Mon,04 Feb 2008 22:33:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=61</guid>	
		<description><![CDATA[在CSS中，可以设置字间距，格式如下：<br/>标签名{letter-spacing:参数}<br/><br/>参数单位：<br/>cm:厘米<br/>mm:毫米<br/>pt:点数<br/>px:像素<br/>in:英寸<br/>pc:打印机字间距]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=60</link>
			<title><![CDATA[使用CSS设置字间距]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Mon,04 Feb 2008 22:29:34 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=60</guid>	
		<description><![CDATA[在CSS中，可以设置字间距，格式如下：<br/>标签名{word-spacing:参数}<br/><br/>参数单位：<br/>cm:厘米<br/>mm:毫米<br/>pt:点数<br/>px:像素<br/>in:英寸<br/>pc:打印机字间距]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=59</link>
			<title><![CDATA[JSP中连接Access数据库(JDBC-ODBC)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Mon,04 Feb 2008 22:10:15 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=59</guid>	
		<description><![CDATA[JDBC是JAVA连接数据库的一个标准.<br/><br/>JDBC与ODBC的比较:<br/>JDBC:是SUN提供的JAVA操作数据库的方法,基于JAVA跨平台特性,移植性好;<br/>ODBC:是MicroSoft提供的操作数据库的方法,支持的数据库类型多.<br/><br/>JSP连接Access数据库的方法:<br/>JDBC-ODBC桥接方式:使用ODBC提供的数据库连接技术访问数据库,性能较低,开发中通常不使用此方法.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=58</link>
			<title><![CDATA[使用CSS修饰文字]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Mon,04 Feb 2008 21:09:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=58</guid>	
		<description><![CDATA[使用CSS可以进行文字修饰，格式如下：<br/>标签名{text-decoration:参数}<br/><br/>参数：<br/>underline:下划线<br/>overline:上划线<br/>line-through:删除线<br/>none:正常文字]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=57</link>
			<title><![CDATA[CSS实现字母大小写转换]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Mon,04 Feb 2008 20:50:00 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=57</guid>	
		<description><![CDATA[CSS中，可以对英文字母进行大小写转换，格式如下：<br/>标签名{text-transform:参数}<br/><br/>参数：<br/>uppercase:转换为大写字母；<br/>lowercase:转换为小写字母；<br/>capitalize:单词首字母大写；<br/>none:不转换，正常显示。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=56</link>
			<title><![CDATA[使用CSS设置字重]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Mon,04 Feb 2008 18:53:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=56</guid>	
		<description><![CDATA[使用CSS可以设置自重，格式如下：<br/>标签名{font-weight:参数}<br/><br/>参数：<br/>100，200，...，900：400为正常字体，900为最加重字体；<br/>bold：最常见的加重参数；<br/>normal：正常字体；<br/>bloder、lighter：相对加重、减轻字体。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=55</link>
			<title><![CDATA[使用CSS设置字体风格]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Mon,04 Feb 2008 18:39:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=55</guid>	
		<description><![CDATA[使用CSS可以设置字体风格，格式如下：<br/>标签名&nbsp;{font-style:参数}<br/>参数：<br/>normal:普通<br/>italic:斜体]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=54</link>
			<title><![CDATA[JSP中Cookie与Session的区别]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Mon,04 Feb 2008 18:24:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=54</guid>	
		<description><![CDATA[在JSP中Cookie与Session都是保存一个用户的信息。<br/><br/>它们的区别如下：<br/>1.Cookie:<br/>a.信息保存在客户端上；<br/>b.比Session节约资源。<br/><br/>2.Session:<br/>a.信息保存在服务器上；<br/>b.比Cookie安全。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=53</link>
			<title><![CDATA[JSP中取得session时间]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Mon,04 Feb 2008 18:11:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=53</guid>	
		<description><![CDATA[在JSP中取得创建session的时间，使用session对象的getCreationTime()方法：<br/>public&nbsp;long&nbsp;getCreationTime()<br/><br/>取得最后一次操作的时间，使用session对象的getLastAccessedTime()方法：<br/>public&nbsp;long&nbsp;getLastAccessedTime（）]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=52</link>
			<title><![CDATA[JSP基本登录模块Ⅲ(附加Session验证功能)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Mon,04 Feb 2008 17:17:48 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=52</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">index.jsp</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|判断Cookie中有无用户名、密码<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----------------------<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;Y&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;N&nbsp;&nbsp;|<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;V<br/>&nbs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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;V&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;&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;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">logout.jsp</span>------------------------------------&gt;|]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=51</link>
			<title><![CDATA[JSP中判断是否为新建的session]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Mon,04 Feb 2008 15:57:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=51</guid>	
		<description><![CDATA[为了判断当前session是否为新建的，使用session对象的isNew()方法：<br/>public&nbsp;boolean&nbsp;isNew()]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=50</link>
			<title><![CDATA[JSP中获取sessionID]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Mon,04 Feb 2008 15:26:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=50</guid>	
		<description><![CDATA[sessionID：服务器通过sesionID来区分不同的用户，任何连接到服务器的用户，服务器都会为之分配一个不会重复的sessionID。<br/><br/>获取sessionID的方法：<br/>session.getID()<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=49</link>
			<title><![CDATA[JSP基本登录模块Ⅱ(附加Cookie验证功能)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sun,03 Feb 2008 22:49:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=49</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">index.jsp</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|判断Cookie中有无用户名、密码<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----------------------<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;Y&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;N&nbsp;&nbsp;|<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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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">pass.jsp</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">failure.jsp</span>----------<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=48</link>
			<title><![CDATA[JSP中设置Cookie]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sun,03 Feb 2008 21:35:26 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=48</guid>	
		<description><![CDATA[Cookie是服务端保存在客户端的一组资源<br/>通过服务器端将Cookie设置到客户端使用response对象的addCookie()方法：<br/>public&nbsp;void&nbsp;addCookie(Cookie&nbsp;cookie)<br/>在服务器端获得Cookie使用request对象的getCookies()方法：<br/>public&nbsp;Cookie[]&nbsp;getCookies()]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=47</link>
			<title><![CDATA[JSP中两种跳转的区别]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sun,03 Feb 2008 20:45:55 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=47</guid>	
		<description><![CDATA[在JSP中，跳转页面有两种方式：<br/>1.forward跳转：<br/>&lt;jsp:forward&nbsp;page=&quot;跳转页面地址&quot;&nbsp;/&gt;<br/>2.response跳转：<br/>response.sendRedirect(&quot;跳转页面地址&quot;);]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=46</link>
			<title><![CDATA[JSP中使用response设置HTTP头信息]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sun,03 Feb 2008 19:52:59 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=46</guid>	
		<description><![CDATA[使用response对象可以设置HTTP的头信息。<br/>格式：response.setHeader(&quot;头信息名称&quot;,&quot;参数&quot;);<br/>其中一个重要的头信息是：refresh（刷新）。<br/><br/>使用HTTP头信息设置，我们还可以实现在规定的时间内跳转：<br/>格式：response.setHeader(&quot;refresh&quot;,&quot;时间;URL=跳转页面地址&quot;);<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=45</link>
			<title><![CDATA[使用CSS设置任意大小的字号]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Sat,02 Feb 2008 22:18:45 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=45</guid>	
		<description><![CDATA[在HTML中，只能用&lt;font&nbsp;size=&quot;x&quot;&gt;设置7种字号，而使用CSS可以设置任意大小的字号。<br/>在CSS中设置字号有3种方法：<br/>1.固定单位：pt(点),px(像素),in(英寸),cm(厘米),mm(毫米);<br/>2.关键字：xx-small,x-small,medium,large,x-large,xx-large;<br/>3.比例参数:150%(从母体继承的比例).]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=44</link>
			<title><![CDATA[CSS的处理优先级]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Sat,02 Feb 2008 21:25:57 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=44</guid>	
		<description><![CDATA[浏览器在处理CSS代码时如遇到设置冲突，则按照以下优先级处理：<br/>1.Inline&nbsp;styles(行内样式)；<br/>2.Embedded&nbsp;styles(植入样式)；<br/>3.Linked&nbsp;styles(链接样式)；<br/>4.Imported&nbsp;styles(引入样式)；<br/>5.Default&nbsp;browser&nbsp;styles(默认浏览器样式)。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=43</link>
			<title><![CDATA[CSS中的情景选择]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Sat,02 Feb 2008 21:07:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=43</guid>	
		<description><![CDATA[CSS中可以设置只有同时处于几个标签之中时才使用该样式设置<br/>格式：<br/>外标签名&nbsp;内标签名{样式属性}<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=42</link>
			<title><![CDATA[CSS中的样式分类]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Sat,02 Feb 2008 20:53:44 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=42</guid>	
		<description><![CDATA[所有的HTML标签都能用CSS设置样式，如果你想是同一种标签有不同的样式，就要使用CSS的分类。<br/>方法如下：<br/>标签名.类别名&nbsp;{样式属性}<br/>不写标签名，直接用“.类别名&nbsp;{样式属性}”设置样式更灵活，可以用于任何标签<br/>使用时在标签里添加class=&quot;类别名&quot;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=39</link>
			<title><![CDATA[把CSS加入到网页中的四种方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Sat,02 Feb 2008 20:20:36 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=39</guid>	
		<description><![CDATA[把CSS加入到网页中有以下四种方法：<br/>1.Embedded&nbsp;styles(植入样式)：将CSS代码写在网页文件中；<br/>2.Linked&nbsp;styles(链接样式)：将外部CSS文件链接到网页文件中；<br/>3.Imported&nbsp;styles(引入样式,有人翻译为输入样式，我感觉很不妥，虽然偶的E文特短)：将外部CSS文件输入到网页文件中；<br/>4.Inline&nbsp;styles(行内样式)：在网页代码行中加入CSS代码。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=37</link>
			<title><![CDATA[JSP实现客户端IP地址的获取]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sat,02 Feb 2008 17:43:49 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=37</guid>	
		<description><![CDATA[在JSP中使用request.getRemoteAddr()方法可以获得客户端的IP地址。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=36</link>
			<title><![CDATA[JSP中接收所有参数的方法——request.getParameterNames()]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sat,02 Feb 2008 17:18:20 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=36</guid>	
		<description><![CDATA[在JSP中，如果提交的参数太多，一个个的接收太麻烦。<br/>可以使用request.ParameterName()方法接收所有的参数来解决这个问题。<br/>方法：public&nbsp;Enumeration&nbsp;getParameterNames()<br/>Enumeration:枚举类型<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=35</link>
			<title><![CDATA[JSP地址重写]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sat,02 Feb 2008 16:44:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=35</guid>	
		<description><![CDATA[JSP中提交参数除了使用表单，也可以直接在地址栏提交，这种方法叫做“地址重写”。<br/><br/>直接在地址栏输入:http://localhost:8080/test/request/03.jsp?mgc=MAGCI<br/>就可以显示结果。<br/><br/>如果传递多个参数，可以这样输入地址：03.jsp?first=MAGCI&second=mgc]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=34</link>
			<title><![CDATA[JSP常用表单——隐藏域]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sat,02 Feb 2008 16:17:42 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=34</guid>	
		<description><![CDATA[隐藏域是JSP开发中常用表单控件。<br/>特点：<br/>将参数隐藏起来，不显示，用户无法修改，随表单一起提交到服务器上显示。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=33</link>
			<title><![CDATA[JSP中获取复选框等数组参数]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sat,02 Feb 2008 15:47:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=33</guid>	
		<description><![CDATA[在JSP中，如果使用复选框、列表框等多选项的表单，使用reuest.getParameter()方法只能获得第一个参数。<br/>而使用<span style="color:Red">request.getParameterValues()</span>方法可以解决这个问题。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=32</link>
			<title><![CDATA[JSP中解决request中文乱码问题]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Sat,02 Feb 2008 14:41:08 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=32</guid>	
		<description><![CDATA[在J2EE中乱码问题是最大的问题，比如直接使用request接收参数时，如果参数是中文字符，就会出现乱码。<br/>解决方法：<br/>1.先接收参数，再对所有数据进行再编码(ISO8859-1编码);<br/>2.设置request的统一字符编码.]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=31</link>
			<title><![CDATA[JS列表框onChange事件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Fri,01 Feb 2008 22:42:46 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=31</guid>	
		<description><![CDATA[实例：选择下拉菜单中的选项，在列表框中显示它包含的内容<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://mgc.name/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&lt;form&nbsp;name=&quot;form8&quot;&gt;<br/>&lt;select&nbsp;name=&quot;sel_1&quot;&nbsp;size=&quot;1&quot;&nbsp;onChange=&quot;sel2_Change(window.document.form8.sel_1.options[window.document.form8.sel_1.selectedIndex].text);&quot;&gt;<br/>&lt;option&gt;MGC&lt;/option&gt;<br/>&lt;option&gt;BLOG&lt;/option&gt;<br/>&lt;option&gt;J2EE&lt;/option&gt;<br/>&lt;/select&gt;<br/>&lt;select&nbsp;name=&quot;sel_2&quot;&nbsp;size=&quot;3&quot;&nbsp;multiple&gt;<br/>&lt;option&gt;mgc&lt;/option&gt;<br/>&lt;option&gt;magci&lt;/option&gt;<br/>&lt;option&gt;MGC&lt;/option&gt;<br/>&lt;/select&gt;<br/>&lt;/form&gt;<br/>&lt;script&nbsp;language=&quot;JavaScript&quot;&gt;<br/>&#160;&#160;&#160;&#160;var&nbsp;MGC=new&nbsp;Array(&quot;mgc&quot;,&quot;magci&quot;,&quot;MGC&quot;);<br/>&#160;&#160;&#160;&#160;var&nbsp;BLOG=new&nbsp;Array(&quot;BLOG1&quot;,&quot;BLOG2&quot;,&quot;BLOG3&quot;);<br/>&#160;&#160;&#160;&#160;var&nbsp;J2EE=new&nbsp;Array(&quot;JSP&quot;,&quot;JavaScript&quot;,&quot;struts&quot;);<br/>&#160;&#160;&#160;&#160;function&nbsp;sel2_Change(Str)<br/>&#160;&#160;&#160;&#160;{<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var&nbsp;theArray=eval(Str);<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for(i=0;i&lt;theArray.length;i++)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;window.document.form8.sel_2.options[&nbsp;i&nbsp;].text=theArray[&nbsp;i&nbsp;];<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}<br/>&#160;&#160;&#160;&#160;}<br/>&lt;/script&gt;<br/><br/></div></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=30</link>
			<title><![CDATA[JS列表框]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Fri,01 Feb 2008 22:12:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=30</guid>	
		<description><![CDATA[实例:显示列表框选定的序号、值<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://mgc.name/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&lt;form&nbsp;name=&quot;form8&quot;&nbsp;onSubmit=&quot;Msg();&quot;&gt;<br/>&lt;select&nbsp;name=&quot;sel&quot;&nbsp;szie=&quot;1&quot;&gt;<br/>&lt;option&gt;mgc&lt;/option&gt;<br/>&lt;option&gt;magci&lt;/option&gt;<br/>&lt;option&gt;BLOG&lt;/option&gt;<br/>&lt;option&gt;J2EE&lt;/option&gt;<br/>&lt;/select&gt;<br/>&lt;/form&gt;<br/>&lt;a&nbsp;href=&quot;#&quot;&nbsp;onClick=&quot;alert(window.document.form8.sel.selectedIndex+&#39;.&#39;+window.document.form8.sel.options[window.document.form8.sel.selectedIndex].text);return&nbsp;false;&quot;&gt;Show&lt;/a&gt;<br/></div></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=29</link>
			<title><![CDATA[JS单选框]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Fri,01 Feb 2008 21:22:25 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=29</guid>	
		<description><![CDATA[实例：使用单选框设置背景色<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://mgc.name/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&lt;form&nbsp;name=&quot;form7&quot;&gt;<br/>&lt;input&nbsp;type=&quot;radio&quot;&nbsp;name=&quot;r_red&quot;&nbsp;&nbsp;onClick=&quot;SetColor(&#39;red&#39;);&quot;&nbsp;/&gt;red<br/>&lt;input&nbsp;type=&quot;radio&quot;&nbsp;name=&quot;r_blue&quot;&nbsp;onClick=&quot;SetColor(&#39;blue&#39;);&quot;&nbsp;/&gt;blue<br/>&lt;/form&gt;<br/>&lt;script&nbsp;language=&quot;JavaScript&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;SetColor(Str)<br/>&nbsp;&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;box_red=window.document.form7.r_red;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;box_blue=window.document.form7.r_blue;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(Str==&quot;red&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;box_blue.checked=false;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;box_red.checked=false;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;window.document.bgColor=Str;<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>&lt;/script&gt;<br/><br/></div></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=28</link>
			<title><![CDATA[JS复选框]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Fri,01 Feb 2008 20:41:00 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=28</guid>	
		<description><![CDATA[实例：设置查看复选框状况<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://mgc.name/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&lt;form&nbsp;name=&quot;form6&quot;&gt;<br/>&lt;input&nbsp;type=&quot;checkbox&quot;&nbsp;name=&quot;ch6&quot;&nbsp;/&gt;复选框<br/>&lt;/form&gt;<br/>&lt;a&nbsp;href=&quot;#&quot;&nbsp;onClick=&quot;window.document.form6.ch6.checked=true;return&nbsp;false;&quot;&gt;选中&lt;/a&gt;&nbsp;|&nbsp;<br/>&lt;a&nbsp;href=&quot;#&quot;&nbsp;onClick=&quot;window.document.form6.ch6.checked=false;return&nbsp;false;&quot;&gt;不选&lt;/a&gt;&nbsp;|&nbsp;<br/>&lt;a&nbsp;href=&quot;#&quot;&nbsp;onClick=&quot;alert(window.document.form6.ch6.checked);return&nbsp;false;&quot;&gt;状态&lt;/a&gt;<br/>&lt;script&nbsp;lanuage=&quot;JavaScript&quot;&gt;<br/><br/>&lt;/script&gt;<br/></div></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=27</link>
			<title><![CDATA[JSP内置对象及四种属性保存范围]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Fri,01 Feb 2008 17:13:24 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=27</guid>	
		<description><![CDATA[JSP内置对象见下表：<br/>-----------------------------------------------------------------------------------------<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;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作用域<br/>-----------------------------------------------------------------------------------------<br/>pageContext&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;javax.servlet.jsp.PageContext&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page<br/>request&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;javax.servlet.http.HttpServletRequest&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;request<br/>response&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;javax.servlet.http.HttpServletResponse&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page<br/>session&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;javax.servlet.http.HttpSession&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;session<br/>application&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;javax.servlet.ServletContext&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;application<br/>out&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page<br/>-----------------------------------------------------------------------------------------]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=26</link>
			<title><![CDATA[JS实现IE地址栏功能]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Fri,01 Feb 2008 16:10:02 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=26</guid>	
		<description><![CDATA[实例：使用JS实现IE地址栏功能<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://mgc.name/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&lt;form&nbsp;name=&quot;form5&quot;&nbsp;onSubmit=&quot;OpenUrl();return&nbsp;false;&quot;&gt;<br/>URL:http://&lt;input&nbsp;type=&quot;text&quot;&nbsp;size=&quot;50&quot;&nbsp;name=&quot;text5&quot;&nbsp;/&gt;<br/>&lt;/form&gt;<br/>&lt;script&nbsp;language=&quot;JavaScript&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;OpenUrl()<br/>&nbsp;&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;Url=&quot;http://&quot;+window.document.form5.text5.value;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;window.open(Url);<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>&lt;/script&gt;<br/></div></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=25</link>
			<title><![CDATA[JS中使用return false阻止浏览器刷新]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Fri,01 Feb 2008 13:38:57 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=25</guid>	
		<description><![CDATA[如果点击一个表单的“提交”按钮时，会导致刷新页面。<br/>在文本框中输入字符，单击“提交”按钮后会刷新页面，文本框被清空了。<br/>可以使用表单的onSubmit事件返回&quot;false&quot;解决这个问题，<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=24</link>
			<title><![CDATA[JS文本域方法]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Thu,31 Jan 2008 22:42:10 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=24</guid>	
		<description><![CDATA[JS中文本域有以下几种常用方法：<br/>1.focus():获得焦点；<br/>2.blur():失去焦点；<br/>3.select():选择文本。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=23</link>
			<title><![CDATA[JS文本域事件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Thu,31 Jan 2008 22:19:51 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=23</guid>	
		<description><![CDATA[JS中常用的文本域事件如下：<br/>1.onFocus:文本域获得焦点时触发事件；<br/>2.onBlur:文本域失去焦点时触发事件；<br/>3.onChange:文本域内容改变后触发事件。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=22</link>
			<title><![CDATA[JS中使用表单控制文本域的值]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Thu,31 Jan 2008 22:05:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=22</guid>	
		<description><![CDATA[实例：鼠标指针移到不同超链接时，文本域中显示不同的值<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://mgc.name/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&lt;form&nbsp;name=&quot;form1&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type=&quot;text&quot;&nbsp;size=&quot;30&quot;&nbsp;name=&quot;mgc&quot;&nbsp;value=&quot;Hello!&quot;&nbsp;/&gt;<br/>&lt;/form&gt;<br/>&lt;br&gt;<br/>&lt;a&nbsp;href=&quot;#&quot;&nbsp;onMouseOver=&quot;window.document.form1.mgc.value=&#39;Welcome&nbsp;to&nbsp;Magci‘s&nbsp;BLOG!&#39;;&quot;&gt;One&lt;/a&gt;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&lt;a&nbsp;href=&quot;#&quot;&nbsp;onMouseOver=&quot;window.document.form1.mgc.value=&#39;J2EE!&#39;;&quot;&gt;OneOne&lt;/a&gt;<br/></div></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=21</link>
			<title><![CDATA[JS中使用自定义函数查看当前时间]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Wed,30 Jan 2008 22:08:19 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=21</guid>	
		<description><![CDATA[实例：查看当前时间<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://mgc.name/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&lt;html&gt;<br/>&nbsp;&nbsp;&lt;head&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;显示时间&lt;/title&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;language=&quot;JavaScript&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;function&nbsp;MyTime()<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var&nbsp;MyDate=new&nbsp;Date();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var&nbsp;MyHour=MyDate.getHours();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var&nbsp;MyMin=addZero(MyDate.getMinutes());<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var&nbsp;MySec=addZero(MyDate.getSeconds());<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var&nbsp;MyTime=MyHour+&quot;:&quot;+MyMin+&quot;:&quot;+MySec;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;alert(&quot;现在时刻:&nbsp;&quot;+MyTime);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;function&nbsp;addZero(num)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;{<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if(num&lt;10)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;num=&quot;0&quot;+num;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&nbsp;num;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/script&gt;<br/>&nbsp;&nbsp;&lt;/head&gt;<br/>&nbsp;&nbsp;&lt;body&gt;<br/>&#160;&#160;&#160;&#160;&lt;a&nbsp;href=&quot;#&quot;&nbsp;onClick=&quot;MyTime();&quot;&gt;点此查看时间&lt;/a&gt;<br/>&nbsp;&nbsp;&lt;/body&gt;<br/>&lt;/html&gt;<br/><br/></div></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=20</link>
			<title><![CDATA[JS中用FOR循环实现自动访问网站]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Wed,30 Jan 2008 21:23:01 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=20</guid>	
		<description><![CDATA[实例：循环访问网址列表中的网站<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://mgc.name/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&lt;script&nbsp;language=&quot;JavaScript&quot;&gt;<br/>//网址列表<br/>var&nbsp;urls=new&nbsp;Array(&quot;sina&quot;,&quot;sohu&quot;,&quot;163&quot;);<br/>var&nbsp;a_url;<br/>for(i=0;i&lt;urls.length;i++)<br/>{<br/>&#160;&#160;&#160;&#160;alert(&quot;访问&quot;+urls[&nbsp;i&nbsp;]+&quot;网站！&quot;);<br/>&#160;&#160;&#160;&#160;a_url=&quot;http://www.&quot;&nbsp;+urls[&nbsp;i&nbsp;]+&nbsp;&quot;.com.cn&quot;;<br/>&#160;&#160;&#160;&#160;new_window=open(a_url,&quot;new_window&quot;+i);<br/>}<br/>&lt;/script&gt;<br/></div></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=19</link>
			<title><![CDATA[JS中使用while循环验证密码]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Wed,30 Jan 2008 20:42:31 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=19</guid>	
		<description><![CDATA[实例：重复输入密码直至正确，验证成功后显示提示信息<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://mgc.name/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&lt;script&nbsp;language=&quot;JavaScript&quot;&gt;<br/>var&nbsp;pwd=&quot;magci&quot;;<br/>var&nbsp;password;<br/>while(password!=pwd)<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;password=prompt(&quot;请输入密码：&quot;,&quot;&quot;);<br/>}<br/>alert(&quot;Welcome&nbsp;to&nbsp;Magci&#39;s&nbsp;BLOG!&quot;);<br/>&lt;/script&gt;<br/><br/></div></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=18</link>
			<title><![CDATA[JSP基本登录模块Ⅰ(无数据库)]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Wed,30 Jan 2008 17:55:27 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=18</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-------------&gt;&nbsp;<span style="color:Red">login.jsp</span><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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|输入用户名、密码<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;V<br/>&nbsp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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;V&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;V<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-----<span style="color:Red">failure.jsp</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">pass.jsp</span><br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=17</link>
			<title><![CDATA[JS窗口操作]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Tue,29 Jan 2008 21:50:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=17</guid>	
		<description><![CDATA[window.open(&quot;URL&quot;,&quot;name&quot;,&quot;features&quot;);<br/>第一个参数是要打开窗口的地址；<br/>第二个参数是窗口的名字；<br/>第三个参数是窗口的特性。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=16</link>
			<title><![CDATA[JS实现图片切换]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Tue,29 Jan 2008 21:03:17 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=16</guid>	
		<description><![CDATA[实现原理：<br/>1.建立一个name=&quot;mgc&quot;的图片框；<br/>2.鼠标指针移动到图片上后触发onMouseOver事件，将name为&quot;mgc&quot;的图片框的src属性设置为切换到的图片地址。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=15</link>
			<title><![CDATA[JS链接事件]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Tue,29 Jan 2008 20:43:13 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=15</guid>	
		<description><![CDATA[JS中有两种常用链接时间：<br/>1.onClick:单击时触发事件；<br/>2.onMouseOver：指针移上去触发事件。<br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=14</link>
			<title><![CDATA[JS字符串属性]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Tue,29 Jan 2008 20:14:38 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=14</guid>	
		<description><![CDATA[JS中常用字符串属性：<br/>1.Str.italics()：斜体;<br/>2.Str.toUpperCase()：转换为大写字母;<br/>3.Str.fontcolor(&#39;red&#39;)设置字体颜色;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=13</link>
			<title><![CDATA[JS变量,输入输出]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Tue,29 Jan 2008 18:35:50 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=13</guid>	
		<description><![CDATA[定义变量：var&nbsp;变量名<br/>JS中输出:documentwrite()<br/>提示框输入：prompt(&quot;请输入：&quot;,&quot;&quot;)]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=12</link>
			<title><![CDATA[JS对话框——alert]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Tue,29 Jan 2008 18:03:23 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=12</guid>	
		<description><![CDATA[<div class="UBBPanel"><div class="UBBTitle"><img src="http://mgc.name/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&lt;script&nbsp;language=&quot;JavaScript&quot;&gt;alert(&quot;Welcome&nbsp;to&nbsp;Magci&#39;s&nbsp;BLOG!&quot;)&lt;/script&gt;<br/></div></div>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=11</link>
			<title><![CDATA[JSP标签库]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Tue,29 Jan 2008 17:47:35 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=11</guid>	
		<description><![CDATA[在标准的MVC模式里，尽可能不要出现Scriplet(&lt;%&nbsp;&nbsp;&nbsp;&nbsp;%&gt;),在JSP中使用标签库可以代替Scriplet，类似于JavaBean，但是这种方法比较困难，不经常使用。<br/><br/>标签库有以下几部分组成：<br/>1.标签的具体实现文件：*.java；<br/>2.标签的描述文件：*.tld（也是一个XML文件，对标签库运行起决定性作用）；<br/>3.JSP中通过标签对自定义标签调用。]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=10</link>
			<title><![CDATA[JSP中两种include指令的区别]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Mon,28 Jan 2008 22:01:32 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=10</guid>	
		<description><![CDATA[JSP中有两种包含语句：<br/>1.&lt;%@include&nbsp;file=&quot;head.jsp&quot;&nbsp;%&gt;<br/>2.&lt;jsp:include&nbsp;page=&quot;head.jsp&quot;&nbsp;/&gt;<br/><br/><span style="color:Red">两种包含的区别：</span><br/><br/>1.&lt;%@include&nbsp;file=&quot;uri&quot;&nbsp;%&gt;:<span style="color:Red">先包含后处理</span><br/>2.&lt;jsp:include&nbsp;page=&quot;uri&quot;&nbsp;/&gt;:<span style="color:Red">先处理后包含</span>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=9</link>
			<title><![CDATA[JSP基本指令——page]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Mon,28 Jan 2008 21:45:46 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=9</guid>	
		<description><![CDATA[page指令主要用来指明当前JSP页面的属性。<br/><br/>常用：<br/>1.导入包：&lt;%@page&nbsp;import=&quot;java.io.*&quot;&nbsp;%&gt;<br/>2.设置编码：&lt;%@page&nbsp;contentType=&quot;text/html;charset=GB2312&quot;&nbsp;%&gt;]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=8</link>
			<title><![CDATA[JSP参数传递]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Mon,28 Jan 2008 21:15:06 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=8</guid>	
		<description><![CDATA[JSP中参数传递有两种方法：<br/>1.get：提交的参数内容会在地址栏显示出来，无法传递大数据（地址栏长度：4～5KB）<br/><span style="color:Red">2.post：提交的参数内容不在地址栏显示，长度不限（推荐使用）</span><br/>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=7</link>
			<title><![CDATA[JSP中<%=%>输出]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Mon,28 Jan 2008 20:56:57 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=7</guid>	
		<description><![CDATA[在JSP中尽量使用&lt;%=%&gt;输出，而不用out.println()。<br/>通过打印九九乘法表的实例，得出结论：<br/><span style="color:Red"><br/>在JSP中JAVA代码不要与HTML代码联系过于紧密，要尽量实现JAVA代码与HTML代码相分离。<br/><br/>尽量使用&lt;%=%&gt;代替out.println()输出！<br/></span>]]></description>
		</item>
		
			<item>
			<link>http://mgc.name/default.asp?id=6</link>
			<title><![CDATA[JSP注释]]></title>
			<author>webmaster@mgc.name(Magci)</author>
			<category><![CDATA[JSP]]></category>
			<pubDate>Mon,28 Jan 2008 20:21:39 +0800</pubDate>
			<guid>http://mgc.name/default.asp?id=6</guid>	
		<description><![CDATA[<span style="color:Red">一、显式注释:</span><br/><br/>最终会发到客户端，在网页里查看源码可见<br/><br/><br/><span style="color:Red">二、隐式注释:</span><br/><br/>不会发送到客户端，查看源码看不到]]></description>
		</item>
		
</channel>
</rss>
