码迷,mamicode.com
首页 >  
搜索关键字:out    ( 35870个结果
常用的Java基本代码汇总
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
利用xp_cmdshell 导出文件到本地和网络路径。
作者:曲军昌   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
Dungeon Game
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
左右补0 左右补空格
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
Oracle Java Stored Procedure + 包调用
1.创建JavaStoredProcedurecreateorreplaceandcompilejavasourcenamed"TestHello"as publicclassTestHello{ publicstaticvoidtest(){ System.out.println("Hello"); } }2.创建JSP调用存过或方法(本例为在包创建的存过)createorreplacepackagepkg_testis proceduredo_Test; en..
分类:数据库   时间:2015-04-07 20:06:55    阅读次数:151
LeetCode Combinations
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
mysql存储过程学习
一、存储过程的创建语法: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
java中对map使用entrySet循环
根据JDK5的新特性,用For循环Map,例如循环Map的Key123for(String dataKey : paraMap.keySet()) {System.out.println(dataKey );}注意的是,paraMap 是怎么样定义的,如果是简单的Map paraMap = new ...
分类:编程语言   时间:2015-04-07 11:46:19    阅读次数:175
java-web,jsp篇
一,jsp: 1,jsp脚本语法: 2,jsp声明:在jsp页面中声明变量或方法 语法: 3,jsp表达式:在jsp页面中执行的表达式 语法: 注意:表达式不以分号结束 ,二,Servlet与九大内置对象: out对象:从resp.getWriter()方法获得 常用方法有: 1,void println...
分类:编程语言   时间:2015-04-07 10:00:52    阅读次数:169
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!