代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
Java
】
回文串
作者:
Dezai.CN
/ 发布于
2011/5/27
/
488
<div> <pre><div><span style="color: rgb(0,128,128)"> 1</span> <span style="color: rgb(0,0,255)">import</span><span style="color: rgb(0,0,0)"> java.util.</span><span style="color: rgb(0,0,0)">*</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)"> 2</span> <span style="color: rgb(0,128,0)">/**</span><span style="color: rgb(0,128,0)"></span><span style="color: rgb(0,128,128)"> 3</span> <span style="color: rgb(0,128,0)"> * </span><span style="color: rgb(0,128,128)"> 4</span> <span style="color: rgb(0,128,0)"> * </span><span style="color: rgb(128,128,128)">@author</span><span style="color: rgb(0,128,0)"> tunzao</span><span style="color: rgb(0,128,128)"> 5</span> <span style="color: rgb(0,128,0)"> * </span><span style="color: rgb(128,128,128)">@version</span><span style="color: rgb(0,128,0)"> 1.0 May 6, 2011</span><span style="color: rgb(0,128,128)"> 6</span> <span style="color: rgb(0,128,0)"> *</span><span style="color: rgb(0,128,128)"> 7</span> <span style="color: rgb(0,128,0)"> </span><span style="color: rgb(0,128,0)">*/</span><span style="color: rgb(0,0,0)"></span><span style="color: rgb(0,128,128)"> 8</span> <span style="color: rgb(0,0,255)">public</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">class</span><span style="color: rgb(0,0,0)"> Palindromes</span><span style="color: rgb(0,128,128)"> 9</span> <span style="color: rgb(0,0,0)">{</span><span style="color: rgb(0,128,128)">10</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">public</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">static</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">void</span><span style="color: rgb(0,0,0)"> main(String[] args)</span><span style="color: rgb(0,128,128)">11</span> <span style="color: rgb(0,0,0)"> {</span><span style="color: rgb(0,128,128)">12</span> <span style="color: rgb(0,0,0)"> Scanner in </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">new</span><span style="color: rgb(0,0,0)"> Scanner(System.in);</span><span style="color: rgb(0,128,128)">13</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">while</span><span style="color: rgb(0,0,0)">(in.hasNext())</span><span style="color: rgb(0,128,128)">14</span> <span style="color: rgb(0,0,0)"> {</span><span style="color: rgb(0,128,128)">15</span> <span style="color: rgb(0,0,0)"> String s </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> in.nextLine();</span><span style="color: rgb(0,128,128)">16</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">if</span><span style="color: rgb(0,0,0)"> (s.length() </span><span style="color: rgb(0,0,0)">==</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">0</span><span style="color: rgb(0,0,0)">)</span><span style="color: rgb(0,128,128)">17</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">break</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">18</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">char</span><span style="color: rgb(0,0,0)">[] ch </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> s.toCharArray();</span><span style="color: rgb(0,128,128)">19</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">boolean</span><span style="color: rgb(0,0,0)"> isPal </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">true</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">20</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">boolean</span><span style="color: rgb(0,0,0)"> isMirror </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">true</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">21</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,128,128)">22</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">for</span><span style="color: rgb(0,0,0)"> (</span><span style="color: rgb(0,0,255)">int</span><span style="color: rgb(0,0,0)"> i </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">0</span><span style="color: rgb(0,0,0)">, j </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> ch.length</span><span style="color: rgb(0,0,0)">-</span><span style="color: rgb(0,0,0)">1</span><span style="color: rgb(0,0,0)">; i </span><span style="color: rgb(0,0,0)"><</span><span style="color: rgb(0,0,0)"> j; i</span><span style="color: rgb(0,0,0)">++</span><span style="color: rgb(0,0,0)">, j</span><span style="color: rgb(0,0,0)">--</span><span style="color: rgb(0,0,0)">)</span><span style="color: rgb(0,128,128)">23</span> <span style="color: rgb(0,0,0)"> {</span><span style="color: rgb(0,128,128)">24</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">if</span><span style="color: rgb(0,0,0)"> (ch[i] </span><span style="color: rgb(0,0,0)">!=</span><span style="color: rgb(0,0,0)"> ch[j])</span><span style="color: rgb(0,128,128)">25</span> <span style="color: rgb(0,0,0)"> {</span><span style="color: rgb(0,128,128)">26</span> <span style="color: rgb(0,0,0)"> isPal </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">false</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">27</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">if</span><span style="color: rgb(0,0,0)"> (ch[i] </span><span style="color: rgb(0,0,0)">!=</span><span style="color: rgb(0,0,0)"> getReverseChar(ch[j]))</span><span style="color: rgb(0,128,128)">28</span> <span style="color: rgb(0,0,0)"> {</span><span style="color: rgb(0,128,128)">29</span> <span style="color: rgb(0,0,0)"> isMirror </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">false</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">30</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">break</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">31</span> <span style="color: rgb(0,0,0)"> }</span><span style="color: rgb(0,128,128)">32</span> <span style="color: rgb(0,0,0)"> }</span><span style="color: rgb(0,128,128)">33</span> <span style="color: rgb(0,0,0)"> }</span><span style="color: rgb(0,128,128)">34</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,128,128)">35</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">if</span><span style="color: rgb(0,0,0)"> (</span><span style="color: rgb(0,0,0)">!</span><span style="color: rgb(0,0,0)">isPal </span><span style="color: rgb(0,0,0)">&&</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">!</span><span style="color: rgb(0,0,0)">isMirror)</span><span style="color: rgb(0,128,128)">36</span> <span style="color: rgb(0,0,0)"> System.out.println(s </span><span style="color: rgb(0,0,0)">+</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)"> -- is not a palindrome.</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);</span><span style="color: rgb(0,128,128)">37</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">else</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">if</span><span style="color: rgb(0,0,0)"> (isPal </span><span style="color: rgb(0,0,0)">&&</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">!</span><span style="color: rgb(0,0,0)">isMirror)</span><span style="color: rgb(0,128,128)">38</span> <span style="color: rgb(0,0,0)"> System.out.println(s </span><span style="color: rgb(0,0,0)">+</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)"> -- is a regular palindrome.</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);</span><span style="color: rgb(0,128,128)">39</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">else</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">if</span><span style="color: rgb(0,0,0)"> (</span><span style="color: rgb(0,0,0)">!</span><span style="color: rgb(0,0,0)">isPal </span><span style="color: rgb(0,0,0)">&&</span><span style="color: rgb(0,0,0)"> isMirror)</span><span style="color: rgb(0,128,128)">40</span> <span style="color: rgb(0,0,0)"> System.out.println(s </span><span style="color: rgb(0,0,0)">+</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)"> -- is a mirrored string.</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);</span><span style="color: rgb(0,128,128)">41</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">else</span><span style="color: rgb(0,0,0)"></span><span style="color: rgb(0,128,128)">42</span> <span style="color: rgb(0,0,0)"> System.out.println(s </span><span style="color: rgb(0,0,0)">+</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)"> -- is a mirrored palindrome.</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);</span><span style="color: rgb(0,128,128)">43</span> <span style="color: rgb(0,0,0)"> }</span><span style="color: rgb(0,128,128)">44</span> <span style="color: rgb(0,0,0)"> in.close();</span><span style="color: rgb(0,128,128)">45</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,128,0)">//</span><span style="color: rgb(0,128,0)">System.exit(0);</span><span style="color: rgb(0,128,0)"></span><span style="color: rgb(0,128,128)">46</span> <span style="color: rgb(0,0,0)"> }</span><span style="color: rgb(0,128,128)">47</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,128,128)">48</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">private</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">static</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">char</span><span style="color: rgb(0,0,0)"> getReverseChar(</span><span style="color: rgb(0,0,255)">char</span><span style="color: rgb(0,0,0)"> c)</span><span style="color: rgb(0,128,128)">49</span> <span style="color: rgb(0,0,0)"> {</span><span style="color: rgb(0,128,128)">50</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">switch</span><span style="color: rgb(0,0,0)"> (c)</span><span style="color: rgb(0,128,128)">51</span> <span style="color: rgb(0,0,0)"> {</span><span style="color: rgb(0,128,128)">52</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">A</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">53</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">A</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">54</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">E</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">55</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">3</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">56</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">H</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">57</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">H</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">58</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">I</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">59</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">I</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">60</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">J</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">61</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">L</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">62</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">L</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">63</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">J</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">64</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">M</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">65</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">M</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">66</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">O</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">67</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">O</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">68</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">S</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">69</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">2</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">70</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,128,128)">71</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">T</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">72</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">T</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">73</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">U</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">74</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">U</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">75</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">W</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">76</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">W</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">77</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">X</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">78</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">X</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">79</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">Y</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">80</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">Y</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">81</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">Z</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">82</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">5</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">83</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">1</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">84</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">1</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">85</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">2</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">86</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">S</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">87</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">3</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">88</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">E</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">89</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">5</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">90</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">Z</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">91</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">case</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">8</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">92</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">8</span><span style="color: rgb(0,0,0)">'</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">93</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">default</span><span style="color: rgb(0,0,0)">:</span><span style="color: rgb(0,128,128)">94</span> <span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">0</span><span style="color: rgb(0,0,0)">;</span><span style="color: rgb(0,128,128)">95</span> <span style="color: rgb(0,0,0)"> }</span><span style="color: rgb(0,128,128)">96</span> <span style="color: rgb(0,0,0)"> }</span><span style="color: rgb(0,128,128)">97</span> <span style="color: rgb(0,0,0)">}</span></div></pre> </div>
试试其它关键字
回文串
同语言下
.
List 切割成几份 工具类
.
一行一行读取txt的内容
.
Java PDF转换成图片并输出给前台展示
.
java 多线程框架
.
double类型如果小数点后为零则显示整数否则保留两位小
.
将图片转换为Base64字符串公共类抽取
.
sqlParser 处理SQL(增删改查) 替换schema 用于多租户
.
JAVA 月份中的第几周处理 1-7属于第一周 依次类推 29-
.
java计算两个经纬度之间的距离
.
输入时间参数计算年龄
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
Dezai.CN
贡献的其它代码
(
4037
)
.
多线程Socket服务器模块
.
生成随机密码
.
清除浮动样式
.
弹出窗口居中
.
抓取url的函数
.
使用base HTTP验证
.
div模拟iframe嵌入效果
.
通过header转向的方法
.
Session操作类
.
执行sqlite输入插入操作后获得自动编号的ID
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3