1、如何在Java中设置输入快捷方式?
例如:写代码时输入syso的话,就能够自动弹出System.out.println();
方法:在Eclipse下打开windows-->preferences,找到java-->Editor-->Content
Assisit,然后在右边的界面有一个Auto Activation。将Auto activation triggers for Java...
分类:
编程语言 时间:
2015-04-07 09:55:01
阅读次数:
170
需求: 根据传入的参数批量 删除数据:
DAO:
List ll = new ArrayList();
for(int i=10;i<25;i++){
ll.add(i);
}
int res = userMapper.delUser(li);
System.out.println(res);
xml:
delete from users whe...
分类:
其他好文 时间:
2015-04-06 23:16:48
阅读次数:
1106
一. 对象块代码如下: 1 public class TestObject { 2 int i; 3 int j; 4 { 5 System.out.println("对象块执行...."); 6 this.i = 1; 7 t...
分类:
编程语言 时间:
2015-04-06 21:32:41
阅读次数:
143
关于判断闰年问题,我的思路是首先判断输入是否为合法输入,在输入合法的基础上才可以判断是否为闰年,判断输入是否异常代码如下:public static void main(String[] args) { String s = " "; System.out.println...
分类:
其他好文 时间:
2015-04-06 14:06:40
阅读次数:
181
双端队列:函数描述c.assign(beg,end)c.assign(n,elem)将[beg; end)区间中的数据赋值给c。将n个elem的拷贝赋值给c。c.at(idx)传回索引idx所指的数据,如果idx越界,抛出out_of_range。c.back()传回最后一个数据,不检查这个数据是否...
分类:
编程语言 时间:
2015-04-06 12:47:22
阅读次数:
158
题目:leetcode
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. ...
分类:
其他好文 时间:
2015-04-06 08:51:43
阅读次数:
150
一个简单的四则运算的中缀转后缀,以及后缀的求值。已测试中缀转后缀:#include#include#include#include#include#include#includestatic stack ss_out; //后缀求值时用来存放后缀表达式的元素static stack ss_opt.....
分类:
其他好文 时间:
2015-04-06 06:22:06
阅读次数:
226
Javapublic class HelloWorld { public static void main(String[] args) { System.out.println("Hello, world!"); }}JavaScriptTo write to a con...
分类:
其他好文 时间:
2015-04-05 23:25:29
阅读次数:
216
1 public class BinaryTree 2 { 3 public void printNode(TreeNode node) 4 { 5 System.out.print(node.getData()); 6 } 7 8...
分类:
编程语言 时间:
2015-04-05 23:14:13
阅读次数:
238
3893: [Usaco2014 Dec]Cow JogTime Limit:10 SecMemory Limit:128 MBSubmit:174Solved:87[Submit][Status][Discuss]DescriptionThe cows are out exercising the...
分类:
其他好文 时间:
2015-04-05 23:11:12
阅读次数:
247