锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产一区二区三区免费观看在线,天堂久久一区二区三区,午夜激情成人网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>