码迷,mamicode.com
首页 >  
搜索关键字:example 复杂条件查询    ( 17809个结果
Spring-boot JDBC with multiple DataSources sample
Spring-Boot's auto-configurer seems good for simple applications. For example it automatically creates DataSource and JdbcTemplate, when you need to c...
分类:数据库   时间:2014-07-14 09:39:24    阅读次数:442
LeetCode——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","...
分类:其他好文   时间:2014-07-12 23:21:30    阅读次数:215
(Android review)XML的解析与序列化
这篇博客主要用来介绍对XML文件的操作:解析与生成。Android手机内部的解析就是pull解析官网:http://xmlpull.org/所谓的解析,我们可以理解为:利用XML文件的内容来生成一个对象导出生成的xml文件后不要对其格式化,否则会出异常1、MainActivitypackage com.example.xmlparsertest1; import android.os.Bundl...
分类:移动开发   时间:2014-07-12 23:12:23    阅读次数:350
(Android review)SQLite
其实,这一部分,总的来说,主要写DBOpenHelper类和PersonDao类即可。。。。其中DBOpenHelper主要封装了数据库的创建、表的创建与修改。。而PersonDao主要封装对表的DAO操作。。。。1、DBOpenHelperpackage com.example.sqlitetest; import android.content.Context; import android...
分类:移动开发   时间:2014-07-12 23:04:02    阅读次数:267
Android开发----------- 手电筒改进版本
在之前的基础上 在 res 文件夹下面: 添加一个 drawable/local_me.xml localme_cml 主程序: package com.example.handlightacti...
分类:移动开发   时间:2014-07-12 21:15:14    阅读次数:267
Leetcode:Swap Nodes in Pairs 单链表相邻两节点逆置
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space. Y...
分类:其他好文   时间:2014-07-12 20:39:17    阅读次数:225
使用CXF创建REST WEBSERVICE
简单小结下CXF跟REST搭配webservice的做法,直接举代码为例子: 1 order.java   package com.example.rest; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement(name = "Order") public class Order {   ...
分类:Web程序   时间:2014-07-12 19:51:13    阅读次数:279
Add Binary
Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". public class Solution { public String addBinary(String a, String b) { ...
分类:其他好文   时间:2014-07-12 19:42:26    阅读次数:168
(Android review)ListView的基本使用
1、MainActivitypackage com.example.sqlitetest; import java.util.List; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.view.Vi...
分类:移动开发   时间:2014-07-12 18:59:01    阅读次数:301
Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: "((()))", "(()())", "(())()", "()(())", "()()...
分类:其他好文   时间:2014-07-12 17:37:13    阅读次数:139
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!