cls1里有一个aa() 假设所有成员都是public; 如果cls2继承cls1时 cls1 my
= new cls1();my.aa(); 这个好说当然是执行cls1的aa方法啦(这不废话嘛^_^) 别丢板砖 继续 mycls2 my = new
mycls2();my.aa(); 这个比上....
分类:
其他好文 时间:
2014-05-09 16:18:36
阅读次数:
262
代码生成器大数据分页下面参考代码是简易的数据权限的实现,大多情况下下面的数据权限的功能可以满足很多企业的需要了 #region public DataTable
GetDataTableByPage(BaseUserInfo userInfo, out int recordCount,...
分类:
Web程序 时间:
2014-05-09 16:10:19
阅读次数:
376
class Program { public static void Main(string[]
args) { int i=0; String[] urlarray = new String[] { "http://ww...
分类:
Web程序 时间:
2014-05-09 16:06:58
阅读次数:
327
using System;using System.IO;using
System.Messaging;namespace YuRen.PaiWei.BaLianGui{ /// /// MQ文件发送 ///
所有异常都将抛出请做好异常处理 /// public s...
分类:
其他好文 时间:
2014-05-09 15:50:53
阅读次数:
807
java定时任务,每天定时执行任务。以下是这个例子的全部代码。public class
TimerManager { //时间间隔 private static final long PERIOD_DAY = 24 * 60 * 60 *
1000; public TimerManager() {....
分类:
编程语言 时间:
2014-05-09 15:43:37
阅读次数:
389
一点小错,两次过,基本思想是先比较头元素,哪个小就在哪个list的基础上插入,需要考虑两种不同的结束方式 1
/** 2 * Definition for singly-linked list. 3 * public class ListNode { 4 * int
val; 5 *...
分类:
其他好文 时间:
2014-05-09 09:21:59
阅读次数:
273
此规范参考自android源码,并加以改进,仅供个人使用,如果你觉得还有可取之处,可以参考下,以后有好的规则,再补充总体规范:
类名要清晰,能反映出这个类的作用,最好能达到见名知义的效果 方法名要使用动宾短语eg: public boolean
moveTaskToBack(boolean no.....
分类:
移动开发 时间:
2014-05-09 07:19:21
阅读次数:
298
public class sample{public static void
main(String[]
args){//得到类的简写名称System.out.println(sample.class.getSimpleName());//得到对象的全路径System.out.println(sam...
分类:
其他好文 时间:
2014-05-09 07:17:59
阅读次数:
242
import java.lang.reflect.Field;
public class ReflectClass3 {
/**
* @param args
*/
public static void main(String[] args) {
Person p = new Person(1, "ctl", true, 'c', 2.0f, 2.0, 1L, (short) 1...
分类:
编程语言 时间:
2014-05-09 06:18:19
阅读次数:
580
原地归并。下面是AC代码: 1 public void merge(int A[], int m,
int B[], int n) { 2 3 int len = A.length; 4 //first copy m elements of A...
分类:
其他好文 时间:
2014-05-09 05:59:54
阅读次数:
297