码迷,mamicode.com
首页 >  
搜索关键字:out of sync    ( 40306个结果
【DataStructure】Description and usage of queue
【Description】 A queue is a collection that implements the first-in-first-out protocal. This means that the only accessiable object in the collection in the first one that was inserted. The most commo...
分类:其他好文   时间:2014-08-10 21:43:10    阅读次数:236
java继承会犯的小错误
注意事项:阅读本文前应该先了解java的继承。本文定位为已经继承基础知识。一:试图覆盖私有方法先上代码 1 public class Father { 2 3 private void print() { 4 System.out.println("private prin...
分类:编程语言   时间:2014-08-10 21:15:50    阅读次数:264
SQLserver 转换Mysql 一些语法使用的区别
1.存储过程的语法各式eg:DELIMITER $$CREATE PROCEDURE test_p_add9( p_name VARCHAR(100), p_test VARCHAR(100), p_age INT, OUT o_newid INT)BEGIN INSERT INTO tab...
分类:数据库   时间:2014-08-10 10:17:30    阅读次数:336
java unreachable code不可达代码
例子:static int test(int testval) { int target = 1; if (testval > target) System.out.println(1); return -1;(下边是永远不会达到的代码,所以编译器提示错误(unreachable code)) if...
分类:编程语言   时间:2014-08-09 23:05:49    阅读次数:372
Java 语法 索引 ----- 异常
import java.io.*;// ...FileReader in = null;try { in = new FileReader("Missing.file");}catch(FileNotFoundException e) { System.out.print(e.getMessage(...
分类:编程语言   时间:2014-08-09 04:53:47    阅读次数:270
Java 语法 索引 ----- 条件语句(If Else,Switch)
if (x 1) System.out.print(x + " > 1");else System.out.print(x + " == 1");Switchswitch (y){ case 0: System.out.print(y + " is 0"); break; case 1: Syste...
分类:编程语言   时间:2014-08-09 02:35:12    阅读次数:192
Java 语法 索引 ----- 循环(loop)
While 和 Do-While //whileint i = 0;while (i < 10) { System.out.print(i++);}//do - while int i = 0;do { System.out.print(i++); } while ( i < 10 );For 和 ...
分类:编程语言   时间:2014-08-09 02:34:36    阅读次数:281
Java 语法 索引 ----- 主函数 (Main)
public class MyApp { public static void main(String[] args) { System.out.print("Hello World"); }}
分类:编程语言   时间:2014-08-09 02:32:17    阅读次数:353
NYOJ 99单词拼接(有向图的欧拉(回)路)
1 /* 2 NYOJ 99单词拼接: 3 思路:欧拉回路或者欧拉路的搜索! 4 注意:是有向图的!不要当成无向图,否则在在搜索之前的判断中因为判断有无导致不必要的搜索,以致TLE! 5 有向图的欧拉路:abs(In[i] - Out[i])==1(入度[i] -...
分类:其他好文   时间:2014-08-09 02:31:46    阅读次数:357
asdfasdf
1 /* HelloWorld.java2 */3 4 public class HelloWorld5 {6 public static void main(String[] args) {7 System.out.println("Hello World!");8 ...
分类:其他好文   时间:2014-08-08 23:52:56    阅读次数:239
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!