8243 8243 [java] view plain copy public class MathDemo { public static void main(String args[]){ /** * abs求绝对值 */ System.out.println(Math.abs(-10.4)); ...
分类:
编程语言 时间:
2017-11-18 17:34:48
阅读次数:
197
Given an array of integers nums, write a method that returns the "pivot" index of this array.We define the pivot index as the index where the sum of t... ...
分类:
其他好文 时间:
2017-11-16 23:52:47
阅读次数:
296
用户没登陆:购物车添加到Cookie中用户登陆: 保存购物车到Redis中 (不用数据库)整体的思路图解:接下来就是代码实例来实现 购物车的功能了:首先我们看下购物车和购物项两个JavaBean的设计:购物车: buyerCart.java 这里使用了@JsonIgonre注解是因为下面需要将Buy ...
分类:
其他好文 时间:
2017-11-16 18:45:13
阅读次数:
120
本着“不写单元测试的程序员不是好程序员”原则,我在坚持写着单元测试,不敢说所有的Java web应用都基于Spring,但至少一半以上都是基于Spring的。 发现通过Spring进行bean管理后,做测试会有各种不足, 例如,很多人做单元测试的时候,还要在Before方法中,初始化Spring容器 ...
分类:
编程语言 时间:
2017-11-16 17:21:19
阅读次数:
146
原文地址:http://blog.csdn.net/cashey1991/article/details/7942809 getopt和getopt_long函数 平时在写程序时常常需要对命令行参数进行处理,当命令行参数个数较多时,如果按照顺序一个一个定义参数含义很容易造成混乱,而且如果程序只按顺序 ...
分类:
其他好文 时间:
2017-11-15 22:07:27
阅读次数:
233
很多时候需要网络抓包分析,在iPhone上抓包稍有不同,下面介绍三种常用的方式。分析工具以wireshark为例。 一、最简单的方式:用PC作为热点,在PC上抓包 优点:简单; 缺点:不能抓真机2G/3G/4G网络数据。 步骤如下: PC接上有线; PC用Wi-Fi方式共享网络,即PC作为一个热点; ...
分类:
其他好文 时间:
2017-11-15 21:52:40
阅读次数:
232
Qt:http://download.qt.io/archive/ MinGW:https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-build ...
分类:
其他好文 时间:
2017-11-13 21:28:35
阅读次数:
172
今天新学了一个数组 1.array_multisort();//用于多维数组,根据单个单元进行排序 <?php$data[] = array('volume' => 67, 'edition' => 2);$data[] = array('volume' => 86, 'edition' => 1) ...
分类:
编程语言 时间:
2017-11-13 13:52:52
阅读次数:
189
Windows(27) Command(2) AD(9) 未分配的博文(0) 微信关注 IT168企业级官微 微信号:IT168qiye 系统架构师大会 微信号:SACC2013 订阅 推荐博文 ·MySQL MEMROY引擎及性能比对... ·rman注册归档日志 ·如何彻底删除ASM磁盘组... ...
分类:
数据库 时间:
2017-11-13 13:39:40
阅读次数:
222
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> a{ color: red; } </style> </head> <body> <h1>全部歌手</h1> <p> ...
分类:
其他好文 时间:
2017-11-12 16:28:49
阅读次数:
313