码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Servlet--HttpServletRequest接口,HttpServletResponse接口
HttpServletRequest接口 定义 public interface HttpServletRequest extends ServletRequest; 用来处理一个对 Servlet 的 HTTP 格式的请求信息。 方法 1、getAuthType public String getAuthType(); 返回这个请求的身份验证模式。 2、getCook...
分类:Web程序   时间:2015-06-15 16:31:00    阅读次数:106
[LeetCode] Basic Calculator
Basic Calculator Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or minus sign -, non-nega...
分类:其他好文   时间:2015-06-15 16:26:59    阅读次数:151
leetcode | Add Binary
Add Binary: https://leetcode.com/problems/add-binary/Given two binary strings, return their sum (also a binary string).For example, a = “11” b = “1” Return “100”.本题关键点在于: 1. 从后往前计算,但是结果字符串应该是从最前插入每...
分类:其他好文   时间:2015-06-15 16:25:15    阅读次数:113
JS知识点
1JavaScript是一种基于对象和事件驱动的脚本语言,它提供了一些专有的类、对象及函数基本数据类型JavaScript提供了4种基本的数据类型用来处理数字和文字 Number、String、Null、Boolean变量语法:var变量名=值;变量命名规范:1)变量名由字母、数字、下划线和$组成2...
分类:Web程序   时间:2015-06-15 16:24:00    阅读次数:170
android 的时间日期函数
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date curDate = new Date(System.currentTimeMillis()); String date = formatter...
分类:移动开发   时间:2015-06-15 16:14:16    阅读次数:130
C#对图片的操作
1、根据图片路径返回字节public static byte[] getImageByte(string imagePath){ FileStream files = new FileStream(imagePath, FileMode.Open); byte[] imgByte = n...
分类:Windows程序   时间:2015-06-15 16:13:06    阅读次数:136
JS类库函数收集中....
实现string的substring方法 方法一:用charAt取出截取部分String.prototype.mysubstring=function(beginIndex,endIndex){ var str=this, newArr=[]; if(!endIndex){...
分类:Web程序   时间:2015-06-15 16:08:33    阅读次数:125
build java文件
在cmd中build java文件的要求如下:1.机器已经正确安装jdk,环境变量亦正确配置2.java文件中没有中文3.java文件中必须有main函数,且main函数为static,且main函数带参"String[]args"形如:publicclassRebuild{publicstatic...
分类:编程语言   时间:2015-06-15 15:55:48    阅读次数:123
线程学习笔记
被线程弄迷糊了,自己做个笔记,我想让主线程不受影响的情况下,在新开的线程中执行,并给返回结果,结果不是很满意,主线程还是不动。以后再解决 //定义方法,带参数的 private string ThreadRun(string p_num) { ...
分类:编程语言   时间:2015-06-15 15:55:41    阅读次数:127
uva 10391复合词compound words(Trie+set)
给定一个词典,要求求出其中所有的复合词,即恰好有两个单词连接而成的词 trie存储以该单词为前缀的单词数量,然后对于每个单词,看在字典中的以该单词为前缀的单词“减去”原单词剩下的单词是否在字典中,如果是储存这个答案到ans的set中 #include #include #include #include #include #include #include #inc...
分类:其他好文   时间:2015-06-15 14:43:58    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!