-----------黑马程序员
IOS培训、Android培训、Java培训、期待与您交流----------------#import /* NSString:不可变字符串
NSMutableString:可变字符串 URL:资源路径 协议头://路径 file://路径 ftp://路径 */...
分类:
其他好文 时间:
2014-05-09 10:47:28
阅读次数:
337
package util;import
java.security.SecureRandom;import javax.crypto.spec.DESKeySpec;import
javax.crypto.SecretKeyFactory;import javax.crypto.SecretKey;...
分类:
编程语言 时间:
2014-05-09 10:41:44
阅读次数:
408
//在webService中写到:import
javax.annotation.Resource;import javax.servlet.http.HttpServletRequest;import
javax.xml.ws.WebServiceContext;import javax.xml....
分类:
Web程序 时间:
2014-05-09 05:29:03
阅读次数:
539
直接贴代码了,不懂的地方留言讨论
package org.mark.randomaccessfile;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.RandomAccessFile;
public class RandomAccessfileDemo2 {
/**
* @param...
分类:
数据库 时间:
2014-05-08 17:15:14
阅读次数:
294
Everyoperatingsystemmusthavesomeortheotherwaytoinstallaprogram.What‘simportantisthefactthattheusermustnotbegiventheresponsibilityofmanagingtheoverheadinvolvedintheinstallationoftheprogram.Youwouldask,what‘stheoverheadinvolvedininstallingaprogram?Yesthereare..
分类:
其他好文 时间:
2014-05-08 16:52:53
阅读次数:
440
用Eclipse开发的时候经常要导入别的电脑开发的项目,经常会出错,甚至导入不了。
方法一:
把你正在使用的Eclipse开发的随便一个项目,打开,把下图这三个文件复制过去你要导入的项目,覆盖。然后再import项目。ok。
方法二:
打开你要导入的项目的 .classpath 文件,如图:
其中把path改成自己sdk的路径,sourcepath是jdk...
分类:
系统相关 时间:
2014-05-08 16:08:12
阅读次数:
448
求两节点的最短通路,对于无权图,可以通过图的广度优先遍历求解。含权图一般通过Dijkstra算法求解。
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
public class Sho...
分类:
其他好文 时间:
2014-05-08 15:59:09
阅读次数:
352
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* 服务提供核心类
* 该类的主要作用是加载beans.xml文件
* @author grace
*
*/
publi...
分类:
编程语言 时间:
2014-05-08 15:58:43
阅读次数:
418
1,创建一个user表,包含两列name,phone
2,用python(你喜欢的任何语言)插入100W条记录(lz的笔记本比较老,大概用了1分钟吧):
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import MySQLdb
conn = MySQLdb.connect(host='localhost',user='root',db='mi...
分类:
数据库 时间:
2014-05-08 15:52:43
阅读次数:
393
今天学习java io中File类下的 RandomAccessfile,欢迎留言讨论,其他知识看api
package org.mark.randomaccessfile;
import java.io.File;
import java.io.RandomAccessFile;
/**
* 写入操作
*/
public class RandomAccessfileDemo1 {
...
分类:
数据库 时间:
2014-05-08 15:42:28
阅读次数:
357