码迷,mamicode.com
首页 >  
搜索关键字:out    ( 35870个结果
[LeetCode] Reverse Nodes in k-Group
Reverse Nodes in k-Group Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in ...
分类:其他好文   时间:2015-04-23 17:25:47    阅读次数:124
PrintStream PrintWriter
PrintStream:是一个字节打印流,System.out对应的类型就是PrintStream。它的构造函数函数可以接收三种数据类型的值。1,字符串路径。2,File对象。3,OutputStream。PrintWriter:是一个字符打印流。构造函数可以接收四种类型的值。1,字符串路径。2,F...
分类:其他好文   时间:2015-04-23 17:11:22    阅读次数:175
java 时间操作
1.用java.util.Calender来实现 Calendar calendar=Calendar.getInstance(); calendar.setTime(new Date()); System.out.println(calendar.get(Calendar.DAY_OF_MONTH...
分类:编程语言   时间:2015-04-23 14:58:00    阅读次数:141
JAVA中判断一个字符串是否包含另一个字符串
用indexOf()函数,不包含则返回-1,包含返回0;Stringstr="ABC_001";if(str.indexOf("ABC")!=-1){System.out.println("包含");}else{ System.out.println("不包含"); }
分类:编程语言   时间:2015-04-23 13:35:17    阅读次数:106
面向对象(类与对象的关系)
人开门 class   { public static void main(String[] args)  { System.out.println("Hello World!"); } } /* 人开门:名词提炼法。 人 { 开门(门) { 门.开(); } } 门 { 开(){操作门轴等。} } */ //面向对象:三个特...
分类:其他好文   时间:2015-04-23 09:43:26    阅读次数:125
C语言中的errno(错误报告)用法
C语言标准库中的错误报告用法有三种形式。 1、errno errno在头文件中定义,如下 #ifndef errno extern int errno; #endif 外部变量errno保存库程序中实现定义的错误码,通常被定义为errno.h中以E开头的宏, 所有错误码都是正整数,如下例子 # define EDOM 33 /* Math argument out of ...
分类:编程语言   时间:2015-04-23 09:38:50    阅读次数:212
String、StringBuffer和StringBuild的区别
public class Test1 { public static void stringReplace (String text) { text = text.replace('j','i') ; System.out.println(text) ; } public static void s...
分类:其他好文   时间:2015-04-23 01:55:18    阅读次数:141
oracle存储过程中返回一个程序集
1、定义一个程序包create or replace package pag_q is type cur_result is ref cursor;end pag_q;2、存储过程里面这样写create or replace procedure prc_q(res out pag_q.cur_res...
分类:数据库   时间:2015-04-23 01:47:35    阅读次数:205
【剑指offer】替换空格
请实现一个函数,把字符串中每个空格替换成“%20”。例如输入“we are happy.",则输出”we%20are%20happy.“。 创建一个新的字符串,传出,是一个比较好的思路。 #include #include using namespace std; int change(char *str, char *out) { int i=0,j=0; char *temp...
分类:其他好文   时间:2015-04-22 20:42:52    阅读次数:125
Java第二天
1.Hello Worldpublic class Hello {public static void main(String[] args) {System.out.println("Hello, world!");}}这段程序表达意思是你好世界!public是公开的意思,class是类的意思.....
分类:编程语言   时间:2015-04-22 20:32:36    阅读次数:160
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!