码迷,mamicode.com
首页 >  
搜索关键字:string 源码 原理    ( 199976个结果
java报表导出
在项目中一般导出报表用poi,但是如果你不想用框架就用简单的jsp也可以实现报表导出。而且实现起来还特别简单。先看一下效果截图: 点击导出后的效果截图: 具体实现: 第一:在页面的列表页面中就是普通的iterator源码如下: 序号 ...
分类:编程语言   时间:2014-04-29 13:48:21    阅读次数:436
Java 正确的做字符串编码转换
字符串的内部表示? 字符串在java中统一用unicode表示( 即utf-16 LE) ,  对于 String s = "你好哦!"; 如果源码文件是GBK编码, 操作系统(windows)默认的环境编码为GBK,那么编译时,  JVM将 按照GBK编码将字节数组解析成字符,然后将字符转换为unicode格式的字节数组,作为内部存储。 当打印这个字符串时,JVM...
分类:编程语言   时间:2014-04-29 13:41:21    阅读次数:333
Android 手电筒源码
最近由于公司需要,做了一个手电筒,其实手电筒原理很简单,就是调用照相机的闪光灯,控制闪光灯的开关,就可以实现手电筒的效果, 强调一下,代码中一定要注意在结束的时候对闪光灯进行释放,否则就会导致使用照相机的时候出现——无法连接到相机  这个问题 手电筒APK下载地址:点击打开下载链接 手电筒项目源码下载:点击打开下载链接 主要代码如下: package com.techainsh.fla...
分类:移动开发   时间:2014-04-29 13:37:22    阅读次数:473
jsp中验证用户是否以post方式提交
在项目中有时需要验证用户是否以post方式提交。下面是验证源码: public boolean checkMethod(String method) { if (request.getMethod().equalsIgnoreCase(method)) { return true; } else { ...
分类:Web程序   时间:2014-04-29 13:34:20    阅读次数:350
STL 之 map 源码剖析
/* * * Copyright (c) 1994 * Hewlett-Packard Company * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, ...
分类:其他好文   时间:2014-04-29 13:28:21    阅读次数:398
hdu 1047 Integer Inquiry(高精度数)
hdu 1047 高精度加法模板(用 string写的)...
分类:其他好文   时间:2014-04-29 13:28:21    阅读次数:236
leetcode day6 -- String to Integer (atoi) && Best Time to Buy and Sell Stock I II III
1、 ?? String to Integer (atoi) Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yours...
分类:其他好文   时间:2014-04-29 13:22:22    阅读次数:341
Linq To Entity 多表联合查询
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LinqToEntity { class Program { static void Main(string[] args) { //...
分类:其他好文   时间:2014-04-29 13:16:21    阅读次数:574
STL 之 multimap 源码剖析
/* * * Copyright (c) 1994 * Hewlett-Packard Company * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, ...
分类:其他好文   时间:2014-04-29 13:13:21    阅读次数:309
Leetcode:Add Binary 二进制相加
Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 思路同十进制的大数相加。代码如下: class Solution { public: string addBinary(string a, str...
分类:其他好文   时间:2014-04-29 13:12:20    阅读次数:328
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!