码迷,mamicode.com
首页 >  
搜索关键字:java reflection    ( 298692个结果)
原生javascript Ajax
代码1. IE5 ,IE6 使用ActiveXObject对象, 其余现代浏览器都支持XMLHttpRequest对象;function ajaxObject(){ var xmlhttp; if(window.XMLHttpRequest){ xmlhttp = new XMLHt...
分类:编程语言   时间:2014-05-12 09:43:56    阅读次数:445
absolute和relative的几个Demo
static自然布局、fixed相对于浏览器窗口,比较容易理解。absolute、relative需要通过一些例子来加强理解!
分类:其他好文   时间:2014-05-12 09:42:55    阅读次数:380
Java 拾遗
1、选择表达式中的类型转换public class Test { public void static main(String args[]){ int i = 5; System.out.println("Vlaue Is " + ((...
分类:编程语言   时间:2014-05-12 09:39:52    阅读次数:294
Leetcode | Distinct Subsequences
Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from th...
分类:其他好文   时间:2014-05-12 09:37:51    阅读次数:287
用基础知识实现数据到模型的填充
目前的开发中,我们一般会从数据库查询出来数据,再把数据填充到一个对象中,然后就可以很方便的读取对象信息了。data填充到object这个过程很是繁琐,为简化这个问题,各种框架、组件层出不穷,在此不一一列举,我实在也列举不出 -_- ! 诸多框架用起来固然方便,但我总会想起一句话,原文模糊了,出处.....
分类:其他好文   时间:2014-05-12 09:34:45    阅读次数:433
关于时间的转换
//把秒转换成分钟 /// /// 把秒转换成分钟 /// /// public static int SecondToMinute(int Second) { // / 换成 * 号...
分类:其他好文   时间:2014-05-12 09:33:41    阅读次数:198
C++基础:缺省构造函数
缺省构造函数,又称默认构造函数,是C++以及其他的一些面向对象的程序设计语言中,对象的不需要参数即可调用的构造函数。下面将针对缺省构造函数的定义、使用、以及注意问题等方面简要探讨。1、缺省构造函数是怎样的形式?是如何定义的? 在C++的一个类中,如果构造函数没有参数,或者构造函数的所有参数都有默认....
分类:编程语言   时间:2014-05-12 09:30:38    阅读次数:326
阿里云64位centos6.3系统上编译安装redis
环境系统:阿里云64位centos 6.3[rao@AY~]$ cat /etc/issueCentOS release 6.3 (Final)Kernel \r on an \m[rao@AY~]$ uname -aLinux AY1404062027584053a1Z 2.6.32-358.6....
分类:其他好文   时间:2014-05-12 09:27:33    阅读次数:510
RSA算法初学
RSA的算法涉及三个参数,n、e1、e2。其中,n是两个大质数p、q的积,n的二进制表示时所占用的位数,就是所谓的密钥长度。e1和e2是一对相关的值,e1可以任意取,但要求e1与(p-1)*(q-1)互质;再选择e2,要求(e2*e1)mod((p-1)*(q-1))=1。(n,e1),(n,e2)...
分类:其他好文   时间:2014-05-10 23:42:36    阅读次数:522
【LeetCode】Integer to Roman
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.public class Solution { public String int...
分类:其他好文   时间:2014-05-10 20:31:10    阅读次数:335
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!