class Program { public int[] shuchucanshu(int[] shu,out int a,out int b) //基本格式,定义一个int数组 { for (int i = 0; i < shu.Length ; i++) //冒泡排序 { for (int j ...
分类:
其他好文 时间:
2015-04-15 16:59:02
阅读次数:
134
代理模式简介:不直接操作实际的对象,而是通过代理对象间接操作实际对象,具体使用者不知道操作的具体对象还是实际对象。静态代理1、例1)、被代理类packagedemo3;publicclassAA{publicvoidmethod(){System.out.println("adfadf");}}2)、代理类publicclassBB{privateObjectaa..
分类:
编程语言 时间:
2015-04-15 15:02:21
阅读次数:
141
publicstaticvoidmain(String[]args)throwsException{
SimpleDateFormatsdf=newSimpleDateFormat("yyyyMMdd");
Stringstr=(sdf.format(newDate()));
char[]dist=newchar[str.length()];
for(intx=str.length()-1,p=0;x>=0;x--){
dist[p++]=str.charAt(x);
}
System.out.pri..
分类:
编程语言 时间:
2015-04-15 15:00:14
阅读次数:
138
<Think in java >这本书的实例代码。 package?com.yuan.test;
//:?typeinfo/SweetShop.java
//Examination?of?the?way?the?class?loader?works.
class?Candy?{
static?{
System.out.println("Loa...
分类:
编程语言 时间:
2015-04-15 13:45:16
阅读次数:
154
首先创建两个存储过程
??
BAIDU2GOOGLE(百度转google)和GOOGLE2BAIDU(google转百度)。
CREATE OR REPLACE PROCEDURE "BAIDU2GOOGLE"
(in_lat IN OUT NUMBER,in_lng IN OUT NUMBER)
IS
RESULT NUMBER;
V NUMBER;
X NUMB...
分类:
数据库 时间:
2015-04-15 13:34:50
阅读次数:
153
1.JSP内置对象:out, request, response, page, session, Exception, application, config, pageContext.内置对象是JSP的核心知识,因为JSP页面中的很多功能都被封装在JSP的内置对象中。内置对象与JAVA语言中的对象...
分类:
Web程序 时间:
2015-04-15 12:55:23
阅读次数:
129
Given two integers n and k, return all possible combinations of k numbers out of 1 … n.For example,
If n = 4 and k = 2, a solution is:[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
[1,4],
]这道...
分类:
其他好文 时间:
2015-04-15 11:25:44
阅读次数:
113
打开终端cd /java/tomcat#执行bin/startup.sh #启动tomcatbin/shutdown.sh #停止tomcattail -f logs/catalina.out #看tomcat的控制台输出;#看是否已经有tomcat在运行了ps -ef |grep tomcat#如...
分类:
系统相关 时间:
2015-04-15 11:08:09
阅读次数:
180
On Ubuntu14.045.0.1 requires OpenJDK on linuxrefer to build/core/main.mk, line 177Configure:$ source build/envsetup.sh$ lunchError:make: *** [out/host...
分类:
移动开发 时间:
2015-04-15 08:24:40
阅读次数:
205
计算数值区间内某个数字9出现的次数1程序的实现2功能测试3程序的优化4添加调试代码··············1程序的实现vim9.cgcc9.c./a.out图片太大,把显示的列数修改为10.2功能测试测试一个数字内部的9能不能准确测定。修改:min=9938;max=9939;......./a.outDisplaynum:..
分类:
其他好文 时间:
2015-04-14 20:02:28
阅读次数:
289