Scanner 类封装了输入流对象,并使用nextLine()方法输入流中获取用户输入的整行文本字符package hahaa;import java.util.Scanner;public class ha { public static void main (String[] args) { ....
分类:
编程语言 时间:
2015-06-06 20:43:37
阅读次数:
171
//计算时间差 int daynumber = dateDiff(startDate, endDate, "yyyy-MM-dd");public long dateDiff(String startTime, String endTime, String format) { ...
分类:
移动开发 时间:
2015-06-06 19:31:34
阅读次数:
319
string a=""; int i = 1;//声明一个变量,老师重新讲课的次数。 while (i <=10 && a != "yes") { Console.WriteL...
分类:
其他好文 时间:
2015-06-06 19:28:40
阅读次数:
104
private void ChangeFeatureClassAliasName(IFeatureClass pFeatureClass, string aliasName) { ISchemaLock schemaLock = pFeatureClass as ...
分类:
其他好文 时间:
2015-06-06 19:23:52
阅读次数:
380
为了使日志类更加灵活,我们自己写一个日志接口,自己实现它: public interface ILogger { void Information(string message); void Information(string fmt, params object[] vars); void In...
分类:
其他好文 时间:
2015-06-06 18:04:06
阅读次数:
155
1 class Solution { 2 public: 3 string longestCommonPrefix(vector& strs) { 4 if(strs.empty()) 5 return ""; 6 vector::i...
分类:
其他好文 时间:
2015-06-06 17:58:05
阅读次数:
100
正则表达式是一个描述字符模式的对象。JavaScript的RegExp对象和String对象定义了使用正则表达式来执行强大的模式匹配和文本检索与替换函数的方法.'***********************' javascript''********************...
分类:
编程语言 时间:
2015-06-06 17:51:57
阅读次数:
112
#include "string.h"#include "ctype.h" #include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h"#define OK...
分类:
其他好文 时间:
2015-06-06 17:51:21
阅读次数:
133
static void Main(string[] args) { NotifyIconHelper ni = new NotifyIconHelper(); NotifyIconHelper.ShowNotifyIcon(); ...
String 类 Attribute and method anchor() 创建一个标签的实例,将其name属性设置为被传递给此方法的字符串 big() 将字符串转换为标签的一个实例 blink() 将字符串转换为标签的一个实例 bold() 将字符串转换为标签的一个实例 charAt() 返回传...
分类:
编程语言 时间:
2015-06-06 17:46:42
阅读次数:
158