码迷,mamicode.com
首页 >  
搜索关键字:empty    ( 6963个结果
PMD Tutorial
In this tutorial I'll introduce another tool to help find possible problems in your code, PMD. It will check for empty blocks, unused variables or par...
分类:其他好文   时间:2015-05-21 22:11:11    阅读次数:121
SSH配置无密码登陆
步骤1: 用 ssh-key-gen 在本地主机上创建公钥和密钥 ligh@local-host$ ssh-keygen -t ?rsa Enter file in which to save the key (/home/jsmith/.ssh/id_rsa):[Enter key] Enter passphrase (empty for no passp...
分类:其他好文   时间:2015-05-21 20:00:41    阅读次数:169
判断是否输入全角数字,解决部分客户银行账号输入的问题
修改js脚本文件:在函数verifyNodeDataType里增加:if(Node.getAttribute("datatype")==‘english‘){ if(!issbccase(v)){ if(Node.getAttribute(‘name‘)!=null){ if(v.toString().trim()==‘‘&&Node.getAttribute(‘name‘)==‘empty‘) returntrue; } if(Node.getAttribut..
分类:其他好文   时间:2015-05-21 12:56:16    阅读次数:192
string、Empty和null三者的区别
这是一个及其常见的问题,网上已经有关于这个问题的很多讨论。但是我觉得都是不求甚解,有一些还是在误导别人。下面我来说下我对这三者的理解,如有错误的地方请大家及时指正。 一:""与string.Empty我认为是一样的。网上有一篇被转载了几十遍的文章是这样说的string.Empty 不分配存储空间,....
分类:其他好文   时间:2015-05-21 12:39:04    阅读次数:93
栈在Java类库中的实现
栈是一种后进先出的数据结构。在它之上,主要有三种操作: (1)判断栈是否为空——empty(); (2)在栈顶添加一个元素——push(E); (3)删除并返回栈顶元素——pop()。 在Java类库中,Stack类实现了栈,它继承自Vector类: public class Stack extends Vector于是,Stack用数组保存元素: protected Object[]...
分类:编程语言   时间:2015-05-20 13:20:16    阅读次数:199
Java for LeetCode 087 Scramble String
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representatio...
分类:编程语言   时间:2015-05-20 01:57:32    阅读次数:192
ThinkPHP3.2.2 无刷新上传插件uploadify 使用
一. 在控制器中写一个方法,用于上传 public function upload(){ if (!empty($_FILES)) { //图片上传设置 $config = array( 'maxSize' ...
分类:Web程序   时间:2015-05-19 22:22:29    阅读次数:114
LeetCode 165: Compare Version Numbers
Compare two version numbers version1 and version2. If version1 > version2 return 1, if version1 version2 return -1, otherwise return 0. You may assume that the version strings are non-empty and cont...
分类:其他好文   时间:2015-05-19 14:53:41    阅读次数:133
LeetCode 37 Sudoku Solver (C,C++,Java,Python)
Problem: Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character '.'. You may assume that there will be only one unique solution. ...
分类:编程语言   时间:2015-05-19 14:49:38    阅读次数:210
LeetCode 36 Valid Sudoku (C,C++,Java,Python)
Problem: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled with the character '.'. A p...
分类:编程语言   时间:2015-05-19 00:53:17    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!