一.示例1 1 --存储过程 2 create or replace procedure addemp( var_sal in out number ) 3 is|as 4 5 begin 6 7 end; 8 9 --函数 10 create or replace function addemp( ...
分类:
其他好文 时间:
2016-07-24 23:49:51
阅读次数:
198
切割catalian日志的方式有很多种,比如shell脚本的、cronolog或者通过配置log4j等等这些都可以实现。但今天我要介绍是使用logrotate来按日期生成日志。 原文是一个外国博主的文章,在这里分享给大家。 如果catalina.out的大小超过了2G,那么tomcat可能在没有错误 ...
分类:
其他好文 时间:
2016-07-24 22:29:03
阅读次数:
180
内置对象:就是在JSP中无需创建就可使用的称为内置对象,它是有容器创建的(如Tomcat、JBoss、weblgic等容器创建)。JSP九大内置对象分别为:out、request、response、session、application、pageContext、page、config、exception。1、out对象向客户端输出信息,它是JspWriter..
分类:
Web程序 时间:
2016-07-24 20:59:07
阅读次数:
205
Description There is a cycle with its center on the origin. Now give you a point on the cycle, you are to find out the other two points on it, to maxi ...
分类:
其他好文 时间:
2016-07-24 20:46:36
阅读次数:
117
2016-07-24 FileReader 1,FileWriter 课下作业: c:\ 定义两个文件 in.txt,out.txt 然后,in.txt里面写入部分中文以及英文。 然后写程序读取in.txt的内容,写到out.txt里面。 规定:读文件的类必须是FileReader 写文件的类必须是 ...
分类:
编程语言 时间:
2016-07-24 19:31:11
阅读次数:
206
public static void printColl(ArrayList<?> al){ Iterator<?> it = al.iterator(); while(it.hasNext()) { System.out.println(it.next().toString()); }?和T都表示 ...
分类:
编程语言 时间:
2016-07-24 19:29:07
阅读次数:
170
2016-07-24 1,StringBuffer简介 StringBuffer sb=new StringBuffer(); System.out.println(sb.capacity()); StringBuffer sb2=new StringBuffer("abc"); System.ou ...
分类:
编程语言 时间:
2016-07-24 17:43:56
阅读次数:
155
public class aaa{ public static void main(String[] args) { int max=5; for(int i=1;i<=5;i++){//控制行 for(int j=1;j<=max-i;j++)//控制空格 System.out.print(" " ...
分类:
编程语言 时间:
2016-07-24 16:12:07
阅读次数:
383
好久没有更新了,今天来一篇,算是《同步与异步》系列的开篇吧,加油,坚持下去(PS:越来越懒了)。 一、Thread 利用Thread 可以直接创建和控制线程,在我的认知里它是最古老的技术了。因为out了、所以不再写例子了。 二、ThreadPool 由于线程的创建和销毁需要耗费大量的资源,为了提过性 ...
分类:
Web程序 时间:
2016-07-24 14:44:14
阅读次数:
276
gskcc 的原文地址 C#中out和ref之间的区别 首先:两者都是按地址传递的,使用后都将改变原来参数的数值。 其次:ref可以把参数的数值传递进函数,但是out是要把参数清空,就是说你无法把一个数值从out传递进去的,out进去后,参数的数值为空,所以你必须初始化一次。这个就是两个的区别,或者 ...