摘要: http://blog.sina.com.cn/s/blog_4f9d6b1001000bfo.htmlint -> Stringint i=12345;String s="";第一种方法:s=i+"";第二种方法:s=String.valueOf(i);这两种方法有什么区别呢?作用是不是一样的呢?是不是在任何下都能互换呢?String -> ints="12345";int i;第一种方法:i=Integer.parseInt(s);第二种方法:i=Integer.valueOf(s).intValue();这两种方法有 阅读全文
posted @ 2013-11-22 10:32 soul390 阅读(290) 评论(0) 推荐(0)
摘要: 1 public List getHamiltonianPath(int v) { 2 // A path starts from v. (i, next[i]) represents an edge in 3 // the path. isVisited[i] tracks whether i is currently in the 4 // path. 5 int[] next = new int[getSize()]; 6 for (int i = 0; i result =... 阅读全文
posted @ 2013-11-22 08:29 soul390 阅读(1038) 评论(0) 推荐(0)