package javafirst;//包名public class JavaFirstDay { //基本数据类型的练习 public static void main(String[] args) { byte byteOne = 125; short shortOne = 12345; ...
分类:
编程语言 时间:
2015-09-28 23:33:38
阅读次数:
268
1 public class HelloJava{2 2 public static void main(String[]args){3 3 System.out.println("Hello Java");4 4 }5 5 }HelloJava
分类:
编程语言 时间:
2015-09-28 22:17:29
阅读次数:
173
首先由一下三段代码,请给出打印结果:测试类:1 public class Test {2 public static void main(String[] args) {3 Base p = new Sub("SubClass");4 p.printA();5...
分类:
其他好文 时间:
2015-09-28 20:55:20
阅读次数:
152
1 public class 各种数据类型 { 2 static final int itime = 24; 3 public static void main(String[] args) { 4 byte bvolume = 64; 5 short ...
分类:
其他好文 时间:
2015-09-28 20:53:02
阅读次数:
120
private void btnopenURL_Click(object sender, EventArgs e) { string strUrl = txtopenURL.Text.Trim(); // webBrowser1.Navigate(strUrl); ...
分类:
Web程序 时间:
2015-09-28 20:51:30
阅读次数:
143
String byteToHexStr(TBytes ab){ String str; for (int i = 0; i < 16; i++) { str += IntToHex(sbyte[i], 2); } return str;}void HexToBy...
分类:
其他好文 时间:
2015-09-28 20:49:08
阅读次数:
143
搜索框可以用UISearchBar,并且可以设置代理UISearchBarDelegate。 1 -(void)addSearchBar{ 2 CGRect searchBarRect = CGRectMake(0, 0, self.view.frame.size.width, 44); 3...
分类:
移动开发 时间:
2015-09-28 20:44:21
阅读次数:
310
1.首先通过按键创建子线程:创建子线程,子线程调用changeText方法。1 private void btnOK_Click(object sender, EventArgs e)2 {3 Thread th = new Thread(changeText);...
分类:
编程语言 时间:
2015-09-28 18:57:25
阅读次数:
189
写在这里便于以后查看。Android中弹出对话框的关键代码: 1 btn01.setOnClickListener(new OnClickListener() { 2 3 @Override 4 public void onC...
分类:
移动开发 时间:
2015-09-28 16:21:19
阅读次数:
194
1. 案例示例: 1 package com.himi.trycatch; 2 3 public class ExceptionDemo { 4 5 public static void main(String[] args) { 6 int a = 2; 7 ...
分类:
编程语言 时间:
2015-09-28 16:20:15
阅读次数:
230