1、Integerpublic static void main(String[]args) { Integer i=new Integer(1); System.out.println(i.intValue()); i=2; Syst...
分类:
编程语言 时间:
2015-06-08 16:49:55
阅读次数:
132
problems:Given an array of integers, find out whether there are two distinct indices i and j in the array such that the difference between nums[i] and...
分类:
其他好文 时间:
2015-06-08 16:35:07
阅读次数:
119
out对象向客户端浏览器输出各种数据<%@pagelanguage="java"contentType="text/html;charset=UTF-8"
pageEncoding="UTF-8"%>
<%@pagebuffer="10kb"%><!--修改缓冲区大小-->
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/T..
分类:
Web程序 时间:
2015-06-08 15:14:38
阅读次数:
191
??
变量和基本类型
七、枚举
枚举不但定义了整数常量集,而且还把它们聚集成组; 枚举与简单的const常量相比孰优孰劣, 通过下面一段代码, 一看便知:
[cpp]
view plaincopyprint?
enum {input, output, append}; const int input = 0; const int out...
分类:
编程语言 时间:
2015-06-08 15:04:40
阅读次数:
159
Problems:Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in the array such that nums[i] = n...
分类:
其他好文 时间:
2015-06-08 12:58:28
阅读次数:
119
题目描述
On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters
corresponding to those keys will not appear on screen.
Now given a string that you are s...
分类:
其他好文 时间:
2015-06-08 11:45:27
阅读次数:
118
(1)下面程序的功能是统计文本文件abc.txt中的字符个数
代码
#include
#include
#include
using namespace std;
int main()
{
fstream file;
file.open("abc.txt", ios::out); // (2)
if(!file) {
cout<<"abc.txt ...
分类:
其他好文 时间:
2015-06-08 10:02:10
阅读次数:
82
由于初学写JDBC,所以烦了一个白痴错误,特此记录下来,以期望对寻求同样错误的小伙伴们一个答案,也是自己学习的一个总结记录
该异常的提示错误代码处并不是实际出现错误的代码处。
异常提示为:java.lang.RuntimeException: java.sql.SQLException: Parameter index out of range (0
原文错误代码为:stmt = conn...
分类:
数据库 时间:
2015-06-08 09:50:11
阅读次数:
226
简单记录下:
今天mybatis中遇到一个错误:
org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [INSERT INTO law_enforce_user(user_code,name,sex,birthday) ...
分类:
数据库 时间:
2015-06-08 09:44:57
阅读次数:
464
当出现如下代码:Scanner cin = new Scanner(System.in);int tmp = cin.nextInt();String str = cin.nextLine();System.out.println(str);输出结果是""因为nextLine( )截取了输入完int...
分类:
编程语言 时间:
2015-06-08 06:10:00
阅读次数:
136