码迷,mamicode.com
首页 >  
搜索关键字:小代码 new image    ( 122652个结果
poj1026
CipherTime Limit:1000MSMemory Limit:10000KTotal Submissions:18970Accepted:5067DescriptionBob and Alice started to use a brand-new encoding scheme. Sur...
分类:其他好文   时间:2014-05-12 12:18:48    阅读次数:371
String和StringBuffer
已知在Java中,boolean、byte、short、int、long、char、float、double这八种是基本数据类型,其余的都是引用类型,比如String、数组、接口、对象等。 当我们声明一个引用类型变量时,系统只为该变量分配了引用空间,并未创建一个具体的对象; 当用new为对象...
分类:其他好文   时间:2014-05-12 11:58:21    阅读次数:342
thinking in java 读书笔记 --- overriding private method
一个对象可以被用作它自身的类型或者是它的基类类型。当用作它的基类类型时叫做upcasting,如下所示BaseClass ref = new DerivedClass() //upcasting当执行ref.method 时,程序会先到DerivedClass中去寻找method,当找到时就执行,找...
分类:编程语言   时间:2014-05-12 11:56:15    阅读次数:379
路径,通过navigation可以查看 *.class文件
?.class文件内的代码所在的文件的路径默认 1 举例1:读取项目根目录下的数据。 2 private static void readRoot() throws FileNotFoundException, IOException { 3 BufferedReader br = new ...
分类:其他好文   时间:2014-05-12 11:13:12    阅读次数:283
PHP中使用Ajax
在PHP中使用Ajax来获取数据库中的数据,从而达到不刷新页面就可以获取。首先在JS中定义变量如:var xmlHttp;function getXmlHttp(){ if(window.ActiveXObject){ xmlHttp = new ActiveXObject("M...
分类:Web程序   时间:2014-05-12 11:08:04    阅读次数:324
Distinct Subsequences
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:其他好文   时间:2014-05-10 19:10:58    阅读次数:389
Intent Flag学习笔记
Intent中有显示Intent和隐式Intent,显示Intent一般用于程序内部并且明确Activity的名字,启动时一般是intent = new Intent(上下文,Activity名字.class);隐式Intent一般用于不同应用程序的交互。开发中经常用到了显示Intent,而In.....
分类:其他好文   时间:2014-05-10 18:47:50    阅读次数:296
Leetcode: Valid Sudoku
犯了很多细节上的错误,比如忽视了“-”的存在,正是因为有“-”的存在,所以不能用if (rows.size() == i)来判断rows里面是否已经存某一行,如果不存在再row = new ArrayList();row.add(board[i][j]);rows.add(row);来添加新的一行。...
分类:其他好文   时间:2014-05-10 09:06:35    阅读次数:341
Eclipse 环境下安装PhoneGap开发插件
phoneGap开发跨所有移动平台软件已经成为未来移动终端开发的总趋势,如何在大家所熟悉的Eclipse IDE中快速安装PhoneGap开发插件,介绍如下:点击help——>install new software——>add连接:http://svn.codespot.com/a/eclipse...
分类:系统相关   时间:2014-05-10 06:59:12    阅读次数:420
创建 XMLHttpRequest 对象
创建 XMLHttpRequest 对象的语法:variable=new XMLHttpRequest();为了应对所有的现代浏览器,包括 IE5 和 IE6,请检查浏览器是否支持 XMLHttpRequest 对象。如果支持,则创建 XMLHttpRequest 对象。如果不支持,则创建 Acti...
分类:其他好文   时间:2014-05-10 06:56:16    阅读次数:243
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!