1、枚举类型的检验 运行下列代码,有何结果? 运行结果为:false false true SMALL MEDIUM LARGE。 结果分析:1)Size s=Size.SMALL;Size t=Size.LARGE;所以很显然,s并不等于t。2)因为s是自己定义的枚举类型,所以不是一个基本类型,所 ...
分类:
其他好文 时间:
2016-10-06 15:06:22
阅读次数:
190
1.仔细阅读示例: EnumTest.java,运行它,分析运行结果? 你能得到什么结论?你掌握了枚举类型的基本用法了吗? 结果:false false true SMALL MEDIUM LARGE 结论:枚举可用于switch语句中。枚举不属于原始数据类型,它的每个具体值都引用一个特定的对象。相 ...
分类:
其他好文 时间:
2016-10-05 17:42:05
阅读次数:
125
原文地址:http://toughcoder.net/blog/2015/04/30/android-fragment-the-bad-parts/?utm_source=tuicool&utm_medium=referral Fragment是Android在3.0(Homeycomb)版本时加入 ...
分类:
移动开发 时间:
2016-10-05 14:59:30
阅读次数:
284
Product of Array Except Self 原题: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of ...
分类:
其他好文 时间:
2016-10-04 18:26:49
阅读次数:
104
元素的外边距内就是元素的边框。即围绕元素内容和内边距的一条或多条线。由于元素的背景不会在元素外边距以内,所以背景在元素外边框边界处停止。 边框有三个方面:宽度或粗细,样式或外观,颜色。 宽度默认值为medium,通常为2px,默认none,所以不一定能看到边框。 颜色默认是元素的前景色,如果没有前景 ...
分类:
Web程序 时间:
2016-10-03 16:52:28
阅读次数:
147
http://www.jackpu.com/medium-shi-ru-he-zuo-tu-pian-jia-zai-de/ ...
分类:
其他好文 时间:
2016-10-03 06:40:30
阅读次数:
188
B - Collective Mindsets (medium) Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u CodeForces 690A2 B - Collective Mindsets (mediu ...
分类:
其他好文 时间:
2016-09-30 23:29:19
阅读次数:
240
题目: Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. (Medium) For example,If n = 4 and k = 2, a solution is: ...
分类:
其他好文 时间:
2016-09-30 02:05:50
阅读次数:
148
题目: Follow up for "Remove Duplicates":What if duplicates are allowed at most twice? (Medium) For example,Given sorted array nums = [1,1,1,2,2,3], Your ...
分类:
其他好文 时间:
2016-09-30 01:38:56
阅读次数:
148
题目: Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. (Medium) For examp ...
分类:
其他好文 时间:
2016-09-30 01:28:37
阅读次数:
171