JAVA EXAM3 复习提纲
【Practice11_Zipcode_ArrayList】
Zipcode class:
//3 variables: zipcode, city, county, and compare by county
//define getter and setter so that it could be used to get the variable
County:
//two variables: county and count, and define the getters & setters
Main:
//1.read the files,
//no need to define here since it was passed later on
//use += for string
//2.
ZipcodeComparator:
compare the zipcode by the county?
//2.
CountyComparator:
compare the county by their count
//read file by passing into file's name
//define two lists to use
//3 initialize zipcode
//sort the list using the Collections.sort
//4 initialize cities
//append the new county's name to the string's name
//split up all the country words, 5.count the zipcode
//new up a number list to store the number accounts
//count the numbers one by one
//append the count to the number list
//new up a county object and add it to the state list 6. count the cities
//sort after appended to the list using Collections.sort
//print out the state's names
【Zipcode Hashmap】
zipmap:
//initialize variables : city/country/zipcode, same constructor
main:
//split the words and set up zipmap object
//dirty number? add only if they equal in both city and county
//add to indicate duplication for further query
//just one city/county equal?
//using printf to format output
【movie】
Genre class:
//define variables: string and arraylist
//define compare to method and compare via one variable
//if o comes later, from small to big
//override the hashcode method
//override the equals method
Movie class:
same
MyFlix class:
//loadMovies:
load movie information and the movie genres information
//loadGenres://use iterator to parse all the movies, //get next movie, //get next genre,
//if not contain the genre, add to the new list,
//if contains the genre, add to the list
//rewrite, add to result if it contains
//rewrite: print by using iteration
【words】
Word:
//define toString here : word + ": " + meaning
//should notice the lower case situation
Dictionary class:
//re: put into map according to the requirement
//get a new word
//add up on
//or add a new list
searchWordList:
//re: find in the wordList, use found variable to controll
searchMultiMap
//print out the results found in the map
JAVA EXAM3 复习提纲的更多相关文章
- Java 期末复习提纲
Java 开发环境 Java 的特点 面向对象.跨平台.能把中小型程序写成大型程序 开发 Java 的流程 设计类 写代码 重构 Java 程序规范 Javadoc 风格注释 接口以 able 结尾 ...
- JAVA EXAM2 复习提纲
[真假分数相加] //inheritence, extends, use this & super 子类的方法 //two constructors, non-default use 'thi ...
- Java基础复习笔记系列 九 网络编程
Java基础复习笔记系列之 网络编程 学习资料参考: 1.http://www.icoolxue.com/ 2. 1.网络编程的基础概念. TCP/IP协议:Socket编程:IP地址. 中国和美国之 ...
- Java基础复习笔记系列 八 多线程编程
Java基础复习笔记系列之 多线程编程 参考地址: http://blog.csdn.net/xuweilinjijis/article/details/8878649 今天的故事,让我们从上面这个图 ...
- Java基础复习笔记系列 七 IO操作
Java基础复习笔记系列之 IO操作 我们说的出入,都是站在程序的角度来说的.FileInputStream是读入数据.?????? 1.流是什么东西? 这章的理解的关键是:形象思维.一个管道插入了一 ...
- Java基础复习笔记系列 五 常用类
Java基础复习笔记系列之 常用类 1.String类介绍. 首先看类所属的包:java.lang.String类. 再看它的构造方法: 2. String s1 = “hello”: String ...
- Java基础复习笔记系列 四 数组
Java基础复习笔记系列之 数组 1.数组初步介绍? Java中的数组是引用类型,不可以直接分配在栈上.不同于C(在Java中,除了基础数据类型外,所有的类型都是引用类型.) Java中的数组在申明时 ...
- Java基础复习笔记基本排序算法
Java基础复习笔记基本排序算法 1. 排序 排序是一个历来都是很多算法家热衷的领域,到现在还有很多数学家兼计算机专家还在研究.而排序是计算机程序开发中常用的一种操作.为何需要排序呢.我们在所有的系统 ...
- java异常复习
如果有时学东西概念太多了,可以反着学,从结果到过程,从代码到概念,也许就不会那么枯燥了,比如学反射的时候. java异常复习 异常和错误的区别? 异常:程序或环境本身出现错误.(程序员可以捕获并处理) ...
随机推荐
- mui 常用手势
一 事件: 点击:1. tap 单击屏幕2. doubletap 双击屏幕长按:1. longtap 长按屏幕2. hold 按住屏幕3.release 离开屏幕滑动:1. swipeleft 向左滑 ...
- datetime is not json serializable
python, datetime is not json serializable import datetime def json_serial(obj): """JS ...
- javascript:图片转base64
第一种: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <meta ...
- The value for the useBean class attribute xxx is invalid
JSP页面报这个错可能的原因: 1:指定的 Bean 类没找到 2:该类不是 public 的,或者找到的 class 文件是 interface 或抽象类 3:Bean 类中没有 public 的无 ...
- 黑马2018年JavaEE课程大纲
包含 黑马旅游网 企业级权限管理系统 品优购 十次方 乐优(没有,十次方级别) http://www.itheima.com/course/javaeetext.html 传智 ...
- Haskell语言学习笔记(83)Pipes
安装 pipes $ cabal install pipes Installed pipes-4.3.9 Prelude> import Pipes Prelude Pipes> impo ...
- Oracle重建表空间操作实例
由于环境维护或者性能测试需要,经常需要对表空间进行重建操作.重建表空间操作主要分3中情况介绍,分别是业务表空间.临时表空间和回滚段表空间的重建. 重建业务表空间 由于业务规划要求,重建后的业务表空间名 ...
- avalon2学习教程06样式操作
avalon2的ms-css的变革思路与ms-attr一样,将多个操作合并成到一个对象里面处理,因此没有ms-css-name="value",只有ms-css="Obj ...
- 7.final关键字.md
1.final类型变量 定义:被final修饰的变量,一旦被赋初值后,则final类型变量的值就不能再改变. 1.1成员变量 final修饰的成员变量必须显式的赋初值. 赋值的位置: •类变量:静态初 ...
- 在前台页面写java代码,导入java的包