码迷,mamicode.com
首页 >  
搜索关键字:out    ( 35870个结果
codeforces535D:Tavas and Malekas(KMP)
Tavas is a strange creature. Usually "zzz" comes out of people's mouth while sleeping, but string s of length n comes out from Tavas' mouth instead. Today Tavas fell asleep in Malekas' place. W...
分类:其他好文   时间:2015-04-16 23:46:03    阅读次数:233
Integer a = 128, Integer b = 128, a==b ; Integer c = 1 , integer d =1 , c==d
Integer a = 128;         Integer b = 128;         System.out.println(a==b);         Integer c = 1;         Integer d = 1;         System.out.println(c==d); 执行结果:false                     true ...
分类:其他好文   时间:2015-04-16 21:58:25    阅读次数:515
Long a = null; a==-11; Long b = null; b==11;
Long a = null; System.out.println(a==-11); Long b = null; System.out.println(b==11); 执行结果:第一个报错,第二个不报错,但是执行会出现NullPointException。 如果Long a 不为null就不会出错了,原因是自动拆解包的时候出现了空指针,第一个的时候为检查性异常,第二个为运行时异常...
分类:其他好文   时间:2015-04-16 21:58:24    阅读次数:155
杭电1379(DNA Sorting)java面向对象编程
点击打开链杭电1379 Problem Description One measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequen...
分类:编程语言   时间:2015-04-16 21:58:10    阅读次数:183
D3D9 GPU Hacks (转载)
D3D9 GPU HacksI’ve been trying to catch up what hacks GPU vendors have exposed in Direct3D9, and turns out there’s a lot of them!If you know more hack...
分类:其他好文   时间:2015-04-16 21:24:03    阅读次数:293
instanceof和类型转换之谜
public class ColorPoint{ public static void main(String[] args){ String s = null; System.out.println(s instanceof String); ColorPoint cp = (ColorPoint) new Object(); } } 输出什么?能够编译通过吗 调试发现,可以...
分类:其他好文   时间:2015-04-16 17:49:18    阅读次数:164
leetcode025: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 the end should remai...
分类:其他好文   时间:2015-04-16 14:22:29    阅读次数:208
C#ref和out的区别-ref是有进有出,out是只出不进
之前学习C#时候就遇到了这个问题,不过当时没有深究。昨晚想到这个问题时候自己尝试敲了敲代码,结果从运行的结果来看,越看越乱。在查看了一些资料的基础上,自己总结了一下。可能会有点乱,但是自己总结出来的东西。一:ref 关键字使参数按引用传递。其效果是,当控制权传递回调用方法时,在方法中对参数所做的任何...
分类:Windows程序   时间:2015-04-16 14:16:46    阅读次数:249
HackerRank - Cipher
A coding problem. The trick is, some part of computation can be reused from last iteration. Check out my code:#include #include #include #include #inc...
分类:其他好文   时间:2015-04-16 14:07:29    阅读次数:170
java中static{}语句块详解
1、当一个类中有多个static{}的时候,按照static{}的定义顺序,从前往后执行;2、先执行完static{}语句块的内容,才会执行调用语句;示例二public class TestStatic{ static{ System.out.println(1); } static { Syste...
分类:编程语言   时间:2015-04-16 12:09:53    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!