1.用C实现数字逆转,用递归实现,很简单。package 京东;public class Main { private static int a=0; public static void fun(int m) { if(m!=0) { ...
分类:
编程语言 时间:
2014-10-11 22:16:46
阅读次数:
204
类图
/**
* 抽象责任
* @author stone
*
*/
public abstract class IFilter {
private IFilter successor;
public IFilter getSuccessor() {
return successor;
}
public void setSuccessor(IFilter succ...
分类:
编程语言 时间:
2014-10-11 22:06:46
阅读次数:
248
using UnityEngine;using System.Collections;public class CarGUI : MonoBehaviour{ private const float FPS_UPDATE_INTERVAL = 0.5f; private float fp...
分类:
其他好文 时间:
2014-10-11 19:28:16
阅读次数:
236
方法一: 此方法会由Camera直接产生照片回传给应用程序,但是返回的是压缩图片,显示不清晰 /**???启动Camera?*/
private?void?intentCamera(){
????try?{
?????????Intent?cameraIntent?=...
分类:
移动开发 时间:
2014-10-11 19:06:36
阅读次数:
155
1 #include "stdafx.h" 2 #include "iostream" 3 4 using namespace std; 5 6 class stu 7 { 8 private: 9 int Id;10 int Age;11 int Tall;12 ...
分类:
其他好文 时间:
2014-10-11 19:06:16
阅读次数:
164
效果图如上。
首先先实现循环:
public class MyAdapter extends PagerAdapter {
/**
* 装ImageView数组
*/
private ImageView[] mImageViews;
/**
* 图片资源id
*/
private HashMap mChildrenViews = new Lin...
分类:
其他好文 时间:
2014-10-11 18:54:05
阅读次数:
216
action中:设置属性并增加get,set方法,给属性赋值后(如:private String name; public String getName() { return name; } public void setName(String name) { this.name = name;.....
分类:
其他好文 时间:
2014-10-11 16:51:35
阅读次数:
237
1. 简述 private、 protected、 public、 internal 修饰符的访问权限。答 . private : 私有成员, 在类的内部才可以访问。protected : 保护成员,该类内部和继承类中可以访问。public : 公共成员,完全公开,没有访问限制。internal: ...
分类:
Web程序 时间:
2014-10-11 16:35:45
阅读次数:
328
今天主要研究一下两个功能
(1)双击返回键退出程序
(2)接近完美地退出程序
(1)
在很多应用程序里都有一个功能,就是点击返回键,之后提示你再点击返回键就退出程序。之前一直很好奇这是怎么实现的,今天正好把开源中国安卓客户端源码扒下来了,所以就在这里研究一下这个很简单的功能。
public class DoubleClickExitHelper {
private fin...
分类:
移动开发 时间:
2014-10-11 16:32:35
阅读次数:
210
google 网站打不开,总是提示Your connection is not private等信息,针对chrome可以通过以下方式解决:打开链接chrome://flags.找到quic相关的两项,设置为启动,即可。2、针对ubuntu下谷歌浏览器flash plugin安装现在adobe fl...
分类:
Web程序 时间:
2014-10-11 15:13:45
阅读次数:
3905