摘要: package test;import java.util.regex.Matcher;import java.util.regex.Pattern;public class RegUtil { /** * 方式一:基本正则表达式实现 * @param str * @param reg * @return */ public static boolean matchMatcher(St... 阅读全文
posted @ 2012-03-30 23:10 ifeixiang 阅读(1757) 评论(0) 推荐(0) 编辑
摘要: 今天遇到的问题:写WIFI应用的时候看到Android官方开发文档上写着Context.getSystemService(Context.WIFI_SERVICE).以为直接可以用,可是总是提示Cannot make a static reference to the non-static method getSystemService(String) from the type Context , 搞得我甚是郁闷,原来是这个Context没有实例对象,我测试的时候是这样用的:public void connect(){ WifiManager wifiManager = Con... 阅读全文
posted @ 2012-03-30 02:52 ifeixiang 阅读(626) 评论(0) 推荐(0) 编辑