using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Configuration;using System.Data;using System.Data.SqlCli...
分类:
数据库 时间:
2014-06-18 14:01:42
阅读次数:
156
此题给出的条件是:(1)word的每个字母都是大写字母(此条件可以忽略,题目给的输入都是大写字母)(2) 相等字符不能连续,即不能出现AABC的连续相同的情况(3)word中不存在字母组成xyxy的形式,即不存在第一个字符和第3个字符相等同时第2个字符和第4个字符相等的情况对于第(2)种情况,只需要...
分类:
其他好文 时间:
2014-06-17 13:47:36
阅读次数:
192
1.The GetCurrentDirectory function retrieves the current directory for the current processDWORD GetCurrentDirectory( DWORD nBufferLength, // size of d...
分类:
其他好文 时间:
2014-06-17 13:44:58
阅读次数:
206
public static void main(String[] args) {System.out.print("红色的号码为:");Set set=new HashSet();while (true) {int i=(int)(Math.random()*33+1);set.add(i);if ...
分类:
编程语言 时间:
2014-06-17 13:35:14
阅读次数:
748
今天调用JAVA接口,有一个long[]行参数,一开始用new Long[]{}来传参数编译错误,然后再用new long[]{}后正常。上午开会讨论项目剩余问题,下午调试修改一个接口,然后开会讨论接口问题,当面讨论效率高不少。中午想看智能家居相关知识,被红外遥控,智能控制器,射频识别都一些肤浅的概...
分类:
其他好文 时间:
2014-06-17 13:30:06
阅读次数:
201
public static void main(String[] args) {Scanner scanner=new Scanner(System.in);//根据日历类对象的方法,实例化一个当前的日历类对象Calendar calendar=Calendar.getInstance();Syst...
分类:
编程语言 时间:
2014-06-17 13:24:54
阅读次数:
335
Optionals (可选类型) 当一个值可能有值,也可能没有值,这种情况你可以使用可选类型.可选类型的意思是: 有个一个值,它等于x,或者,根本没有任何值. 注意点: 可选类型的概念在C和OC中都是没有的.在OC中最相似的情况是,一个方法返回nil或者返回一个对象.OC中返回nil意...
分类:
移动开发 时间:
2014-06-17 13:09:58
阅读次数:
292
import javax.swing.JOptionPane;自然数中还有一类数被称为回文数。回文数就是一个数的两边对称,如11,121,1221,9339,30203等等public class CircleTest{public static void main(String[] args){S...
分类:
编程语言 时间:
2014-06-17 13:00:53
阅读次数:
339
ListAdapter bookAdapter = new SimpleCursorAdapter(this,R.layout.booklist,cursor,from,to);提示:The constructor SimpleCursorAdapter(Context, int, Cursor,....
分类:
其他好文 时间:
2014-06-17 12:58:51
阅读次数:
472
1 import java.lang.reflect.Field; 2 3 import org.junit.Test; 4 5 //反射字段 6 public class Demo2 { 7 8 // 反射字段:public String name="aaaa" 9 @Te...
分类:
其他好文 时间:
2014-06-17 12:55:38
阅读次数:
290