1. 数组的引用传递public class TestArray { public static
void changeAry1(int[] ary){ int[] ary1 = {9,9,9}; ary = ary1; } public stat...
分类:
编程语言 时间:
2014-05-08 09:21:18
阅读次数:
370
#include
#include
using namespace std;
class Point
{
public:
Point(double x=0,double y=0);
void setPoint(double,double);
double getx()
{
return x;
}
double gety()
...
分类:
其他好文 时间:
2014-05-08 04:44:47
阅读次数:
237
package org.mark.file;
import java.io.File;
/**
* File类的基本操作之读出全部文件夹路径
* 如果给定一个目录,要求将此目录中的全部文件都列出来
* 使用递归
*/
public class TestChare {
/**
* @param args
*/
public static void main(String[]...
分类:
其他好文 时间:
2014-05-08 03:53:29
阅读次数:
259
#include
#include
using namespace std;
class Point
{
public:
Point(double x=0,double y=0);
void setPoint(double,double);
double getx()
{
return x;
}
double gety()
...
分类:
其他好文 时间:
2014-05-08 03:42:17
阅读次数:
273
首先附上这两个接口JDK中的定义:packagejava.lang;importjava.langpublicinterfaceIterable<T>{Iterator<T>iterator();}packagejava.util;publicinterfaceIterator<E>{booleanhasNext();Enext();voidremove();}首先你会看到这两个接口在不同的包中,Iterabl..
分类:
其他好文 时间:
2014-05-08 03:36:04
阅读次数:
267
在做业务时候,一个ListView显示多种数据类型,我们想到的方法是ListView在嵌套一个ListView,对于子ListView
占父ListView的一行,就解决了问题,但是这样的逻辑是不是有点奇怪呢?
第一,父ListView的长度size需要加1,因为增加了一行放子listView
public int getCount() {
retur...
分类:
其他好文 时间:
2014-05-08 01:42:10
阅读次数:
316
1.创建新的字符串 1 public class T004 { 2 public static
void main(String[] args){ 3 System.out.println(replaceBlank("we are happy")); 4
} 5 ...
分类:
编程语言 时间:
2014-05-08 01:08:18
阅读次数:
364
public class Tree { TreeNode last = null; TreeNode
root = null; public Tree(int value){ root = createNode(value); } ...
分类:
其他好文 时间:
2014-05-08 01:04:08
阅读次数:
349
class Solution {private: vector result;public:
vector wordBreak(string s, unordered_set &dict) { vector > dp;
result.clear(); ...
分类:
其他好文 时间:
2014-05-08 01:00:03
阅读次数:
361
Given an array where elements are sorted in
ascending order, convert it to a height balanced BST./** * Definition for binary
tree * public class TreeN...
分类:
其他好文 时间:
2014-05-08 00:51:46
阅读次数:
430