码迷,mamicode.com
首页 >  
搜索关键字:new 与malloc的区别    ( 74660个结果
android 背景图片的设置
在java文件中对控件设置背景图片layout.setBackgroundDrawable(getResources().getDrawable(R.drawable.bgimage))在设置中,通过发送广播对整个布局中的背景进行更改。menu_bg1.setOnClickListener(new ...
分类:移动开发   时间:2014-05-27 03:07:20    阅读次数:402
30天轻松学习javaweb_打包web项目成war
jar -cvf news.war news打包成 war 包后复制到webapps下,Tomcat将会解压。
分类:编程语言   时间:2014-05-27 03:03:51    阅读次数:243
Android 常见问题收集 (持续更新)
gridview中设置item的高度。一、BaseAdapter中的getView中设置AbsListView.LayoutParams param = new AbsListView.LayoutParams( android...
分类:移动开发   时间:2014-05-27 02:31:58    阅读次数:280
eclipse 代码区变灰,无法显示代码
法一:点击window->new window,看看新的窗口是否能够显示代码区,可以就把旧的那个窗口关闭,成功法二:http://juhbgf.blog.163.com/blog/static/598317682013455118751/
分类:系统相关   时间:2014-05-27 01:30:57    阅读次数:286
C#获取代码执行时间(精确到毫秒)
private void Time(int i) { Stopwatch sw = new Stopwatch(); sw.Start(); Thread.Sleep(i); s...
分类:其他好文   时间:2014-05-27 01:15:43    阅读次数:342
【Javascript】类
定义一个类来表示2D平面几何中的点。这个类实例化的对象拥有一个名为r()的方法,用来计算该点到原点的距离function Point(x,y){ this.x = x; this.y = y;}var p = new Point(1,1);Point.prototype.r = func...
分类:编程语言   时间:2014-05-24 07:36:10    阅读次数:235
JAVA 处理时间 - java.sql.Date、java.util.Date与数据库中的Date字段的转换方法[转]
1.如何将java.util.Date转化为java.sql.Date? 转化: java.sql.Date sd; java.util.Date ud; //initialize the ud such as ud = new java.util.Date(); sd = ...
分类:数据库   时间:2014-05-24 06:29:26    阅读次数:311
经纬度计算是否在圆形内,是否在矩形内,是否在多边形内方法
class 点面关系{static void Main(string[] args){//Vector2D point1 = new Vector2D(39.909209536859834, 116.3225715637207);//inVector2D point1 = new Vector2D(...
分类:其他好文   时间:2014-05-24 06:26:21    阅读次数:379
Leetcode | Remove Duplicates from Sorted Array I && II
Remove Duplicates from Sorted Array IGiven a sorted array, remove the duplicates in place such that each element appear only once and return the new l...
分类:其他好文   时间:2014-05-19 12:10:41    阅读次数:329
java代理Proxy
首先是静态代理: 1 public class Test1 { 2 3 public static void main(String[] args) { 4 IA a = new APoxy(new A()); 5 a.doJob(); 6 } 7 ...
分类:编程语言   时间:2014-05-19 12:01:39    阅读次数:302
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!