07 2013 档案

摘要:一、获取客户端信息1.建立一个动态web (Dynamic Web project)ServletTest的项目2 在工程.ServletTest中创建一个BookInformationServlet.java的Servlet。package com;import java.io.IOExcepti... 阅读全文
posted @ 2013-07-23 14:13 elite_2012 阅读(269) 评论(0) 推荐(0) 编辑
摘要:public class ArrayOfArraysDemo1 { public static void main(String[] args) { int[][] aMatrix = new int[4][]; //populate matrix for (int i = 0; i < aMatrix.length; i++) { ... 阅读全文
posted @ 2013-07-18 15:11 elite_2012 阅读(391) 评论(0) 推荐(0) 编辑
摘要:public class ArrayOfStringsDemo { public static void main(String[] args) { String[] anArray = { "String One", "String Two", "String Three" }; for (int i = 0; i < anArray.leng... 阅读全文
posted @ 2013-07-18 15:09 elite_2012 阅读(486) 评论(0) 推荐(0) 编辑
摘要:public class ContinueWithLabelDemo { public static void main(String[] args) { String searchMe = "Look for a substring in me"; String substring = "sub"; boolean foun... 阅读全文
posted @ 2013-07-18 15:08 elite_2012 阅读(187) 评论(0) 推荐(0) 编辑
摘要:public class BreakDemo { public static void main(String[] args) { int[] arrayOfInts = { 32, 87, 3, 589, 12, 1076, 2000, 8, 622, 127 }; int sea... 阅读全文
posted @ 2013-07-18 15:05 elite_2012 阅读(467) 评论(0) 推荐(0) 编辑
摘要:public class WhileDemo { public static void main(String[] args) { String copyFromMe = "Copy this string until you encounter the letter 'g'."; StringBuffer copyToMe = new Strin... 阅读全文
posted @ 2013-07-18 15:03 elite_2012 阅读(238) 评论(0) 推荐(0) 编辑