锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲www视频,中文字幕亚洲成人,九九热线视频只有这里最精品http://www.aygfsteel.com/yemoo/category/12203.htmlJava鎶鏈慨鐐間腑...zh-cnThu, 01 Mar 2007 02:32:53 GMTThu, 01 Mar 2007 02:32:53 GMT60鍏繘鍒惰漿鍗佽繘鍒躲愰檺鍒秈nt鑼冨洿鍐呫?/title><link>http://www.aygfsteel.com/yemoo/archive/2006/12/05/85530.html</link><dc:creator>Yemoo'S Java Blog</dc:creator><author>Yemoo'S Java Blog</author><pubDate>Tue, 05 Dec 2006 03:34:00 GMT</pubDate><guid>http://www.aygfsteel.com/yemoo/archive/2006/12/05/85530.html</guid><wfw:comment>http://www.aygfsteel.com/yemoo/comments/85530.html</wfw:comment><comments>http://www.aygfsteel.com/yemoo/archive/2006/12/05/85530.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yemoo/comments/commentRss/85530.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yemoo/services/trackbacks/85530.html</trackback:ping><description><![CDATA[ <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"> <span style="COLOR: #008000">/**</span> <span style="COLOR: #008000"> <br />聽*Description:convert聽Oct聽to聽Dec<br />聽*Author:yemoo聽2006.12.05<br />聽</span> <span style="COLOR: #008000">*/</span> <span style="COLOR: #000000"> <br /> <br />聽</span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">聽P38{<br />聽聽聽聽聽</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽convertOct2Dec(String聽Oct){<br />聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽result</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">0</span> <span style="COLOR: #000000">;<br />聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽power</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">1</span> <span style="COLOR: #000000">;<br />聽聽聽聽聽聽聽聽聽</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">Oct.length()</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">1</span> <span style="COLOR: #000000">;i</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">,power</span> <span style="COLOR: #000000">*=</span> <span style="COLOR: #000000">8</span> <span style="COLOR: #000000">){<br />聽聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">char</span> <span style="COLOR: #000000">聽temp</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">Oct.charAt(i);<br />聽聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽intTemp</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">Character.getNumericValue(temp);<br />聽聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">(intTemp</span> <span style="COLOR: #000000">>=</span> <span style="COLOR: #000000">0</span> <span style="COLOR: #000000">&&</span> <span style="COLOR: #000000">intTemp</span> <span style="COLOR: #000000"><</span> <span style="COLOR: #000000">8</span> <span style="COLOR: #000000">){<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽result</span> <span style="COLOR: #000000">+=</span> <span style="COLOR: #000000">intTemp</span> <span style="COLOR: #000000">*</span> <span style="COLOR: #000000">power;<br />聽聽聽聽聽聽聽聽聽聽聽聽聽}</span> <span style="COLOR: #0000ff">else</span> <span style="COLOR: #000000">{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">(temp</span> <span style="COLOR: #000000">==</span> <span style="COLOR: #000000">'</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">'</span> <span style="COLOR: #000000">&&</span> <span style="COLOR: #000000">i</span> <span style="COLOR: #000000">==</span> <span style="COLOR: #000000">0</span> <span style="COLOR: #000000">){<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽result</span> <span style="COLOR: #000000">=-</span> <span style="COLOR: #000000">result;<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}</span> <span style="COLOR: #0000ff">else</span> <span style="COLOR: #000000">{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000">聽result;<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000">聽result;<br />聽聽聽聽聽}<br /><br />聽聽聽聽聽String聽readInput(){<br />聽聽聽聽聽聽聽聽聽KeyboardInput聽in</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽KeyboardInput();<br />聽聽聽聽聽聽聽聽聽System.out.print(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">Please聽input聽a聽october聽number:</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);<br />聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000">聽in.readString();<br />聽聽聽聽聽}<br /><br />聽聽聽聽聽</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[]){<br />聽聽聽聽聽聽聽聽聽P38聽obj</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽P38();<br />聽聽聽聽聽聽聽聽聽String聽oct</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">obj.readInput();<br />聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽value</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">obj.convertOct2Dec(oct);<br />聽聽聽聽聽聽聽聽聽System.out.println(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">Oct:</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">oct</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">==Dec:</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">value);<br />聽聽聽聽聽}<br />聽}</span> </div> <img src ="http://www.aygfsteel.com/yemoo/aggbug/85530.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yemoo/" target="_blank">Yemoo'S Java Blog</a> 2006-12-05 11:34 <a href="http://www.aygfsteel.com/yemoo/archive/2006/12/05/85530.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">新邵县</a>| <a href="http://" target="_blank">轮台县</a>| <a href="http://" target="_blank">芦溪县</a>| <a href="http://" target="_blank">鄂温</a>| <a href="http://" target="_blank">珠海市</a>| <a href="http://" target="_blank">滕州市</a>| <a href="http://" target="_blank">黄骅市</a>| <a href="http://" target="_blank">恩施市</a>| <a href="http://" target="_blank">广汉市</a>| <a href="http://" target="_blank">北京市</a>| <a href="http://" target="_blank">上高县</a>| <a href="http://" target="_blank">成都市</a>| <a href="http://" target="_blank">璧山县</a>| <a href="http://" target="_blank">平安县</a>| <a href="http://" target="_blank">喀什市</a>| <a href="http://" target="_blank">静海县</a>| <a href="http://" target="_blank">衡水市</a>| <a href="http://" target="_blank">潞城市</a>| <a href="http://" target="_blank">集安市</a>| <a href="http://" target="_blank">宾川县</a>| <a href="http://" target="_blank">礼泉县</a>| <a href="http://" target="_blank">陆河县</a>| <a href="http://" target="_blank">沂水县</a>| <a href="http://" target="_blank">鄂托克旗</a>| <a href="http://" target="_blank">霍州市</a>| <a href="http://" target="_blank">西和县</a>| <a href="http://" target="_blank">汝城县</a>| <a href="http://" target="_blank">容城县</a>| <a href="http://" target="_blank">玛多县</a>| <a href="http://" target="_blank">灯塔市</a>| <a href="http://" target="_blank">温宿县</a>| <a href="http://" target="_blank">慈利县</a>| <a href="http://" target="_blank">云林县</a>| <a href="http://" target="_blank">德钦县</a>| <a href="http://" target="_blank">昌平区</a>| <a href="http://" target="_blank">万载县</a>| <a href="http://" target="_blank">丹棱县</a>| <a href="http://" target="_blank">金昌市</a>| <a href="http://" target="_blank">贺兰县</a>| <a href="http://" target="_blank">边坝县</a>| <a href="http://" target="_blank">福贡县</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>