码迷,mamicode.com
首页 >  
搜索关键字:public    ( 82854个结果
Android-文件存储-文本存储
[返回目录] 如果要进行文件输入或输出操作,需要进行流的操作 Activity对文件操作的支持 public FileInputStream openFileInput(String name)设置要打开的文件输入流 public FileOutputStream openFileOutput(String name,int mode)设置要打开的文件输出流,指定操作的模式,可以是...
分类:移动开发   时间:2014-08-25 13:27:34    阅读次数:291
动态生成修改aspx文件
using System.IO;using System.Text;/// /// SCPage 的摘要说明 修改 aspx 和aspx.cs文件/// public class SCPage{ public SCPage() { } System.Web.UI.Page p = new Page(...
分类:Web程序   时间:2014-08-25 13:18:34    阅读次数:147
LeetCode--Regular Expression Matching
1 class Solution { 2 public: 3 bool isMatch(const char *s, const char *p) { 4 // Start typing your C/C++ solution below 5 // DO N...
分类:其他好文   时间:2014-08-25 13:16:14    阅读次数:165
[LeetCode] Implement strStr()
Implement strStr().Returns a pointer to the first occurrence of needle in haystack, or null if needle is not part of haystack.class Solution {public: ...
分类:其他好文   时间:2014-08-25 13:11:34    阅读次数:153
判断textView 点击的某一行
判断textView 点击的某一行 ????@Override ????public?boolean?onTouchEvent(MotionEvent?event)?{ ????????switch?(event.getAction())?{ ????????????case?MotionEvent.ACT...
分类:其他好文   时间:2014-08-25 12:02:24    阅读次数:188
json复杂对象处理jsonConfig
?? 我们通常对一个Json串和java对象进行互转时,经常会有选择性的过滤掉一些属性值,而json-lib包中的JsonConfig为我们提供了这种 功能,具体实现方法有以下几种。(1)建立JsonConfig实例,并配置属性排除列表,(2)用属性过滤器,(3)写一个自定义的 JsonBeanProcessor. 1. 实现JSONString接口的方法 public class...
分类:Web程序   时间:2014-08-25 11:59:24    阅读次数:129
Java读取properties文件
1、perm.properties文件的配置 iapp.perm.CAMERA=摄像头 iapp.perm.SMS=短信 2、读取properties配置文件的内容(通过java.lang.Class类的getResourceAsStream(String name) 方法来实现) public class Test { public static void main(Str...
分类:编程语言   时间:2014-08-25 11:54:34    阅读次数:208
XE 安装路径
控件安装的生成的目标文件路径C:\Users\Public\Documents\Embarcadero\Studio\14.0\BPLC:\Users\Public\Documents\Embarcadero\Studio\14.0\DCPC:\Users\Public\Documents\Emba...
分类:其他好文   时间:2014-08-25 11:43:34    阅读次数:130
泛型T的类型获取
T.getClass()或者T.class都是非法的,因为T是泛型变量。由于一个类的类型是什么是在编译期处理的,故不能在运行时直接在Base里得到T的实际类型。/***可以在service层直接调用,也可以在DAO层扩展调用*/public class BaseDaoImpl implements ...
分类:其他好文   时间:2014-08-25 11:32:34    阅读次数:134
Hibernate之SchemaExport+配置文件生成表结构
首先要生成表,得先有实体类,以Person.java为例:/** * * @author Administrator * @hibernate.class table="T_Person" */public class Person { /** * @hibernate.id...
分类:系统相关   时间:2014-08-25 11:21:44    阅读次数:242
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!