Java是”纯粹”的面向对象的语言.
操作的标示符是对象的一个引用, new是创建一个对象.存储位置: 寄存器\堆栈(引用)\堆(new)\常量存储(程序代码内部)\非RAM存储(流对象和持久化对象).
基本类型: 存储空间大小不变性(便于移植) - 自动包装功能.
高精度数字: BigInteger(任意精度的整数), BigDecimal(任意精度的小数).
数组初始化: 对象数组均设置...
分类:
编程语言 时间:
2015-07-05 22:38:48
阅读次数:
184
1:正则表达式(理解) (1)就是符合一定规则的字符串 (2)常见规则 A:字符 x 字符 x。举例:'a'表示字符a \\ 反斜线字符。 \n 新行(换行)符 ('\u000A') \r 回车符 ('\u000D') B:字符类 [abc] a、b 或 c(简单类)...
分类:
编程语言 时间:
2015-07-01 09:49:42
阅读次数:
196
Given two numbers represented as strings, return multiplication of the numbers as a string.
Note: The numbers can be arbitrarily large and are non-negative.
思路:
简而言之,要实现的就是BigInteger(a).Multiply(BigInteger(b))的功能,但很显然,leetcode中不让用BigInteger...
分类:
其他好文 时间:
2015-06-30 18:20:21
阅读次数:
95
import java.math.BigInteger;import java.security.MessageDigest;import java.security.NoSuchAlgorithmException;public class MD5Utils { /** * 使用md5的算法进行....
分类:
其他好文 时间:
2015-06-24 01:56:02
阅读次数:
87
java.math包中提供了两个大数字操作类:BigInteger(大整数操作类) BigDecimal(大小数操作类).大整数操作类:BigIntegerBigInteger类构造方法:public BigInteger(String val)常用方法:public BigInteger add(...
分类:
编程语言 时间:
2015-06-22 13:36:05
阅读次数:
138
To do this, we need to download 2 jar, which list below:bouncycastle.openssl + commons-codec-1.10package com.example.getpubkey;import java.io.StringWriter;
import java.math.BigInteger;
import java.secu...
分类:
移动开发 时间:
2015-06-19 20:22:26
阅读次数:
180
最近做了个poi导出word的功能下面是代码:一个可以参考的例子: 1 package com.lzb.crm.web; 2 3 import java.io.FileOutputStream; 4 import java.math.BigInteger; 5 import java.u...
分类:
其他好文 时间:
2015-06-10 15:30:36
阅读次数:
144
Java文件代码:import java.math.BigInteger;import java.util.Date;import java.util.Random;import java.util.Scanner;import java.util.zip.CRC32;public class Ke...
分类:
其他好文 时间:
2015-06-09 00:50:37
阅读次数:
142
基本类型int、long、float、double、chararray、bytearray、datatime、boolean、biginteger、bigdecimal复杂类型map、tuple、bagNULLmap['key1'#value1, 'key2'#value2]key-value键值对...
分类:
其他好文 时间:
2015-06-07 23:31:55
阅读次数:
1007
package com.cn.test.rsa;import java.math.BigInteger;import java.security.KeyFactory;import java.security.KeyPair;import java.security.KeyPairGenerator...
分类:
编程语言 时间:
2015-06-05 15:26:18
阅读次数:
145