码迷,mamicode.com
首页 >  
搜索关键字:put    ( 16494个结果
Android HashMap按照键值排序的两种方法
有如下一个 Map 对象:HashMap map = new HashMap();map.put(3,"A");map.put(2,"B");map.put(1,"C");键值排序第一种方法:Object[] key = map.keySet().toArray(); Arrays.sort(k.....
分类:移动开发   时间:2014-09-04 11:43:19    阅读次数:250
@PathVariable的作用
@PathVariable是用来对指定请求的URL路径里面的变量  eg: Java代码  @RequestMapping(value = "form/{id}/apply", method = {RequestMethod.PUT, RequestMethod.POST})  {id}在这个请求的URL里就是个变量,可以使用@PathVariable来获取  @PathVariabl...
分类:其他好文   时间:2014-09-03 21:19:47    阅读次数:331
PHP 写文件的例子
$contents = "All the content"; $dir = 'c:'; $file_path = $dir . "\\content.txt"; if(is_writable($file_path)) { file_put_contents($file_path , $con...
分类:Web程序   时间:2014-09-03 12:50:26    阅读次数:163
java 生成json对象
1.JSONObject jsonObject = new JSONObject();jsonObject.put("a", "1");jsonObject.put("b", "2");jsonObject.put("c", "3");System.out.println(jsonObject);{...
分类:编程语言   时间:2014-09-03 12:46:16    阅读次数:353
也许是被误解的浏览器资源加载优化
几乎每一个前端程序员都知道应该把script标签放在页面底部。关于这个经典的论述可以追溯到Nicholas的 High Performance Javasript 这本书的第一章Loading and Execution中,他之所以建议这么做是因为:Put all ...
分类:其他好文   时间:2014-09-03 09:29:06    阅读次数:463
(转)Oracle执行字符串
declarev_out varchar2(50);begin execute immediate 'select p_guid from c_itcomp where rownum = 1 ' into v_out; dbms_output.put_line(v_ou...
分类:数据库   时间:2014-09-02 15:46:34    阅读次数:226
PL/SQL个人学习笔记(二)
declare cursor s is select version from city_server t; s_ city_server.version%type;begin open s; fetch s into s_; if s_>2 then DBMS_OUTPUT.put_line(s_); end if; close s;end;...
分类:数据库   时间:2014-09-02 10:35:24    阅读次数:200
tomcat的JK和JK2
如今又開始配置JK2,想将Tomcat和apache,但Tomcat上已经不支持对于JK2的开发了,详情请看:Apache-Tomcat mod_jk2 aka JK215 November - JK2 is officially unsupportedJK2 has been put in mai...
分类:其他好文   时间:2014-09-01 22:26:53    阅读次数:306
istringstream字符串流,实现类似字符串截取的功能,字符串流中的put,str()将流转换成为字符串string
?? 1. istringstream字符串流 #include #include #include   using namespace std;   struct MyStruct {     string str1, str2, str3;     double db;     int n...
分类:其他好文   时间:2014-08-30 23:11:28    阅读次数:478
HDU 1242 Rescue(求最短时间救出同伴,BFS+DP)
Rescue Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u Description Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described a...
分类:其他好文   时间:2014-08-29 18:25:48    阅读次数:199
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!