短路运算符就是我们常用的“&&”、“||”,一般称为“条件操作”。class Logic{public ststic void main(String[] args){int a=1;int b=1;if(a<b && b<a/0){System.out.println("Oh,That's Imp...
分类:
编程语言 时间:
2015-09-29 13:03:03
阅读次数:
161
public class TestActivity extends Activity { ?@Override ?public void onCreate(Bundle savedInstanceState) { ??super.onCreate(savedInstanceState); ??setContentView(R.layout.main); ??String ar...
分类:
移动开发 时间:
2015-09-29 11:42:02
阅读次数:
214
//初始化?pickerView
-(void)initPickerView{
????pickerArray?=?[NSArray?arrayWithObjects:@"顺丰",@"申通",@"韵达",@"圆通",@"天天",@"全峰",@"中通",@"百世汇通",?nil];
????logisticsPicker?=...
分类:
其他好文 时间:
2015-09-29 11:41:26
阅读次数:
163
1.反转2.求和3.反转比较简单,就是要细心#includeusing namespace std;void bigNumAdd(char *a,char *b,char *c){ int len_a=strlen(a),len_b=strlen(b),len_c; int len=(l...
分类:
其他好文 时间:
2015-09-29 11:29:55
阅读次数:
145
#region 导入 /// /// 导入 /// /// /// private void btnImport_Click(object sender, EventArgs e) { ...
-(void)viewDidLayoutSubviews{ if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)]) { [self.tableView setSeparatorInset:UIE...
分类:
其他好文 时间:
2015-09-29 11:14:59
阅读次数:
122
import java.util.Random;import java.util.Scanner;public class caiquan{ public static void main(String[] args) { Random r=new Random(); int diannao=r.n...
分类:
编程语言 时间:
2015-09-29 08:42:57
阅读次数:
286
1.通过继承thread类,覆写run方法来实现多线程。 1 public class Mytest { 2 public static void main(String[] args) { 3 Thread myThread1 = new MyThread1(); 4 ...
分类:
编程语言 时间:
2015-09-29 01:16:40
阅读次数:
306
定义在不暴露集合对象的内部信息的情况下提供一种方法实现快速顺序访问集合中的各个元素。迭代器模式为遍历聚集结构提供改变索引下标,实现元素的访问方式。类图示例代码 1 public interface IIterator 2 { 3 void First(); 4 ...
分类:
其他好文 时间:
2015-09-28 23:50:06
阅读次数:
286
1 package hello; 2 3 public class hello { 4 5 public static void main(String[] args) { 6 7 8 byte b=12; 9 System.out.println(...
分类:
其他好文 时间:
2015-09-28 23:36:13
阅读次数:
200