码迷,mamicode.com
首页 >  
搜索关键字:out    ( 35870个结果
CSU1604: SunnyPig(BFS)
Description SunnyPig is a pig who is much cleverer than any other pigs in the pigpen. One sunny morning, SunnyPig wants to go out of the pigpen to date Mrs. Snail, his beloved. However, it’s terrib...
分类:其他好文   时间:2015-05-03 20:41:56    阅读次数:143
java for循环
publicclassTest2 {staticbooleanfoo(charc) { System.out.print(c);returntrue; }publicstaticvoidmain(String[] argv) {inti = 0;//for(65;88&&(i<2);67)for(f...
分类:编程语言   时间:2015-05-03 17:24:27    阅读次数:209
Spring mvc中@RequestMapping 6个基本用法小结
1)最基本的,方法级别上应用,例如:? ??? Java代码?? @RequestMapping(value="/departments")?? public?String?simplePattern(){?? ?? ??System.out.println("simplePattern?method?was?cal...
分类:移动开发   时间:2015-05-03 16:08:16    阅读次数:114
Python 执行Shell 外部命令
1、os.system()此方法执行的外部程序,会将结果直接输出到标准输出。os.system的返回结果为执行shell的$?值。因此请执行没有输出结果的程序时适合使用此方法。如touch、rm一个文件等。In[1]:importos In[2]:os.system(‘touchtest.txt‘) Out[2]:0 In[3]:os.system(‘rm-rftest.tx..
分类:编程语言   时间:2015-05-03 14:45:56    阅读次数:142
GCJ 2015R1B(Noisy Neighbors-分类讨论)
Problem You are a landlord who owns a building that is an R x C grid of apartments; each apartment is a unit square cell with four walls. You want to rent out N of these apartments to tenants, wi...
分类:其他好文   时间:2015-05-03 13:21:26    阅读次数:157
java 二分查找法
public class QueryDemo { public static void main(String[] args) { int[] arr2 = new int[] { 11, 3,32,34, 45, 56, 78 }; System.out.println("67在数组中的位置:" + halfSearch(arr2, 11)); } public static ...
分类:编程语言   时间:2015-05-03 12:04:10    阅读次数:149
JVM参数优化
JVM毕竟不是智能的,所以我们要根据实际的运行机器,实际业务等情况选择合适的参数去优化JVM下面我讲一些简单的参数列下来,这些参数的使用需要先理解JVM内存模型,垃圾回收机制. 当堆需要扩展的时内存不够会报 ?Out...
分类:其他好文   时间:2015-05-02 20:49:17    阅读次数:174
静态代码块,代码块
*import java.util.*;public class TestStr2{ static int i=10; static{ System.out.println("静态代码块"); } { System.out.println("代码块...
分类:其他好文   时间:2015-05-02 16:23:56    阅读次数:118
兔子--Parameter index out of range (3 > number of parameters, which is 2).
原因:sql2中有三个?,设置数据的时候,也需要为sql2设置三个数据, 如果:你只为sql2设置了2个数据,则会出现如上问题。...
分类:其他好文   时间:2015-05-02 09:50:10    阅读次数:666
headFirst学习笔记之十:状态模式(5.2)
1.如何从状态图得到真正的代码:(1)找出所有状态:没有25分钱,有25分钱,糖果售罄,售出糖果。(2)创建一个实例变量来持有目前状态,并且定义每个状态的值:1 final static int SOLD_OUT = 0;2 final static int NO_QUARTER = 1;3 fin...
分类:其他好文   时间:2015-05-02 06:17:24    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!