1开机图片:android-logo-mask.pngandroid-logo-shine.png这两个图片一个在上一个在下./out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes/asset...
分类:
移动开发 时间:
2014-05-19 22:42:33
阅读次数:
419
B Alice and Bob ?输入输出文件:
alice.in/alice.out?源文件名: alice.cpp/alice.c/alice.pas ? 时间限制: 1s 内存限制: 128M 题目描述
Alice 和 Bob 发明了一个新的游戏。给定一个序列{x0,x1,··· ,xn?1}...
分类:
其他好文 时间:
2014-05-19 20:13:46
阅读次数:
324
NSMutableAttributedString *attrString =
[[NSMutableAttributedString alloc] initWithString:title]; NSRange range =
NSMakeRange(0, [attrString length...
分类:
其他好文 时间:
2014-05-19 11:20:27
阅读次数:
236
1.根据要求创建列表threes_and_fives(列表值包括1到15中能够被3或者5正常的数)threes_and_fives=[x
for x in range(1,16) if x%3==0 or x%5==0]2.lambda表达式实例(剔除掉列表中的”X“)garbled =
"IXXX...
分类:
编程语言 时间:
2014-05-18 19:48:23
阅读次数:
397
【题目】
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
【题意】
给定一个整数,将其表示成罗马数字
【思路】
罗马数字中只使用如下七个基值字母:M,D,C,L,X,V,I,分别用来表示1000、500、100、50、10、5、1。
罗马数组数规则:
基本数字Ⅰ、X 、C 中的任何一个,自身连用构成数目,或者放在大数的右边连用...
分类:
其他好文 时间:
2014-05-16 01:46:55
阅读次数:
312
今天脑筋有点搭牢,想了半天才看出为什么以下两段代码效果是相同的。。。第一种好处是可以直接批量复制黏贴system.out, 不用改什么东西 private
static long i; private volatile static long vt; private static final int...
分类:
其他好文 时间:
2014-05-16 00:43:28
阅读次数:
387
//功能:二分查找import java.util.*;public class Demo1 {
public static void main(String[] args) { int arr[]={2,5,7,12,25};//定义arr数组并赋值
System.out.print("请输入你需...
分类:
编程语言 时间:
2014-05-15 22:11:22
阅读次数:
421
基本数据类型的赋值与运算Eg1: public class Ex1{ public
static void main(String arg []){ boolean b = true ; System.out.println(b); } }
Eg2: public c...
分类:
其他好文 时间:
2014-05-15 22:04:09
阅读次数:
357
out:是一个缓冲的输出流,用来给客户端返回信息,它是javax.servlet.jsp.JspWriter的一个实例,是文本一级的对象,与response不同,通过out发送的内容将直接显示在浏览器,而response要发送html标签才可以显示。
常用的方法:
println():向客户端输出各种类型数据
newLine():输出一个换行符
close():关闭输出流
flush()...
分类:
编程语言 时间:
2014-05-15 20:22:26
阅读次数:
338
看这个代码:
public class D
{
@Override
public String toString()
{
return "obj:"+this;
}
public static void main(String[] args)
{
System.out.println(new D());
}...
分类:
其他好文 时间:
2014-05-15 20:18:38
阅读次数:
277