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