一、简述在整个io包中,唯一表示与文件本身有关的类就是File类。使用File类可以进行创建或删除文件等常用操作。要想使用File类,则首先要观察File类的构造方法,此类的常用构造方法如下所示:public File(String pathname) ->实例化File类的时候,必须设置好路径。二...
分类:
编程语言 时间:
2015-02-28 18:15:51
阅读次数:
143
/** * 生成时间轴数据, 从当前 年月日 往前推到几天的日期 * @param year * @param month * @param dd * @param qian 前几天的日期 * @return yyyyMMdd */ public static String genTimeAxisData4LastDayOfMonthA...
分类:
其他好文 时间:
2015-02-28 16:50:17
阅读次数:
154
Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
For example, given s = "aab", Return
[
["aa","b...
分类:
其他好文 时间:
2015-02-28 16:29:29
阅读次数:
129
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2...
分类:
其他好文 时间:
2015-02-28 16:20:03
阅读次数:
119
判断一个人的体重是否为标准体重计算公式为:男生:体重-身高+100=±3 女生:体重-身高+110=±3 Console.WriteLine("请输入性别"); string a = Console.ReadLine(); Console.WriteLine("请输入体重"); double b =...
分类:
其他好文 时间:
2015-02-28 16:09:01
阅读次数:
149
var col=HttpContext.Current.Request.Form; Dictionary dict = new Dictionary(); foreach (var key in col.AllKeys) { ...
分类:
Web程序 时间:
2015-02-28 16:07:18
阅读次数:
723
1 public void getFileDir(String filePath) { 2 try{ 3 this.tv.setText("当前路径:"+filePath);// 设置当前所在路径 4 items =...
分类:
其他好文 时间:
2015-02-28 16:01:38
阅读次数:
105
一、前言 和 XML 一样,JSON 也是基于纯文本的数据格式。由于 JSON 天生是为 JavaScript 准备的,因此,JSON 的数据格式非常简单,您可以用 JSON 传输一个简单的 String,Number,Boolean,也可以传输一个数组,或者一个复杂的 Object 对象。二、包含...
分类:
Web程序 时间:
2015-02-28 16:00:06
阅读次数:
192
static void Main(string[] args) { int mRead = int.Parse(Console.ReadLine()); string mValue = ""; Random mRandom = new Random(); int i; for (i = 2; i <...
分类:
编程语言 时间:
2015-02-28 15:56:48
阅读次数:
165
import android.R.string;import java.util.ArrayList;import java.util.List;import java.util.HashMap;import java.util.Map;import android.app.Fragment;imp...
分类:
其他好文 时间:
2015-02-28 15:56:27
阅读次数:
160