【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 复习提纲的更多相关文章

  1. Java 期末复习提纲

    Java 开发环境 Java 的特点 面向对象.跨平台.能把中小型程序写成大型程序 开发 Java 的流程 设计类 写代码 重构 Java 程序规范 Javadoc 风格注释 接口以 able 结尾 ...

  2. JAVA EXAM2 复习提纲

    [真假分数相加] //inheritence, extends, use this & super 子类的方法 //two constructors, non-default use 'thi ...

  3. Java基础复习笔记系列 九 网络编程

    Java基础复习笔记系列之 网络编程 学习资料参考: 1.http://www.icoolxue.com/ 2. 1.网络编程的基础概念. TCP/IP协议:Socket编程:IP地址. 中国和美国之 ...

  4. Java基础复习笔记系列 八 多线程编程

    Java基础复习笔记系列之 多线程编程 参考地址: http://blog.csdn.net/xuweilinjijis/article/details/8878649 今天的故事,让我们从上面这个图 ...

  5. Java基础复习笔记系列 七 IO操作

    Java基础复习笔记系列之 IO操作 我们说的出入,都是站在程序的角度来说的.FileInputStream是读入数据.?????? 1.流是什么东西? 这章的理解的关键是:形象思维.一个管道插入了一 ...

  6. Java基础复习笔记系列 五 常用类

    Java基础复习笔记系列之 常用类 1.String类介绍. 首先看类所属的包:java.lang.String类. 再看它的构造方法: 2. String s1 = “hello”: String ...

  7. Java基础复习笔记系列 四 数组

    Java基础复习笔记系列之 数组 1.数组初步介绍? Java中的数组是引用类型,不可以直接分配在栈上.不同于C(在Java中,除了基础数据类型外,所有的类型都是引用类型.) Java中的数组在申明时 ...

  8. Java基础复习笔记基本排序算法

    Java基础复习笔记基本排序算法 1. 排序 排序是一个历来都是很多算法家热衷的领域,到现在还有很多数学家兼计算机专家还在研究.而排序是计算机程序开发中常用的一种操作.为何需要排序呢.我们在所有的系统 ...

  9. java异常复习

    如果有时学东西概念太多了,可以反着学,从结果到过程,从代码到概念,也许就不会那么枯燥了,比如学反射的时候. java异常复习 异常和错误的区别? 异常:程序或环境本身出现错误.(程序员可以捕获并处理) ...

随机推荐

  1. jquery-menu-aim插件实现二级导航

    jquery-menu-aim插件是实现二级导航亚马逊式三角滑动的强力工具,它在性能上极佳,快速滑动,基本无延迟效果,源码位置见对应作者的github,接下来附上样例代码: $(function () ...

  2. 如何安全的在不同工程间安全地迁移asset数据?三种方法

    答:1.将Assets和Library一起迁移2.导出包package3.用unity自带的assets Server功能

  3. java字符串格式化:String.format()方法的使用

    转自:http://kgd1120.iteye.com/blog/1293633 常规类型的格式化 String类的format()方法用于创建格式化的字符串以及连接多个字符串对象.熟悉C语言的读者应 ...

  4. 正则表达式(TypeScript, JavaScript)

    课题 使用正则表达式匹配字符串 使用正则表达式 "\d{3}-(\d{4})-\d{2}" 匹配字符串 "123-4567-89" 返回匹配结果:'" ...

  5. 构造函数,C++内存管理,内存泄漏定位

    构造函数 1.构造顺序 虚基类构造函数,基类构造函数,类对象构造函数,自己的构造函数 2.必须使用初始化列表 (1) 引用成员,常量成员: (2) 基类没默认构造函数(自己重载覆盖了), (3)类对象 ...

  6. centos 用户指定目录访问

    在linux系统中,比如有这样一个场景,abc/a.abc/b.abc/c三个目录,用户user1,user2分别隶属于A组和B组. 控制:用户user1只能访问abc/a和abc/b目录,而用户us ...

  7. WilliamChart各种图表效果实现大全《IT蓝豹》

    WilliamChart各种图表效果实现大全,有水平线条表格,有柱状表格等.由LineFragment,BarFragment,StackedFragment,SandboxFragment几个fra ...

  8. kotlin集合操作

    1.1 总数操作 方法作用: any--判断集合中是否有满足条件 的元素: all--判断集合中的元素是否都满足条件: count--查询集合中满足条件的元素个数: fold--在给定初始值的基础上, ...

  9. java aop的理解

    https://www.cnblogs.com/mafly/p/SpringAOP.html

  10. JVM 图解--1.6,1.7,1.8