码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
switch学习笔记
classTestSwitch3 { publicstaticvoidmain(String[]args) { Stringseason="SPRING"; switch(season){ case"SPRING": System.out.println("春天"); break; case"SUMMER": System.out.println("夏天"); break; case"AUTUMN": System.out.println("..
分类:其他好文   时间:2015-01-07 19:06:25    阅读次数:151
switch 学习笔记
}classTestSwitch5 { publicstaticvoidmain(String[]args) { intscore=57; if(score>=60){ System.out.println("及格"); }else{ System.out.println("不及格"); } switch(score/10){ case10: System.out.println("及格"); break; cas..
分类:其他好文   时间:2015-01-07 19:06:04    阅读次数:133
switch判断季节 学习笔记
classTestSwitch6 { publicstaticvoidmain(String[]args) { intseason=7; switch(season){ case1: case2: case3: System.out.println("春季"); break; case4: case5: case6: System.out.println("夏季"); break; case7: case8: ..
分类:其他好文   时间:2015-01-07 19:06:00    阅读次数:158
[LeetCode]126 Word Ladder II
https://oj.leetcode.com/problems/word-ladder-ii/http://blog.csdn.net/linhuanmars/article/details/23071455publicclassSolution{ publicList<List<String>>findLadders(Stringstart,Stringend,Set<String>dict) { List<List<String>>toRetu..
分类:其他好文   时间:2015-01-07 19:05:33    阅读次数:201
Java-Palindrome Partitioning
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s = "aab", Return [ ["aa","b"]...
分类:编程语言   时间:2015-01-07 18:54:40    阅读次数:134
The operation on charactor string to compress the same alphabets
一个字符串压缩程序,将字符串中连续出席的重复字母进行压缩,并输出压缩后的字符串...
分类:其他好文   时间:2015-01-07 18:49:29    阅读次数:114
JDBC编程小结
(1) JDBC API调用流程:1. 加载驱动String driveName = "com.mysql.jdbc.Driver";  // mysqlClass.forName(driveName);2. 利用 DriverManager 获取 Connection对象(数据库连接对象,代表一个物理连接)Connection conn = DriverManager.getConnection...
分类:数据库   时间:2015-01-07 18:48:57    阅读次数:200
Entity Framework,TransactionScope 混合使用的问题讨论
using (var ts = new TransactionScope()){ string connStr = "Data Source=.;Initial Catalog=Test;Integrated Security=true;"; using (SqlConnection c...
分类:其他好文   时间:2015-01-07 18:43:42    阅读次数:160
java:list排序
第一种方法:就是list中对象(bean文件)实现Comparable接口,代码如下:package com.mapred.entity;public class Bar implements Comparable{ private String id; private String hexVal....
分类:编程语言   时间:2015-01-07 18:42:49    阅读次数:200
从简单类型到复杂类型的参数传递用例,以及传递简单string类型的解决办法
一,简单类型的传值比如 public Users Get(int id) ,它可以使用两种方式获取:api/default/5$.get("/api/default",{id:90}, function (data) {/* 处理逻辑 */});前者不需要注明参数名,后者适用于存在多个简单参数的情况...
分类:其他好文   时间:2015-01-07 18:36:27    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!