LinearLayout linearLayout=new LinearLayout(this); linearLayout.setOrientation(LinearLayout.VERTICAL); LinearLayout.LayoutParams param= new Lay...
分类:
其他好文 时间:
2015-11-30 13:04:47
阅读次数:
115
C++Divide-Conquer[71% passed] 1 class Solution { 2 public: 3 /** 4 * @param nums: a list of integers 5 * @return: A integer denote the s...
分类:
其他好文 时间:
2015-11-30 13:01:11
阅读次数:
142
C++dp递推式:dp[i][j] = dp[i-1][j] + dp[i][j-1]初值:dp[i][j] = 1,i=0 or j=0空间优化:省掉一维 1 class Solution { 2 public: 3 /** 4 * @param n, m: positive i...
分类:
其他好文 时间:
2015-11-30 12:57:25
阅读次数:
107
C++ 1 class Solution { 2 public: 3 /** 4 *@param a, b: Two integer 5 *return: An integer 6 */ 7 int bitSwapRequired(int a, int ...
分类:
其他好文 时间:
2015-11-30 11:34:15
阅读次数:
177
/** * 类的说明 * * @author Administrator * */public class Hello { /** * 这是主方法,是程序的入口 * * @param args * 输入参数,字符串类型的数组 *...
分类:
其他好文 时间:
2015-11-29 23:04:26
阅读次数:
148
public class GetPublicKey {
/**
* 获取签名公钥
* @param mContext
* @return
*/
protected static String getSignInfo(Context mContext) {
String signcode = "";...
分类:
移动开发 时间:
2015-11-29 15:05:38
阅读次数:
227
一、批量插入数据示例:添加订单商品表1.模型层的相应代码/** * 添加订单商品表 * @param ordergoods * @return */ public boolean addOrdergood(List ordergoods){ ret...
分类:
其他好文 时间:
2015-11-29 06:27:55
阅读次数:
163
/** * 判断ip是否在一个ip段内 * * @param args */ public static boolean ipExistsInRange(String ip, String ipSection) { ipSection = ipSection.trim...
分类:
其他好文 时间:
2015-11-28 12:04:38
阅读次数:
224
在执行shell脚本的时候,shell将会对脚本中的行进行解释,然后执行;对于一些特殊处理的句子,我们可以使用引号或者反斜线来避免shell解释执行之。如下,当在命令行中输入:echo *child.sh env_variable father.sh param.sh profile.sh 1250...
分类:
系统相关 时间:
2015-11-27 19:19:51
阅读次数:
205
本篇将实现增删改功能,因为查询在上篇已经实现了。1.实现数据的“增”功能:在UserDao.java文件中新增一个方法: /** * 新增一个用户 * @param user */ public void addUser(User user);然后在UserMapper.xml中配置好这个方法...
分类:
其他好文 时间:
2015-11-27 19:17:30
阅读次数:
219