myeclipse×¢²á»ú,javaдµÄÊÊÓÃÓÚËùÓа汾
import java.io.*;
public class Test {
public static String convert(String s) {
if (s == null || s.length() == 0)
return s;
byte abyte0[] = s.getBytes();
char ac[] = new char[s.length()];
int i = 0;
for (int k = abyte0.length; i < k; i++) {
int j = abyte0[i];
if (j >= 48 && j <= 57)
j = ((j - 48) + 5) % 10 + 48;
else if (j >= 65 && j <= 90)
j = ((j - 65) + 13) % 26 + 65;
else if (j >= 97 && j <= 122)
j = ((j - 97) + 13) % 26 + 97;
ac[i] = (char) j;
}
return String.valueOf(ac);
}
private static int hash(String s) {
int i = 0;
char ac[] = s.toCharArray();
int j = 0;
for (int k = ac.length; j < k; j++)
i = 31 * i + ac[j];
&n
Ïà¹ØÎĵµ£º
(±¾ÎÄתÔØ)
ÔÎÄ£ºhttp://blog.csdn.net/thinkghoster/archive/2008/04/19/2307001.aspx
class
A
...
{
public
String show(D obj)
...
{
&nbs ......
½ñÌìÓÃÁËÒ»ÏÂJAVAÖеÄJDOM£¬JDOM ÊÇÒ»ÖÖʹÓà XML µÄ¶ÀÌØ Java ¹¤¾ß°ü£¬ÓÃÓÚ¿ìËÙ¿ª·¢ XML Ó¦ÓóÌÐò¡£
ÔÚÒÔÏÂÕâÀïÄܹ»¿´µ½¸üÏêϸµÄ¶ÔJDOMµÄ½éÉÜ£º
http://www.ibm.com/developerworks/cn/java/j-jdom/
ÏÂÃæÊÇÎÒ×Ô¼ºµÄ¹ØÓÚдXMLÎļþ¼°¶ÁXMLÎļþµÄ´úÂ룺
дXMLÎļþ
import org.jdom.*;
import org.jdom.output.XMLOutputt ......
Ç廪´óѧ³ö°æÉ硶Java³ÌÐòÔ±£¬ÉÏ°àÄǵãʶù¡·×÷ÕߣºÖÓÉù Õ½ڣº1.1С½Ú
ÎÒÃǸոսøÈë±¾ÊéµÄÕýÌâ¾ÍÄóöÒ»¸öËײ»¿ÉÄÍ“Ç®”×ÖÀ´ºÍ´ó¼Ò´ó̸ÌØ̸£¬Î´Ãâ²»ÑÅ¡£µ«ÊÇ£¬ÎÒ»¹ÊÇÒªÔÚÒ»¿ªÊ¼¾ÍҪ˵Õâ¸öÎÊÌ⣬ÒòΪÕâÊǺܶàÅóÓѹØÐĵÄÎÊÌ⣬Ϊʲô²»ÏÈ˵ ......
Java ÖÐµÄ keytool.exe £¨Î»ÓÚ JDK\Bin Ŀ¼Ï£©¿ÉÒÔÓÃÀ´´´½¨Êý×ÖÖ¤Ê飬ËùÓеÄÊý×ÖÖ¤ÊéÊÇÒÔÒ»ÌõÒ»Ìõ(²ÉÓñðÃûÇø±ð)µÄÐÎʽ´æÈëÖ¤Êé¿âµÄÖУ¬Ö¤Êé¿âÖеÄÒ»ÌõÖ¤Êé°üº¬¸ÃÌõÖ¤ÊéµÄ˽Կ£¬¹«Ô¿ºÍ¶ÔÓ¦µÄÊý×ÖÖ¤ÊéµÄÐÅÏ¢¡£Ö¤Êé¿âÖеÄÒ»ÌõÖ¤Êé¿ÉÒÔµ¼³öÊý×ÖÖ¤ÊéÎļþ£¬Êý×ÖÖ¤ÊéÎļþÖ»°üÀ¨Ö÷ÌåÐÅÏ¢ºÍ¶ÔÓ¦µÄ¹«Ô¿¡£
KeytoolÊÇÒ»¸öJavaÊý¾ÝÖ ......