![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
android_Y
这个作者很懒,什么都没留下…
展开
-
Android可视化环境配置搭建方法
工具个人电脑一台JDK1.6 下载网址: http://java.sun.com/javase/downloads/index.jspEclipse3.4 下载网址:http://www.eclipse.org/downloads/ (下载Eclipse IDE for Java Developers)Android SDK1.5 下载网址: http://developer.原创 2012-05-28 10:49:37 · 717 阅读 · 0 评论 -
eclipse 汉化
打开http://www.eclipse.org/babel/downloads.php根据不同的eclpse版本选择不同的语言包打开eclipse,依次选择菜单栏“Help - Install New Software...”,如图所示,在打开的新窗口中点击“Add”按钮,然后在“location”文本框中输入刚刚复制的网址,点击“OK”按钮即可。选择简体中文选择接受条款原创 2013-04-27 14:59:21 · 1117 阅读 · 0 评论 -
RadioGroup中多个RadioButton被选中的解决方法
如果在Java代码直接设置RadioButton的Checked方法,那么这个RadioButton就永远被选中了。解决方法使用((RadioButton) RadioGroup.getChildAt(0)).setChecked(true);来选中RadioButton原创 2013-08-23 15:46:00 · 9172 阅读 · 0 评论 -
SVN下载,及eclipseSVN插件下载、安装
进入http://tortoisesvn.net/downloads.html下载最新的SVN及语言包然后下载安装。 进入http://subclipse.tigris.org/在左侧选择eclipse选择Download and Install复制最新的地址安装插件原创 2013-04-27 15:23:01 · 1401 阅读 · 0 评论 -
JAVA中的IO
FILE类常量import java.io.*; class hello{ public static void main(String[] args) { System.out.println(File.separator);//输出"/" System.out.println(File.separatorChar + "");//输出原创 2012-05-08 17:19:52 · 711 阅读 · 0 评论 -
代码初级优化
1. 尽量指定类的final修饰符。带有final修饰符的类是不可派生的。如果指定一个类为final, 则该类所有的方法都是final。此举能够使性能平均提高50%。2. 尽量重用对象。特别是String对象的使用中出现字符串连接情况时应用StringBuffer代替。3. 尽量使用局部变量。调用方法时传递的参数以及在调用中创建的临时变量都保存在栈(Stack)中速度快。其他原创 2012-10-18 16:39:46 · 928 阅读 · 0 评论 -
Math
Math 类包含基本的数字操作,如指数、对数、平方根和三角函数。 与 StrictMath 类的某些数值方法不同,并不是 Math 类的所有等效函数的实现都定义为返回逐位相同的结果。这一宽限允许在不要求严格可重复性的地方实现更好的性能。默认情况下,很多 Math 方法仅调用 StrictMath 中的等效方法来完成它们的实现。代码生成器鼓励使用特定于平台的本机库或者在可用的地方使用转载 2012-09-05 17:09:49 · 1145 阅读 · 0 评论 -
java中读取txt文件获得编码格式方法
java中读取txt文件获得编码格式方法 private String codetype(byte[] head) { byte[] codehead = new byte[4]; // 截取数组 System.arraycopy(head, 0, codehead, 0, 4); String code = "";原创 2012-04-28 13:20:09 · 4791 阅读 · 0 评论 -
Android获得时间总结
Java 代码 import java.text.SimpleDateFormat; SimpleDateFormat formatter = new SimpleDateFormat ("yyyy年MM月dd日 HH:mm:ss "); Date curDate = new Date(System.currentTimeMillis());//获取当前时间 String str =原创 2012-05-28 10:59:37 · 722 阅读 · 0 评论 -
java使用正则表达式
String s = "需要匹配的内容";Pattern paternStart = Pattern.compile("正则表达式");Matcher matStart = paternStart.matcher(s);原创 2014-08-02 16:49:12 · 860 阅读 · 2 评论