码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
截取字符串
public string SubStr(){ string str="Name,Age,Sex,Birthday"; string[] s=str.split(',');//以逗号为分割 string name=s[0]; string age=s[1]; string sex=s[2]...
分类:其他好文   时间:2015-03-30 11:04:10    阅读次数:105
忘记密码 通过邮件找回
解决用户忘记密码 ,通过发邮件找回@Action("send")public String sendMail() { accountServices.sendForgetMail(email); return SUCCESS;}// 通过数据库查询输入框中email的账号,有了这个账号再...
分类:其他好文   时间:2015-03-30 11:04:06    阅读次数:154
unity 读取文本与写入文本
void writeData(string str,string file) { string parth = Application.dataPath; StreamWriter streamWriter; FileInfo fi = new FileInfo(parth+file); ...
分类:编程语言   时间:2015-03-30 10:49:57    阅读次数:128
Android Bitmap、BitmapDrawable、Stream转换整合
package com.soai.imdemo; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.InputStream; import android.graphics.Bitmap; import android.graphics.BitmapFactory;...
分类:移动开发   时间:2015-03-30 09:37:14    阅读次数:161
For And While
在学习数据结构的过程中,无处不在的循环,本人在知道循环次数的情况下,偏爱for循环,但经过试验发现其实While循环更符合真实的循环过程。 以下是实验的代码: public class ForAndWhile { public static void main(String[] args) { int p = 0; int i; for (i=0; i < 5; i++) {...
分类:其他好文   时间:2015-03-30 09:34:31    阅读次数:80
回文数列2
问题描述   1221是一个非常特殊的数,它从左边读和从右边读是一样的,编程求所有这样的四位十进制数。 输出格式   按从小到大的顺序输出满足条件的四位十进制数。import java.util.*; class Main { public static void main(String[] args) { int a[]= new int[4];...
分类:其他好文   时间:2015-03-30 09:28:58    阅读次数:270
LeetCode OJ Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum window is "BAN...
分类:Windows程序   时间:2015-03-30 09:24:57    阅读次数:149
151. Reverse Words in a String Leetcode Python
Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". Update (2015-02-12): For C programmers: Try to solve it in-place in...
分类:编程语言   时间:2015-03-30 09:24:11    阅读次数:168
Sicily 9456. Clumsy Cows
9456. Clumsy Cows Constraints Time Limit: 1 secs, Memory Limit: 256 MB Description Bessie the cow is trying to type a balanced string of parentheses into her new laptop, but she is s...
分类:其他好文   时间:2015-03-30 09:22:36    阅读次数:179
JAVA学习笔记(四十三)- ThreadLocal
死锁/* * 死锁:多个线程使用不同的锁,每个线程都需要另一个线程持有的锁 * 出现:同步的嵌套 * */ public class Test01 { public static void main(String[] args) { Tom tom = new Tom(); Alice alice = new Alice(); MyT...
分类:编程语言   时间:2015-03-30 09:22:27    阅读次数:212
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!