集合框架总览:
Collection 接口常用方法
//1.add()向集合中添加数据
c.add(apple01);
c.add(apple02);
c.add(apple03);
c.add(apple04);
c.add(apple05);
//2.isEmepty()检测当前集合是否为空
boolean empty = c.isEmpty();
System.out.println("i...
分类:
编程语言 时间:
2014-06-05 08:52:09
阅读次数:
323
在本机或者服务器上,写入Windows Event Log日志代码,执行了没有报错,但是打开Windows Event Log记录面板,却看不到任何记录,很可能是你当前用户没有权限是写入东西。此时,我们做一些配置,就可以使当前用户拥有写入Event Log的权限。
设置:“开始->运行”,输入命令,“regedt32”,找到“System->CurrentControlSet->Serv...
“CreateRiaClientFilesTask”任务意外失败。
未能加载文件或程序集“System.ComponentModel.DataAnnotations...
分类:
其他好文 时间:
2014-06-05 04:24:02
阅读次数:
788
最近在给android 4.3系统进行root时候,一直出现如下的红色权限问题 :
7.695741] Freeing init memory: 236K
[ 8.555286] init: cannot find '/system/bin/dbus-daemon', disabling 'dbus'
[
8.566954] init: cannot execve('/s...
分类:
其他好文 时间:
2014-06-05 01:02:36
阅读次数:
358
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
us...
分类:
其他好文 时间:
2014-06-05 00:31:37
阅读次数:
309
1:连接oracle
A:安装oracle服务端(11G/10G)
B:添加引用:
C:引入命名空间:using System.Data.OracleClient;
D:连接字符:
public OracleConnection getOracleConnection(String user,String password,String url)
{...
分类:
数据库 时间:
2014-06-05 00:09:39
阅读次数:
476
System.Web.Routing已经作为一个程序集包含在.net3.5sp1中发布了。虽然我们并没有在3.5sp1中发现Asp.net
Mvc的踪迹,但是亦以感觉到它离我们不远了。System.Web.Routing用于在Asp.net的Web应用程序中进行URLRouting。所谓UrlRou...
分类:
Web程序 时间:
2014-05-31 21:06:46
阅读次数:
286
上面介绍的是最简单的一种定义方式。当然我们可以建立更复杂的规则。其中就包括设定规则的默认值以及设定规则的正则表达式。UrlRouting高级应用预计效果:Code
highlighting produced by Actipro CodeHighlighter (freeware)http://ww...
分类:
Web程序 时间:
2014-05-31 21:01:40
阅读次数:
297
Finite State Machine can be used the model the
behavior of system by identifying what states the system can be in, what inputs
or events trigger state...
分类:
其他好文 时间:
2014-05-31 20:20:04
阅读次数:
292
在使用ASP.NET框架开发:若要在Html网页中加入设置,但想通过程序动态加入:1、如果是ASP.NET4.0以前版本:使用HtmlMeta类加入设置://首先我们应该创立HtmlMeta类实体(命名空间:System.Web.UI.HtmlControls)HtmlMeta
meta1=new ...
分类:
Web程序 时间:
2014-05-31 19:34:17
阅读次数:
330