修也

实践出真知.

Gallery Modified a little

function showPic(whichPic){ var placeHolder = document.getElementById("placeHolder"); if(!placeHolder)return false;//节点存在性判...

2018-03-31 14:28:32

阅读数:28

评论数:0

Web Gallery 简单地写一写

function showPic(whichPic){ var src = whichPic.getAttribute("href"); var placeHolder = document.getElementById("pl...

2018-03-30 23:56:03

阅读数:23

评论数:0

获取html元素节点总个数

document.getElementsByTagName("*").length 1376

2018-03-30 15:58:48

阅读数:160

评论数:0

Java AccessController.doPrivileged 简单的操作

package com.xiuye.security; public class Privilege { public static void main(String[] args) { System.setProperty("java.security.polic...

2018-03-29 18:00:56

阅读数:117

评论数:0

Java HashCode 简单的了解了解

2^5 = 32 31 = 32 - 1 = 2^5 - 1for(int i = 0;i < len ;i++){ h = h*31 + num[i]; } hashcode = h 以上循环看成如下实例: abcde 看成 31 进制的数,位:高 -&...

2018-03-29 14:58:19

阅读数:15

评论数:0

Java security policy 简单的操作

package com.xiuye.security; import java.io.FilePermission; import java.security.AccessController; import java.security.PrivilegedAction; public cla...

2018-03-29 13:09:35

阅读数:149

评论数:0

Java Lambda:return and not return And Ordinary Function same same as classname

package com.xiuye.lambda; @FunctionalInterface interface Fn { void f(); } @FunctionalInterface interface FnRet<T> { T f(); ...

2018-03-29 12:37:14

阅读数:18

评论数:0

Java 输入VM命令参数获取

List<String> params = ManagementFactory.getRuntimeMXBean().getInputArguments(); System.out.println("java "+...

2018-03-28 19:50:35

阅读数:136

评论数:0

Java lambda 同格式 歧义消除

package com.xiuye.lambda; @FunctionalInterface interface Fn1 { default void f() { System.out.println("Fn1 f"); } void g(); }...

2018-03-28 19:27:10

阅读数:29

评论数:0

catch(Exception ChildException){}

package com.xiuye.jdk.issue; class A extends Exception { } class B extends A { } public class ThrowException { public static void main(String[...

2018-03-27 22:07:02

阅读数:30

评论数:0

finally { return variable; }

package com.xiuye.jdk.issue; public class ReturnFinally { public static void main(String[] args) { log(f()); } public static String f() { t...

2018-03-27 22:05:19

阅读数:19

评论数:0

查询不满足条件并且平均值最大的那个数据

example : 查询 学生中 某科目 不及格, 平均分数 最大 的学生:create table student( id number primary key, name varchar2(10), subject varchar2(20), score number ); select * ...

2018-03-26 14:37:01

阅读数:41

评论数:0

Counter Sort Test

#include"MyOutput.hpp" template<typename T> void CounterSort(T a[],int len){ int max = 0; for(int i=...

2018-03-24 19:59:39

阅读数:31

评论数:0

Shaker Sort Test (鸡尾酒排序)

#include"MyOutput.hpp" template<typename T> void MyShakerSort(T a[],int len){ int i=0; int j=len-1;...

2018-03-24 17:22:58

阅读数:34

评论数:0

Heap Sort Test

#include"MyOutput.hpp" template<typename T> int idxMax(T a[],int i,int j){ return a[i] > a[j...

2018-03-24 01:24:09

阅读数:52

评论数:0

Binary Insertion Sort Test

#include"MyOutput.hpp" /** * 二分插入排序,将已经排好序的数组,按二分法 * 比较大小,最终确定left == 子区间中间点(最后确定的点)索引. * a[left] > x (要插入的点) * ...

2018-03-23 21:00:17

阅读数:26

评论数:0

Merge Sort (Recursion) Test

#include"MyOutput.hpp" template<typename T> void MergeSortedArray(T a[],int alen,T b[],int blen){ T *t...

2018-03-22 21:58:32

阅读数:31

评论数:0

Random Quick Sort Test

#include"MyOutput.hpp" template<typename T> int partition(T a[],int p,int r){ T x = a[p];//将首元素设置为...

2018-03-22 20:16:30

阅读数:23

评论数:0

Quick Sort Test

#include"MyOutput.hpp" template<typename T> int partition(T a[],int p,int r){ T x = a[p];//将首元素设置为...

2018-03-22 19:54:10

阅读数:27

评论数:0

Shell Sort Test

#include"MyOutput.hpp" template<typename T> void ShellSort(T t[],int len){ int insertNum; int gap = ...

2018-03-21 16:19:49

阅读数:28

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭