工程目录:/SSH1/src/cn/itcast/domain/Book.javapackage cn.itcast.domain;/** * 图书
*/public class Book { private Integer id; // 图书编号 private String name...
分类:
其他好文 时间:
2014-05-27 00:33:58
阅读次数:
310
object对象中的 public boolean equals(Object
obj),对于任何非空引用值 x 和 y,当且仅当 x 和 y 引用同一个对象时,此方法才返回 true;注意:当此方法被重写时,通常有必要重写
hashCode 方法,以维护 hashCode 方法的常规协定,该协定声...
分类:
编程语言 时间:
2014-05-27 00:18:44
阅读次数:
376
public class Processer{ public virtual string
Test() { return "virtual"; } public string Test2() { return "father"; }}public
class Processer2 : Proces...
分类:
其他好文 时间:
2014-05-27 00:17:38
阅读次数:
278
using UnityEngine;using System.Collections;public
class stopSpeed : MonoBehaviour { public bool canStop = false; public float
scrollSpeed = 5.0f...
分类:
其他好文 时间:
2014-05-27 00:15:25
阅读次数:
323
public class SapClass { /// /// /// /// 发票号码
/// 发票开票日期 /// 付款方 /// 分销渠道 public DataTab...
分类:
其他好文 时间:
2014-05-27 00:13:23
阅读次数:
390
/** * Created by 刘朋程 on 2014-5-22. */ class
Testprivate { private int age = 18; //私有化age并赋值为18 public void setAge(int age)
//设置age范围 ...
分类:
其他好文 时间:
2014-05-26 23:45:17
阅读次数:
267
异常:编译正常,但运行出错,会中断正常指令流RuntimeException:运行时异常分为:uncheck exception、和check
exception(除了RuntimeException以及子类以外的)uncheck exceptionclass Test{ public sta...
分类:
编程语言 时间:
2014-05-26 23:44:34
阅读次数:
323
算法:1.
对root的左子树做处理,让左子树的根节点作为,根节点的右子树,并让右子树作为左子树根节点的右子树的子树2. 递归遍历右子树public void
flatten(TreeNode root) { if(root==null){ return; ...
分类:
其他好文 时间:
2014-05-26 23:39:49
阅读次数:
253
添加重要的命名空间:using
System.Runtime.InteropServices;先建立结构相同(char长度相同)的Struct类型用于转换:[StructLayout(LayoutKind.Sequential,
Pack = 1)] public struct Employe...
分类:
其他好文 时间:
2014-05-26 23:25:14
阅读次数:
302
介绍通过方法
@Override
public boolean areAllItemsEnabled() {
return false;
}
@Override
public boolean isEnabled(int position) {
return !mStrings[position].startsWith("-");
}
设置list的可以选和不可选注意有...
分类:
其他好文 时间:
2014-05-22 23:08:09
阅读次数:
388