有时候我们只需要某类一个对象,多个对象会产生不利的影响,如充当打印机: public
class OnlyModle { private static OnlyModle _only; private OnlyModle() { }
public...
分类:
其他好文 时间:
2014-05-28 04:41:53
阅读次数:
209
1、索引器 1 class Player 2 { 3 private int[] arr = new
int[100]; 4 public int this[int index] 5 { 6 get { 7 ...
分类:
Web程序 时间:
2014-05-28 04:00:03
阅读次数:
216
1、实现原窗体消失,打开另一个窗体,关闭新窗体时则关闭程序 private void
button5_Click(object sender, EventArgs e) { Form2 form2 = new Form2(); ...
在一个业务类有下列属性private SchedulerFactoryBeanscheduler;
public SchedulerFactory BeangetScheduler() { return scheduler; } public void
setS...
分类:
编程语言 时间:
2014-05-27 23:38:16
阅读次数:
1397
算法:通过递归并限定上下限元素的值的范围可以计算package
com.bupt.acm.leetcode;public class ValidBinary { private class TreeNode{ int
val; TreeNode left; ...
分类:
数据库 时间:
2014-05-27 17:17:11
阅读次数:
345
找了好久资料,终于解决了,特此记录下来。1 delegate void
DelListHandler(string number); /// /// 按标识删除listview内容 /// /// 标识 private void
...
分类:
编程语言 时间:
2014-05-27 17:04:55
阅读次数:
319
/** * 带文本提示的进度条 */public class TextProgressBar
extends ProgressBar { private String text; private Paint mPaint; public
TextProgressBar...
分类:
移动开发 时间:
2014-05-27 16:29:14
阅读次数:
1470
在项目中,遇到不能ListView及时更新的问题。写了一个demo,其中也遇到一些问题,一并写出来。好吧,上代码:public
class PersonAdapter extends BaseAdapter { private ArrayList mList; private
Con...
分类:
其他好文 时间:
2014-05-26 19:18:24
阅读次数:
290
这多态,我觉得是最利害的。在开发大型程序中。但,也是需要经过足够多的实践经验才能随心利用的。class Quadrangle{ private
Quadrangle[] qtest = new Quadrangle[6]; private int nextIndex = 0; pu...
分类:
编程语言 时间:
2014-05-26 17:53:47
阅读次数:
295
private void installApk(String fileUri) { Intent
intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("file://" + fileUr...
分类:
移动开发 时间:
2014-05-26 17:36:26
阅读次数:
290