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:是一个字节打印流,System.out对应的类型就是PrintStream。它的构造函数函数可以接收三种数据类型的值。1,字符串路径。2,File对象。3,OutputStream。PrintWriter:是一个字符打印流。构造函数可以接收四种类型的值。1,字符串路径。2,F...
分类:
其他好文 时间:
2015-04-23 17:11:22
阅读次数:
175
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
用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语言标准库中的错误报告用法有三种形式。
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
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
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
请实现一个函数,把字符串中每个空格替换成“%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
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