码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
数据结构——排序相关问题
对任意n个关键字排序的比较次数至少为log2(n!). 1、对任意的7个关键字进行基于比较的排序,至少要进行13次关键字之间的两两比较。 一、直接插入排序 基本思想每步将一个待排序的记录,按其顺序码大小插入到前面已经排序的字序列的合适位置,直到全部插入排序完为止。 代码实现 class SortTest { public static void main(String[] args...
分类:编程语言   时间:2016-05-12 23:24:26    阅读次数:273
Java变参、C/C++/Objective_C变参
/* java中变参方法,变参即参数列表不固定,但是参数类型是一样的,在使用时,形参变量是数组类型的引用 */ public class AppEnter{ public static void main(String[] args) throws Exception{ AppEnter.unfixedArguments("one", "two", "three"); AppE...
分类:编程语言   时间:2016-05-12 23:21:43    阅读次数:259
Spring AOP源码分析
AOP基本概述Advice(通知) BeforeAdvice package org.springframework.aop;import java.lang.reflect.Method;public interface MethodBeforeAdvice extends BeforeAdvice { void before(Method method, Object[] args, Ob...
分类:编程语言   时间:2016-05-12 23:17:22    阅读次数:293
ArcEngine 分类标注
arcgis中可以在同一个图层中定义不同的标注方式。 在ArcgisEngine中实现起来如下(以按OID为条件区分为例): /// /// 标注特定图层 /// /// 要标注的图层 /// 要标注的地图控件 public void PUB_ShowTargetFeature(ILayer IN_L...
分类:其他好文   时间:2016-05-12 23:13:52    阅读次数:355
hbase API操作范例
public class HbaseDemo { private Configuration conf = null; @Before public void init(){ conf = HBaseConfiguration.create(); conf.set("hbase.zookeeper.quorum", "lp5,lp6,lp7"); } /* * 新建表...
分类:Windows程序   时间:2016-05-12 23:09:48    阅读次数:223
JDBC使用事务实例
package qddx.JDBC; import java.sql.*; public class useTransaction { public static void main(String[] args) { // TODO Auto-generated method stub Connection conn = null; Statem...
分类:数据库   时间:2016-05-12 23:04:02    阅读次数:155
从头认识多线程-2.14 解决由同步的synchronized (newobject()) 引起的脏读的方法
这一章节我们来讨论一下解决由同步的synchronized (newobject()) 引起的异步现象和脏读的方法。1.代码清单package com.ray.deepintothread.ch02.topic_14; /** * * @author RayLee * */ public class DirtyRead { public static void main(String...
分类:编程语言   时间:2016-05-12 22:57:32    阅读次数:247
C#函数
//以一个demo开始吧 //Main方法,程序的入口 static void Main(string[] args) { int a = 3; int res = Test(a); Console.WriteLine(res); } //自定义一个简单的方法,传值+5返回 public stat...
分类:Windows程序   时间:2016-05-12 22:50:06    阅读次数:239
项目总结
1.绑定数据到dropDownlist,去掉重复的项。 public void bindModels()     {         string yh = Session["userName"].ToString();         DataSet dsinfo = tiezibll.GetList(" creater='" + yh + "'");         string i...
分类:其他好文   时间:2016-05-12 22:50:02    阅读次数:175
tomcat(supplement)HttpConnector.initialize() 和 start() 方法 以及 StandardContext.start()方法的分析
【0】README 0.1)本文主要以图片的形式分析他们大致的调用过程; 0.2) 0.3)应用程序的source code 如下: public final class Bootstrap { public static void main(String[] args) { //invoke: http://localhost:8080/myApp/Session...
分类:Web程序   时间:2016-05-12 22:46:57    阅读次数:241
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!