1.字符串和整型的相互转换 String a= String.valueOf(2); int i = Integer.parseInt(a);2. 向文件末尾添加内容 BufferedWriter out=null; try { out=new ...
分类:
编程语言 时间:
2015-04-07 23:25:45
阅读次数:
230
作者:曲军昌
1.导出到本地:
--创建测试文件夹。
master..xp_cmdshell 'mkdir E:\Test\'--导出文件到本地,包括本机的数据库的连接方式。EXEC master..xp_cmdshell 'bcp "Landahz..PRTOBANK " out "\E:\工资文件\文件名称.xls" -c -q -S".\sql2008" -U"sa" -P"...
分类:
系统相关 时间:
2015-04-07 21:53:37
阅读次数:
323
The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant knight (K)
was initially p...
分类:
其他好文 时间:
2015-04-07 21:44:54
阅读次数:
139
Stringstr1=String.format("%5s","dgg");Stringstr2=String.format("%-5s","dgg");System.out.println("++"+str1+"++");System.out.println("++"+str2+"++");Stringstr3=String.format("%05d",Integer.parseInt("55"));System.out.println("++"+str3+"++");
分类:
其他好文 时间:
2015-04-07 20:08:24
阅读次数:
131
1.创建JavaStoredProcedurecreateorreplaceandcompilejavasourcenamed"TestHello"as
publicclassTestHello{
publicstaticvoidtest(){
System.out.println("Hello");
}
}2.创建JSP调用存过或方法(本例为在包创建的存过)createorreplacepackagepkg_testis
proceduredo_Test;
en..
分类:
数据库 时间:
2015-04-07 20:06:55
阅读次数:
151
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-07 17:42:16
阅读次数:
94
一、存储过程的创建语法:CREATE PROCEDURE sp_name (参数)合法的SQL语句mysql> delimiter // mysql> CREATE PROCEDURE simpleproc (OUT param1 INT) -> BEGIN -> SELECT CO...
分类:
数据库 时间:
2015-04-07 17:27:44
阅读次数:
184
import java.util.Scanner;public class Solution{ public static void main(String args[]){ Solution solution = new Solution(); System.out.print("plea...
分类:
其他好文 时间:
2015-04-07 15:31:11
阅读次数:
107
根据JDK5的新特性,用For循环Map,例如循环Map的Key123for(String dataKey : paraMap.keySet()) {System.out.println(dataKey );}注意的是,paraMap 是怎么样定义的,如果是简单的Map paraMap = new ...
分类:
编程语言 时间:
2015-04-07 11:46:19
阅读次数:
175
一,jsp:
1,jsp脚本语法:
2,jsp声明:在jsp页面中声明变量或方法
语法:
3,jsp表达式:在jsp页面中执行的表达式
语法:
注意:表达式不以分号结束
,二,Servlet与九大内置对象:
out对象:从resp.getWriter()方法获得
常用方法有:
1,void println...
分类:
编程语言 时间:
2015-04-07 10:00:52
阅读次数:
169