1、程序(AllPrograms) -- Oracle-OraClient10g_home1/2 -- Oracle Installation Products -- Uninversal install -- Deinstall Products2、start -- Run -- regedit ...
分类:
数据库 时间:
2014-11-13 10:46:40
阅读次数:
311
如果多个线程同时运行同一个线程体,每次运行的结果可能都不一样class MyThread implements Runnable{ int i = 10; public void run(){ while(true){ //获取当前运行线程的名字 System.out.println(Thr...
分类:
编程语言 时间:
2014-11-13 00:22:33
阅读次数:
253
1:抽样1.1 定点抽样data sasuser.subset; do pickit=1 to totobs by 10; set sasuser.revenue point=pickit nobs=totobs; output; end; stop;run;总体样本...
分类:
其他好文 时间:
2014-11-12 22:48:03
阅读次数:
800
直接上代码包依赖请自行加入maven添加依赖很方便
1、TestBase.java
package com.test;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Before;
import org.junit.runner.Run...
分类:
编程语言 时间:
2014-11-12 19:45:31
阅读次数:
195
timer.schedule(new MyTask(),long time1,long timer2);
今天算是彻底的搞懂了这个曾经让我为之头疼的方法。下面我就重点介绍一下:
第一个参数,是 TimerTask 类,在包:import java.util.TimerTask .使用者要继承该类,并实现 public void run() 方法,因为 TimerTask 类 实现了 R...
分类:
移动开发 时间:
2014-11-12 16:42:12
阅读次数:
226
创建线程方式一继承Thread类1.子类覆盖父类中的run方法,将线程运行的代码存放在run中。2.建立子类对象的同时线程也被创建。3.通过调用start方法开启线程。线程的四种状态sleep方法需要指定睡眠时间,单位是毫秒。一个特殊的状态:就绪。具备了执行资格,但是还没有获取资源。创建线程方式二实...
分类:
编程语言 时间:
2014-11-12 00:24:16
阅读次数:
288
# 题目 There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). # 思路 1. 丢掉一个最小的,...
分类:
编程语言 时间:
2014-11-11 19:26:00
阅读次数:
285
描述
In your job at Albatross Circus Management (yes, it's run by a bunch of clowns), you have just finished writing a program whose output is a list of names in nondescending order by length (so that ...
分类:
其他好文 时间:
2014-11-11 19:19:41
阅读次数:
210
状态机在quick中是一个亮点,如果我们做一款RPG游戏,一个角色一般会拥有idle,attack,walk,run,death这些状态,如果游戏角色的状态采用分支条件判断的话,会造成非常庞大而难以维护,但一旦使用了状态机这种模式,就会显得简单方便。
对于quick中的状态机是如何实现的咱们先不去了解,首先看看如何去使用它。
总结起来,如果让一个类拥有状态机,主要有两步:
...
分类:
系统相关 时间:
2014-11-11 16:47:18
阅读次数:
332
Sas proc sql与寻常sas语句的的不同之处1:The PROC SQL step does not require a RUN statement. PROC SQL executes each query automatically2:Unlike many other SAS pr.....
分类:
数据库 时间:
2014-11-11 16:12:43
阅读次数:
398