Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JAVA´óÊýÔËËã

ÓÐÒ»µÀÕâÑùµÄ±ÊÊÔÌ⣬¶ÔÓÚ³õѧÕß¿ÉÄÜÓÐЩÄѶȣº
ÓÃJAVA ʵÏÖËãÊõ±í´ïʽ(1234324234324 + 8938459043545)/5 + 343434343432.59845
ÒòΪJAVAÓïÑÔÖеÄlong ¶¨ÒåµÄ±äÁ¿ÖµµÄ×î´óÊýÊܵ½ÏÞÖÆ£¬ÀýÈç123456789987654321ÕâÑùµÄÕûÊý¾Í²»ÄÜ´æ·ÅÔÚlongÀàÐ͵ıäÁ¿ÖУ¬Èç¹ûÕâÑùÁ½¸ö´óÊýÏà¼Ó»òÏà³Ë£¬²úÉúµÄ½á¹û»á¸ü´ó¡£±ÈÈ磬JAVAÓïÑÔÖÐÈç¹ûʹÓÃlong l = 1000000000ÕâÑù¶¨Òåû´í£¬µ«Èç¹û¼ÓÉÏ2000000000±ä³É 1000000000+2000000000²âÊÔ½á¹û¾ÍΪ-1294967296£¬ ³ÉÁ˸ºÊý¡£Ô­Òò¾ÍÊǽá¹ûÊýÌ«´ó£¬ÎÞ·¨±íʾ´Ë½á¹ûÊý¡£ÄÇôÔõÑù×ö²ÅÄÜ°ÑÉÏÊö¼ÆËãÌâ¸ø½â´ð³öÀ´ÄØ£¿
ÕâÀïÎÒÃDzÉÓÃÕóÁз¨£¬±ÈÈç
long  a = 123456789876
long  b = 123412341234
Ê×ÏÈÎÒÃÇ¿ÉÒÔ¶¨Òå¶þ¸öÊý×飬·Ö×é´æ·ÅÕâЩÊý×Ö
long ary_a[3];
long ary_b[3];
¿ÉÒÔ°ÑÕâÁ½¸öÊý·Ö±ð·Ö½âΪÈý¸ö²¿·Ö£¬Ã¿¸ö²¿·Ö¶¼ÊÇËÄ룬Ҳ¾ÍÊÇ£º
ary_a [0] = 1234;
ary_a [1] = 5678;
ary_a [2] = 9876;
ary_b [0] = 1234;
ary_b [1] = 1234;
ary_b [2] = 1234;
½ÓÏÂÀ´µÄÊÂÇé¾ÍÊǽøλÁË
À´Ò»¸öСµãµÄÊý£¬±ÈÈç 38 + 25 ·Ö½âÒ»ÏÂ
¸öλÏà¼Ó 8+5=13 Ðè½øλ , ½á¹ûµÄ¸öλΪ3
ʮλÏà¼Ó 1+3+2 = 6
¿ÉÒԵõ½Ò»¸ö¹æÂÉ
½øλÊý = 13 / 10
¸öλËùÁôÏÂÀ´µÄλ = 13 % 10
³ÌÐòÖÐÈçÏÂʵÏÖ
public class Test1 {
public static void main(String[] args) {
int a = 38;
int b = 25;

int[] ary_a = {3, 8};
int[] ary_b = {2, 5};

int r_1 = ary_a[0] + ary_b[0];
int r_2 = ary_a[1] + ary_b[1];

/* r_1 = 5, r_2 = 13 */
System.out.println(r_1);
System.out.println(r_2);

/* ½á¹ûµÄ½øλ */
int carry = r_2 / 10;
System.out.println(carry);

/* ½á¹ûµÄ¸öλ */
int g = r_2 % 10;
System.out.println(g);

/* ʮλ */
int s = carry+r_1;
System.out.println(s);

/*½á¹ûΪ63*/
System.out.println(s+""+g);

}
}

Èç¹ûÊÇÈýλÊý£¬ÒÔ´ËÀàÍÆ
ÏÂÃæ¸ø³ö¼òµ¥Ê¾Àý
package com;
public class BigNumberOperation {

/*¼Ó·¨*/
public int[] add(int[] f, int[] s, int n) {

/*¶¨ÒåÓàÊý£¬³õʼΪ0*/
int carry = 0;

/*¶¨Òå·µ»ØµÄÊý×é*/
int[] c = new int[f.length];
/*±éÀú´«ÈëµÄÁ½¸öÊý×飬·Ö±ð¼ÆËã*/
for(int i = f.length - 1; i >= 0; i--) {


Ïà¹ØÎĵµ£º

java±ÊÊÔÌâ×ܽáÓë´ó¼Ò·ÖÏí

javaÊÔÌâ
http://202.201.112.11/jpk/apply/teacher/preface/53/test123/test3/exam.htm
1.½Ó¿ÚÖз½·¨µÄÇ°ÃæÓÐÄÄЩÐÞÊηû
 ·ÃÎÊȨÏÞ ·µ»ØÖµÀàÐÍ ÊÇ·ñ¾²Ì¬ ÊÇ·ñ³éÏó
2.ÒÔÏÂÄĸöΪÕæ
  Interger a = new Interger(9);
  Interger b = new Interger(9);
  Long c = New Long(9)
-----
&nbs ......

¼ÌÐø Âþ̸Java¼ÓÃܼ¼Êõ£¨Ò»£©

  HMAC
    HMAC£¨Hash Message Authentication Code£¬É¢ÁÐÏûÏ¢¼ø±ðÂ룬»ùÓÚÃÜÔ¿µÄHashËã·¨µÄÈÏ֤ЭÒé¡£ÏûÏ¢¼ø±ðÂëʵÏÖ¼ø±ðµÄÔ­ÀíÊÇ£¬Óù«¿ªº¯ÊýºÍÃÜÔ¿²úÉúÒ»¸ö¹Ì¶¨³¤¶ÈµÄÖµ×÷ΪÈÏÖ¤±êʶ£¬ÓÃÕâ¸ö±êʶ¼ø±ðÏûÏ¢µÄÍêÕûÐÔ¡£Ê¹ÓÃÒ»¸öÃÜÔ¿Éú³ÉÒ»¸ö¹Ì¶¨´óСµÄСÊý¾Ý¿é£¬¼´MAC£¬²¢½«Æä¼ÓÈëµ½ÏûÏ¢ÖУ¬È»ºó´«Êä¡ ......

javaÊÓƵÅàѵ½Ì³Ì

±¾ÈË´Óʽü10ÄêµÄjava¿ª·¢£¬×ܽáÒ»Ì×ÓÐЧµÄjavaʵսÊÓƵ½Ì³Ì£¬°üÀ¨£ºjava»ù´¡¡¢jspÅàѵ¡¢strutsʹÓá¢hibernateʹÓúÍspringµÄʹÓ㬻¹°üº¬´óÁ¿µÄÅàѵ´úÂ룬ÒÔ¼°sshÕûºÏ¿ª·¢È«¹ý³Ì¡£±¾Ì×ÊÓƵ5Ô·ݾͽ«Â¼ÖÆÍê³É£¬Èç¹ûÄúÓÐÒâÇëÁªÏµÎÒ£¬ÎÒµÄQQ£º1429154728 ......

ʹÓà Java Éú³É MD5 ±àÂë

MD5¼´Message-Digest Algorithm 5£¨ÐÅÏ¢-ÕªÒªËã·¨5£©£¬ÊÇÒ»ÖÖÓÃÓÚ²úÉúÊý×ÖÇ©ÃûµÄµ¥ÏîÉ¢ÁÐËã·¨£¬ÔÚ1991ÄêÓÉMIT Laboratory for Computer Science£¨IT¼ÆËã»ú¿ÆѧʵÑéÊÒ£©ºÍRSA Data Security Inc£¨RSAÊý¾Ý°²È«¹«Ë¾£©µÄRonald L. Rivest½ÌÊÚ¿ª·¢³öÀ´£¬¾­ÓÉMD2¡¢MD3ºÍMD4·¢Õ¹¶øÀ´¡£MD5Ëã·¨µÄʹÓò»ÐèÒªÖ§¸¶ÈκΰæȨ·ÑÓá£ËüµÄ×÷ ......

java¿ª·¢ÖÐMysqlÖÐÎÄÂÒÂëÎÊÌâµÄ½â¾ö

     MysqlÔÚĬÈÏÇé¿öϽ¨Á¢±íµÄ×Ö·û±àÂëÊÇlatin1£¬ËùÒÔÔÚ²åÈëÖÐÎÄʱ»á³ö´í¡£
eg£º
1¡¢²é¿´±í½¨Á¢µÄsqlÔ´Â룺
1: sqlÃüÁshow create table users
2:
3: ½á¹û£º
4: CREATE TABLE `users` (
5: `userID` int(10) unsigned NOT NULL AUTO_INCREMENT,
6: `userName` varchar(4 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ