码迷,mamicode.com
首页 >  
搜索关键字:param    ( 11285个结果
JAVA之方法的重写
package com.test;//方法重写(overwrite)public class test3 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method ...
分类:编程语言   时间:2014-10-20 00:42:02    阅读次数:297
JAVA之继承的必要性
//说明继承的必要性package com.test;public class test { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub ...
分类:编程语言   时间:2014-10-20 00:39:36    阅读次数:352
[Android]判断网络连接是否可用
/** * 判断移动网络是否开启 * * @param context * @return */ public static boolean isNetEnabled(Context context) { TelephonyManager tm = (TelephonyManager) context .getSystemService(Context.TELE...
分类:移动开发   时间:2014-10-19 11:35:58    阅读次数:620
leetcode:Single Number【Python版】
1、用双重循环逐个遍历(超时)2、用list B的append和remove函数(超时)3、用dict B(AC) 1 class Solution: 2 # @param A, a list of integer 3 # @return an integer 4 def s...
分类:编程语言   时间:2014-10-19 01:18:21    阅读次数:246
java中synchronized使用方法
synchronized的一个简单样例public class TextThread {/** * @param args */public static void main(String[] args) {// TODO 自己主动生成方法存根 TxtThread tt = new TxtThrea...
分类:编程语言   时间:2014-10-18 16:44:47    阅读次数:291
手闲 用Lua写了个批量修改文件后缀名的小工具
1 --[[-- 2 - renameFilePostfix_: 统一重命名文件的后缀名 3 - @param: param1 - 原文件后缀名 4 - @param: param2 - 目的文件后缀名 5 - @param: param3 - 目的文件前缀名 6 - @pa...
分类:其他好文   时间:2014-10-18 16:41:29    阅读次数:180
javascript 自动绑定JS callback 的方法函数
自己写的一个javascript 智能绑定callback 并且调用执行的函数,主要用于异步请求的 ajax中: /** * @author default7@zbphp.com * @date 2014-10-17 * @description 通过传入的参数获取出函数名称 * @param args ...
分类:编程语言   时间:2014-10-17 20:35:05    阅读次数:226
Android 将时间戳转为代表"距现在多久之前"的字符串
/** * 将时间戳转为代表"距现在多久之前"的字符串 * @param timeStr 时间戳 * @return */ public static String getStandardDate(String timeStr) { ...
分类:移动开发   时间:2014-10-17 13:27:40    阅读次数:227
身份证验证JS版(转载)
/***代码参考来自:http://www.oschina.net/code/snippet_778481_21907*只验证身份证是否正确,未加上判断性别*@param num 身份证号码*@return boolean true|false*使用,var bools = checkIdentit...
分类:Web程序   时间:2014-10-17 13:23:22    阅读次数:183
HttpURLConnection 发送 文件和字符串信息
以文件的形式传参/** * 通过拼接的方式构造请求内容,实现参数传输以及文件传输 * * @param actionUrl 访问的服务器URL * @param params 普通参数 * @param files 文件参数 * @return * @throws IOException */ p....
分类:Web程序   时间:2014-10-17 11:43:02    阅读次数:236
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!