码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
JAVA (1)–第一个GUI程序 添加标题 关闭窗口 屏幕位置 导入图标
import java.awt.*; // 可以改成 import javax.swing.*; public class FirstFrame { public static void main( String[] args ) { Frame f ...
分类:编程语言   时间:2015-06-19 13:27:25    阅读次数:183
计算从今天起,100天后是几月几号
import?java.util.*; import?java.text.*; public?class?Today?{ ????public?static?void?main(String[]?args)?{ ???//创建格式日期对象 ????SimpleDateFormat?format?=?new?SimpleDat...
分类:其他好文   时间:2015-06-19 12:01:39    阅读次数:690
Volley用法(官网)
准备工作:从官网上下载库文件,如果登陆不了,可以从这里下载集成好的.jar。下载之后把它作为你项目的支持库。发送一个简单的请求:final TextView mTextView = (TextView) findViewById(R.id.text); ...// 实例化请求队列 RequestQueue queue = Volley.newRequestQueue(this); String ur...
分类:其他好文   时间:2015-06-19 12:00:42    阅读次数:259
Codeforces Round #307 (Div. 2) B. ZgukistringZ
Professor GukiZ doesn't accept string as they are. He likes to swap some letters in string to obtain a new one. GukiZ has strings a, b, and c. He wants to obtain string k by swapping some lette...
分类:其他好文   时间:2015-06-19 12:00:04    阅读次数:149
leetcode_Word Break
描述: Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For example, given s = “leetcode”, dict = [“lee...
分类:其他好文   时间:2015-06-19 11:57:35    阅读次数:111
Struts2之访问和添加request、session、application属性
Struts2中访问和添加request、session、application属性 public String execute() {// 如果仅仅往这三个范围放入属性,建议使用这种方法 ActionContext actionContext = ActionContext.getContext(); // 往ServletContext里放application actionC...
分类:移动开发   时间:2015-06-19 11:50:05    阅读次数:152
java中随机生成随机数及不重复的随机数字
Java中产生随机数 1 . 调用java.lang下面Math类中的random()方法产生随机数           public class MyRandom {                  public static void main(String[] args) {                           int  radom = (int)(Ma...
分类:编程语言   时间:2015-06-19 10:40:59    阅读次数:293
黑马程序员——java——集合 Vcetor 基本方法演示
集合   Vcetor  基本方法演示 import java.util.Enumeration; import java.util.Iterator; import java.util.Vector; public class VectorDemos { public static void main(String[] args) { // 新建一个容...
分类:编程语言   时间:2015-06-19 10:40:31    阅读次数:138
java 程序语言中的LinkedList 集合基本方法演示
java 程序语言中的LinkedList 集合基本方法演示 import java.util.Iterator; import java.util.LinkedList; public class LinkedListDemos { public static void main(String[] args) { // 新建一个容器 LinkedList ...
分类:编程语言   时间:2015-06-19 10:39:16    阅读次数:126
黑马程序员——java基础 ArrayList集合基本方法演示
java基础 ArrayList集合基本方法演示 import java.util.ArrayList; import java.util.Iterator; public class ArrayListDemos { public static void main(String[] args) { // 创建一个新的容器 ArrayList al ...
分类:编程语言   时间:2015-06-19 10:37:59    阅读次数:121
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!