import java.util.*;import java.util.Random;import java.text.DecimalFormat;public class SiZe { public static void main(String[] args) { ...
分类:
其他好文 时间:
2015-04-09 01:00:10
阅读次数:
138
进制转换进制转换string ten_to_other(int y, int sum) { string res = ""; while (sum != 0) { char c = sum % y; if (0 <= c && c <= 9) { c = c + '0'; } else { /...
分类:
其他好文 时间:
2015-04-09 00:59:55
阅读次数:
115
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan...
分类:
其他好文 时间:
2015-04-09 00:58:05
阅读次数:
128
1.在web.Config配置文件中设置连接字符串 取得连接字符串的方法String strconn = ConfigurationManager.ConnectionStrings["connString"].ToString();或者 得连接字符串的方法 String ...
分类:
数据库 时间:
2015-04-09 00:56:27
阅读次数:
177
IO流: FileOutputStream FileInputStream 字节流复制文件 二进制流用字节流输入输出public void newLine():根据系统平台写入行分隔符public String readLine():一次读取一行数据代码操作【练习】 1 package cn.itc...
分类:
编程语言 时间:
2015-04-09 00:46:45
阅读次数:
117
使用ExecutorExecutor允许你管理异步任务的执行而无须显式的管理线程的生命周期。单个executor被用来创建和管理系统中的所有的任务。public class CacheThreadPool { public static void main(String[] args) { ...
分类:
编程语言 时间:
2015-04-09 00:38:37
阅读次数:
145
顺序表结构定义:就是按照顺序存储方式存储的线性表 1 1.定义一个顺序表的基本数据: 2 3 static final int MAXLEN = 100; 4 5 Class Student{ 6 private String number; //学生学号 7 pri...
分类:
编程语言 时间:
2015-04-09 00:34:12
阅读次数:
243
//系统方法
package com;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class Test {
public static void main(String[] args) {
List list1 =new ArrayList();
...
分类:
编程语言 时间:
2015-04-08 23:29:23
阅读次数:
412
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2015-04-08 23:19:09
阅读次数:
230
namespace 刘老师双色球{ class Program { static void Main(string[] args) { int count = 0; Console.WriteLine("请输入你的双色球号码"); ArrayList Ual = new ArrayList(); f...
分类:
其他好文 时间:
2015-04-08 23:17:52
阅读次数:
160