1 package chap02; 2 3 import static
org.junit.Assert.*; 4 5 import java.util.Arrays; 6 7 import org.junit.Test; 8 9
public class ques2_4...
分类:
其他好文 时间:
2014-06-07 10:46:08
阅读次数:
274
import java.io.File;import
java.io.IOException;public class DirCreate { public static void main(String[]
args) throws IOException { // TODO ...
分类:
编程语言 时间:
2014-06-07 10:45:32
阅读次数:
380
利用JQuery的$.ajax()可以很方便的调用asp.net的后台方法。先来个简单的实例热热身吧。1、无参数的方法调用asp.net code:using
System.Web.Script.Services; [WebMethod] public static string Say...
分类:
Web程序 时间:
2014-06-07 09:37:49
阅读次数:
350
http://hljqfl.blog.163.com/blog/static/40931580201122210573364/在写ASP.Net程序的时候,我们常常遇到跳转页面的问题,我们常常使用Response.Redirect
做ASP.NET框架页跳转,假设客户要在跳转的时候使用提示,这个就不...
1 /// 2 /// 下载文件 TransmitFile 3 /// 4 /// 5 public
static void DownloadFile(string filePath) 6 { 7...
分类:
Web程序 时间:
2014-06-07 07:59:55
阅读次数:
311
1 /// 2 /// 浏览文件 3 /// 4 /// 5 public static void
ExploreFile(string filePath) 6 { 7 P...
分类:
其他好文 时间:
2014-06-07 07:55:26
阅读次数:
252
1 public static string GetMacAddress() 2 { 3
ManagementClass class2 = new
ManagementClass("Win32_NetworkAdapterConfiguration")...
分类:
其他好文 时间:
2014-06-07 07:54:48
阅读次数:
1258
public static void WriteLog(string msg) { string
appPath = AppDomain.CurrentDomain.BaseDirectory; string ServerPath = appPath +
@"\Log" + DateTime.No....
分类:
其他好文 时间:
2014-06-07 07:15:18
阅读次数:
292
简单单例模式的使用一共有两点:1.
构造函数必须是private的,如果不是private的,外部对象就可以创建,就可以多个,即不属于单例模式。单例模式要求必须一个。2.
类必须提供至少一个static的方法,用于对外创建自身的唯一对象。(本身控制,判断指针是否为空,为空创建,不为空则不创建,体现在...
分类:
编程语言 时间:
2014-06-05 15:48:43
阅读次数:
155
package chap02_Basic_Algorithms;import static
org.junit.Assert.*;import java.util.Arrays;import org.junit.Test;public class
SortAlgorithms { /** * 冒泡法...
分类:
其他好文 时间:
2014-06-05 15:44:15
阅读次数:
241