hzbn.net
当前位置:首页>>关于高分求JAVA题目解释的资料>>

高分求JAVA题目解释

public class Teacher {private String code;//教师编号private String name;//教师姓名private String job;//教师职务public String getCode() {return code;}public void setCode(String code) {this.code = code;}public String getName() {r...

1.使用; 2. 3.重载 4.static 5.init 6.math.radom() 7start 8排序? 9.索引创建 10.paint 11.start 12.数组 13.编号与内容 14.索引 15..class 16.超文本文件 17.软件构架 18.封装 19.初级程序员

建议你看看head first java 集合与数据结构那章,我觉得没有专门针对容器的代码练习吧,你要深入理解可以想想怎么自己用代码实现这些集合,常用的arraylist hashmap ,想不出来再看看源码.

第八题答案: public class test2 { public static void main(String[] args) { String a = "you and me what cpp2005program"; a = "this is a 99cat"; a = a.trim(); a = (char) (a.charAt(0) - 32) + a.substring(1); a = a.replaceAll("\\s+...

用正则表达式就可以了,看示例 public class A { public static void main(String[] args) { String reg = "(\\d+\\.{0,1}\\d+;\\s?){3}(\\d+\\.{0,1}\\d+\\s?)"; String num = "124; 25;12.3;2a"; boolean isRightFormat = num.matches(reg); S...

public class Customer { private String firstName; private String lastName; private String account; public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } pu...

import java.io.IOException; public class Calculate { private String inputDatas[] = {"zero","one","two","three","four","five", "six","seven","eight","nine"}; private String resultStr = ""; public String getInputData(){ String da...

首先是Token主类。类很简单 package com.company.util; import java.util.ArrayList; import javax.servlet.http.HttpSession; public class Token { private static final String TOKEN_LIST_NAME = "tokenList"; public static final String T...

100分,好高好高啊~~

添加和更新用户代码: …… else if(method.equals("manager")){ //判断提交的action中的method是否是manager String username2 = (String)session.getAttribute("user"); //接受到session里存放的user if(username2 == null){ //判断用户名是否为...

网站首页 | 网站地图
All rights reserved Powered by www.hzbn.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com