??xml version="1.0" encoding="utf-8" standalone="yes"?>另类av导航,国产一区导航,亚洲午夜在线视频http://www.aygfsteel.com/mc/category/1142.html------------------By MCzh-cnFri, 02 Mar 2007 03:18:38 GMTFri, 02 Mar 2007 03:18:38 GMT60JAD的内?/title><link>http://www.aygfsteel.com/mc/articles/33795.html</link><dc:creator>有心有?有梦׃?/dc:creator><author>有心有?有梦׃?/author><pubDate>Mon, 06 Mar 2006 02:14:00 GMT</pubDate><guid>http://www.aygfsteel.com/mc/articles/33795.html</guid><wfw:comment>http://www.aygfsteel.com/mc/comments/33795.html</wfw:comment><comments>http://www.aygfsteel.com/mc/articles/33795.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mc/comments/commentRss/33795.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mc/services/trackbacks/33795.html</trackback:ping><description><![CDATA[<P>  在双击JAD通过模拟器运行的时候遇C错误提示Q?/P> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">com.sun.kvem.midletsuite.InvalidJadException: Reason </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">22</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>KK�KCIK�K�K�K?nbsp;MUST K�K�K�: MIDlet</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">1</SPAN></DIV> <P>  而装在手行上则是闪了一下就关闭?BR>  |上找了下资料,发觉是JAD的问题,JAD内容有一定规范,JAD中需要包括以下信息:  </P> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 97.71%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; HEIGHT: 138px; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">MIDlet</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Jar</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Size: <BR></SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>MIDlet</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Jar</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">URL: <BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>MIDlet</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Name: <BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>MIDlet</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Vendor: <BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>MIDlet</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Version:<BR></SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>MIDlet-1:<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>MicroEdition</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Configuration: <BR></SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>MicroEdition</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Profile: </SPAN></DIV>  <BR>  我的错误JAD内容如下Q?BR><BR> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">MIDlet</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Jar</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Size: </SPAN><SPAN style="COLOR: #000000">5279</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>MIDlet</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Jar</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">URL: eKey.jar<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>MIDlet</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Name: eKey Midlet Suite<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>MIDlet</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Vendor: Midlet Suite Vendor<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>MIDlet</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Version: </SPAN><SPAN style="COLOR: #000000">1.0</SPAN><SPAN style="COLOR: #000000">.</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>MicroEdition</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Configuration: CLDC</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">1.1</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>MicroEdition</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">Profile: MIDP</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">2.0</SPAN></DIV><BR>  大家可以发现是少?MIDlet-1"q行内容?MIDlet-1"后面部分是包含了"应用E序名称,图标,cdU?几部分内宏V比如我在这里就应该加上Q?BR><BR> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">MIDlet</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">:eKey,,eKey</SPAN></DIV><BR>  希望q样能对大家有点帮助Q特别是对像我这L初学者,最好先做个单的E序Q调试一下,一斚w试环境是否配好Q另一斚wl自׃炚w励。最怕遇到这L问题Q一下子慒了Q然后万念俱灎ͼ从此不干JAVA损失大了?img src ="http://www.aygfsteel.com/mc/aggbug/33795.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mc/" target="_blank">有心有?有梦׃?/a> 2006-03-06 10:14 <a href="http://www.aygfsteel.com/mc/articles/33795.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Jsp与Servlet传递中文ؕ码的解决办法http://www.aygfsteel.com/mc/articles/27778.html有心有?有梦׃?/dc:creator>有心有?有梦׃?/author>Thu, 12 Jan 2006 08:27:00 GMThttp://www.aygfsteel.com/mc/articles/27778.htmlhttp://www.aygfsteel.com/mc/comments/27778.htmlhttp://www.aygfsteel.com/mc/articles/27778.html#Feedback3http://www.aygfsteel.com/mc/comments/commentRss/27778.htmlhttp://www.aygfsteel.com/mc/services/trackbacks/27778.htmlJsp与Servlet传递中文ؕ码的解决办法

String temp = request.getParameter("xx"); 
temp 
= new String(temp.getBytes("ISO8859_1"));


]]>
Java中的随机数应?/title><link>http://www.aygfsteel.com/mc/articles/7405.html</link><dc:creator>有心有?有梦׃?/dc:creator><author>有心有?有梦׃?/author><pubDate>Sat, 09 Jul 2005 05:20:00 GMT</pubDate><guid>http://www.aygfsteel.com/mc/articles/7405.html</guid><wfw:comment>http://www.aygfsteel.com/mc/comments/7405.html</wfw:comment><comments>http://www.aygfsteel.com/mc/articles/7405.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mc/comments/commentRss/7405.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mc/services/trackbacks/7405.html</trackback:ping><description><![CDATA[<P>在Java中我们可以用java.util.RandomcL产生一个随机数发生器。它有两UŞ式的构造函敎ͼ分别是Random()和Random(long seed)。Random()使用当前旉即System.currentTimeMillis()作ؓ发生器的U子QRandom(long seed)使用指定的seed作ؓ发生器的U子?/P> <P>随机数发生器即Random对象产生以后Q可以通过对象调用不同的函敎ͼnextInt()、nextLong()、nextFloat()、nextDouble(){来获得不同cd的随机数?/P> <P>如果2个Random对象使用相同的种子(比如都是100Q,q且以相同的序调用相同的函敎ͼ那么它们的返回值完全相同。如下面代码中两个Random对象的输出完全相同:</P> <P> </P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">import java.util.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_38_660_Open_Image onclick="this.style.display='none'; Codehighlighter1_38_660_Open_Text.style.display='none'; Codehighlighter1_38_660_Closed_Image.style.display='inline'; Codehighlighter1_38_660_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_38_660_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_38_660_Closed_Text.style.display='none'; Codehighlighter1_38_660_Open_Image.style.display='inline'; Codehighlighter1_38_660_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> TestRandom </SPAN><SPAN id=Codehighlighter1_38_660_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_38_660_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_80_657_Open_Image onclick="this.style.display='none'; Codehighlighter1_80_657_Open_Text.style.display='none'; Codehighlighter1_80_657_Closed_Image.style.display='inline'; Codehighlighter1_80_657_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_80_657_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_80_657_Closed_Text.style.display='none'; Codehighlighter1_80_657_Open_Image.style.display='inline'; Codehighlighter1_80_657_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> main(String[] args) </SPAN><SPAN id=Codehighlighter1_80_657_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_80_657_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>Random random1 </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> Random(</SPAN><SPAN style="COLOR: #000000">100</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(random1.nextInt());<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(random1.nextInt());<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(random1.nextFloat());<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(random1.nextFloat());<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(random1.nextBoolean());<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(random1.nextBoolean());<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>Random random2 </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> Random(</SPAN><SPAN style="COLOR: #000000">100</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(random2.nextInt());<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(random2.nextInt());<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(random2.nextFloat());<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(random2.nextFloat());<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(random2.nextBoolean());<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(random2.nextBoolean());<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P><BR><BR>如果希望返回的随机数控制在某个范围内(比如0~99Q,则可以用模数运符%。说明:模数运符%作用于随机数产生器所产生的随机数w上Q目的是Z让随机数的最大值局限于我们所制定的操作数数值减1范围内。如下面代码将输入控制?~99的范围内Q注意:如果不加Math.abs()Q输围将?99~99?/P> <P> </P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">import java.util.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_38_207_Open_Image onclick="this.style.display='none'; Codehighlighter1_38_207_Open_Text.style.display='none'; Codehighlighter1_38_207_Closed_Image.style.display='inline'; Codehighlighter1_38_207_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_38_207_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_38_207_Closed_Text.style.display='none'; Codehighlighter1_38_207_Open_Image.style.display='inline'; Codehighlighter1_38_207_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> TestRandom </SPAN><SPAN id=Codehighlighter1_38_207_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_38_207_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_80_204_Open_Image onclick="this.style.display='none'; Codehighlighter1_80_204_Open_Text.style.display='none'; Codehighlighter1_80_204_Closed_Image.style.display='inline'; Codehighlighter1_80_204_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_80_204_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_80_204_Closed_Text.style.display='none'; Codehighlighter1_80_204_Open_Image.style.display='inline'; Codehighlighter1_80_204_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> main(String[] args) </SPAN><SPAN id=Codehighlighter1_80_204_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_80_204_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>Random random </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> Random();<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_143_201_Open_Image onclick="this.style.display='none'; Codehighlighter1_143_201_Open_Text.style.display='none'; Codehighlighter1_143_201_Closed_Image.style.display='inline'; Codehighlighter1_143_201_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_143_201_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_143_201_Closed_Text.style.display='none'; Codehighlighter1_143_201_Open_Image.style.display='inline'; Codehighlighter1_143_201_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">for</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> i </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">; i </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">100</SPAN><SPAN style="COLOR: #000000">; i</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">) </SPAN><SPAN id=Codehighlighter1_143_201_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_143_201_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(Math.abs(random.nextInt()) </SPAN><SPAN style="COLOR: #000000">%</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">100</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV><img src ="http://www.aygfsteel.com/mc/aggbug/7405.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mc/" target="_blank">有心有?有梦׃?/a> 2005-07-09 13:20 <a href="http://www.aygfsteel.com/mc/articles/7405.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>成ؓ~程高手的八大奥U?/title><link>http://www.aygfsteel.com/mc/articles/5951.html</link><dc:creator>有心有?有梦׃?/dc:creator><author>有心有?有梦׃?/author><pubDate>Sun, 12 Jun 2005 12:40:00 GMT</pubDate><guid>http://www.aygfsteel.com/mc/articles/5951.html</guid><wfw:comment>http://www.aygfsteel.com/mc/comments/5951.html</wfw:comment><comments>http://www.aygfsteel.com/mc/articles/5951.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mc/comments/commentRss/5951.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mc/services/trackbacks/5951.html</trackback:ping><description><![CDATA[转蝲::?《中国电脑教育报》张?nbsp; <P></P> <P>   软g业在国内热了hQ程序员也抢手了Q越来越多的人加入程序员行列。程序员的经历也是很多准E序员们急于想知道的Q本文介l了一个“过来h”的l验和感悟,或许对准E序员们有一定的启发?nbsp;</P> <P>   不知不觉做Y件已l做了十q_有成功的喜悦Q也有失败的痛苦Q但M敢称自己是高手,因ؓ和我心目中真正的高手们比hQ还差得太远。世界上q没有成为高手的捷径Q但一些基本原则是可以遵@的?nbsp;</P> <P>   1、扎实的基础 </P> <P>   数据l构、离散数学、编译原理,q些是所有计机U学的基Q如果不掌握它们Q很隑ֆ出高水^的程序。程序h人都会写Q但当你发现写到一定程度很隑ֆ提高的时候,应该想x不是要回q头来学学这些最基本的理论。不要一开始就dOOPQ即使你再精通OOPQ遇C些基本算法的时候可能也会束手无{。因此多M些计机基础理论斚w的书c是非常有必要的?nbsp;</P> <P>   2、丰富的惛_?nbsp;</P> <P>   不要拘惔于固定的思维方式Q遇到问题的时候要多想几种解决问题的方案,试试别h从没惌的方法。丰富的惛_力是建立在丰富的知识的基上,除计机以外Q多涉猎其他的学U,比如天文、物理、数学等{。开阔的思维对程序员来说很重要?nbsp;</P> <P>   3、最单的是最好的 </P> <P>   q也许是所有科学都遵@的一条准则,复杂的质能{换原理在爱因斯坦眼里不过是一个简单得不能再简单的公式QE=mc2。简单的Ҏ更容易被人理解,更容易实玎ͼ也更Ҏl护。遇到问题时要优先考虑最单的ҎQ只有简单方案不能满求时再考虑复杂的方案?nbsp;</P> <P>   4、不ȝ角尖 </P> <P>   当你遇到障碍的时候,不妨暂时q离电脑Q看看窗外的风景Q听听轻音乐Q和朋友聊聊天。当我遇到难题的时候会ȝ游戏Q当负责游戏的那部分大脑l胞极度亢奋的时候,负责~程的那部分大脑l胞得C充分的休息。当重新开始工作的时候,我会发现那些N现在竟然可以q刃而解?nbsp;</P> <P>   5、对{案的?nbsp;</P> <P>   人类自然U学的发展史是一个求得到答案的q程Q即使只能知道答案的一部分也值得我们M出。只要你坚定信念Q一定要扑ֈ问题的答案,你才会付出精力去探烦Q即使最后没有得到答案,在过E中你也会学到很多东ѝ?nbsp;</P> <P>   6、多与别Z?nbsp;</P> <P>   三h行必有我师,也许在一ơ和别h不经意的谈话中,可以迸出灵感的火花。多上上|,看看别h对同一问题的看法,会给你很大的启发?nbsp;</P> <P>   7、良好的~程风格 </P> <P>   注意L良好的习惯,代码的羃q编排,变量的命名规则要始终保持一致。大安知道如何排除代码中错误,却往往忽视了对注释的排错。注释是E序的一个重要组成部分,它可以你的代码更容易理解,而如果代码已l清楚地表达了你的思想Q就不必再加注释了,如果注释和代码不一_那就更加p糕?nbsp;</P> <P>   8、韧性和毅力 </P> <P>   q也许是“高手”和一般程序员最大的区别。高手们q不是天才,他们是在无数个日日夜夜中炼出来的。成功能l我们带来无比的喜悦Q但q程却是无比的枯燥乏呟뀂你不妨做个试Q找?0000以内的素数表Q把它们全都抄下来,然后再检查三遍,如果能够不间断地完成q一工作Q你可以满一条?BR></P><img src ="http://www.aygfsteel.com/mc/aggbug/5951.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mc/" target="_blank">有心有?有梦׃?/a> 2005-06-12 20:40 <a href="http://www.aygfsteel.com/mc/articles/5951.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JavaScript实现囄扫描渐变http://www.aygfsteel.com/mc/articles/5309.html有心有?有梦׃?/dc:creator>有心有?有梦׃?/author>Sat, 28 May 2005 15:52:00 GMThttp://www.aygfsteel.com/mc/articles/5309.htmlhttp://www.aygfsteel.com/mc/comments/5309.htmlhttp://www.aygfsteel.com/mc/articles/5309.html#Feedback0http://www.aygfsteel.com/mc/comments/commentRss/5309.htmlhttp://www.aygfsteel.com/mc/services/trackbacks/5309.html 

<SCRIPT language=JavaScript>
function HelpArray2(len)
{
   
this.length=len;
   }

   HelpText2 
= new HelpArray2(3);
   HelpText2[
0="<img border='0' width='760' height='130' src='images/1.jpg' alt='' >";
   HelpText2[
1="<img border='0' width='760' height='130' src='images/2.jpg' alt='' >";
   var i 
= 0;
function playHelp()
{
   
if (i == 1){i = 0;} else {i++;}
   div2.filters[
0].apply();
   div2.innerHTML 
= HelpText2[i];
   div2.filters[
0].play();
   mytimeout 
= setTimeout('playHelp()',1000);
   }

</SCRIPT>

<SPAN id=div2 style="FILTER:progid:DXImageTransform.Microsoft.Wipe(duration=2, gradientsize=0.25, motion=reverse); WIDTH: 760px; HEIGHT: 130px"><IMG 
height
=130 alt="" src="images/1.jpg" width=760 
onload
='mytimeout = setTimeout("playHelp()",1000);'
border
=0></SPAN>


]]>
վ֩ģ壺 | | | ͨ| | | ͺ| ɶ| | пǰ| | | | | | | Դ| | ͨ| | կ| ʲ| | ˼| | ٹ| | | | ǰ| | | | | | ˫| ƽ| ƽ| | | |