实例代码:
(new OnHttpListener() {
@Override
public void onStart() {
// TODO Auto-generated method stub
super.onStart();
}
@Override
public void onProgress(int mProgress, Strin...
分类:
移动开发 时间:
2015-05-19 14:44:33
阅读次数:
142
1、
TextView tv = (TextView) findViewById(R.id.tv);
tv.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
//...
分类:
移动开发 时间:
2015-05-18 23:14:12
阅读次数:
309
nginx-V可以查看原来编译时都带了哪些参数原来的参数:--prefix=/usr/local/nginx添加的参数:--with-http_stub_status_module--with-http_ssl_module--with-http_realip_module步骤如下:
1.使用参数重新配置:
./configure--prefix=/usr/local/nginx-user=nobody-group=nobody-..
分类:
其他好文 时间:
2015-05-17 02:10:57
阅读次数:
209
需求就是这样,显示一周的日历。
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
String number[] = new String[7];
Calendar calendar = Calendar.getIn...
分类:
编程语言 时间:
2015-05-14 12:04:32
阅读次数:
168
public class ArraySort { public static void main(String[] args) { // TODO Auto-generated method stub int sortNumber = 5; int s...
分类:
编程语言 时间:
2015-05-12 13:12:21
阅读次数:
167
package?sushu;
public?class?main2?{
?public?static?void?main(String[]?args)?{
??//?TODO?Auto-generated?method?stub
boolean[]?data?=?new?boolean[100];
for(int?i=2;?i<100;i++...
分类:
其他好文 时间:
2015-05-10 15:50:20
阅读次数:
124
多态简介多态性就是在运行期间决定调用哪个方法。
例如:下面这个例子就是
本来p是Person类型但是调用他的say方法是却输出的Student中的方法
这就是运行时决定调用哪个方法称为多态public static void main(String[] args) {
// TODO Auto-generated method stub
Person p = n...
分类:
编程语言 时间:
2015-05-10 15:44:29
阅读次数:
139
package com.io;public class Encodedemo { public static void main(String[] args)throws Exception{ // TODO Auto-generated method stub S...
分类:
编程语言 时间:
2015-05-09 21:53:03
阅读次数:
117
public class primeNum { public static void main(String[] args) { // TODO Auto-generated method stub int N =100; boolean[] a=new boolean[N+1]...
分类:
编程语言 时间:
2015-05-07 07:33:01
阅读次数:
133
org.springframework.remoting.RemoteLookupFailureException: Lookup of RMI stub failed; nested exception is java.rmi.UnmarshalException: error unmarshal...
分类:
移动开发 时间:
2015-05-05 19:29:31
阅读次数:
256