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异常复习 异常和错误的区别? 异常:程序或环境本身出现错误.(程序员可以捕获并处理) ...
随机推荐
- native.js 判断是否安装某app
例:是否安装微信 function isWeixin() { var UIApplication = plus.ios.importClass("UIApplication"); ...
- list 转datatable
//public static DataTable ListToDataTable(List<FwImage> entitys) //{ // //检查实体集合不能为空 // if (en ...
- requirejs源码分析
- 测试Array对象的sort方法的作用。将1985,1970,1999,1998,2000,1963这些年份按升序输出。
<script type="text/javascript">var years = new Array(1985,1970,1999,1998,2000,1963); ...
- C# windows服务:创建Windows服务(Windows Services)的一般步骤
C#创建Windows服务(Windows Services) Windows服务在Visual Studio 以前的版本中叫NT服务,在VS.net启用了新的名称.用Visual C# 创建Wind ...
- shell-保留文件系统下剩余指定数目的文件
path_backup=/mnt/fifth/backup/shellbackup path_delete=/mnt/fifth/tmp/rubbish/ limit_num=15 f ...
- 利用monkey测试android,入门级用户可能遇见的错误及解决办法 【转】
转自[http://blog.csdn.net/zm2714/article/details/7977930] 一.D:\android\android-sdk-windows\tools目录中没有a ...
- js中将类数组转换为数组的几种方法
1.slice方法 最经典的方法,使用Array的slice方法,此方法如果不传参数的话会返回原数组的一个拷贝,因此可以用此方法转换类数组到数组: // 创建一个类数组对象 var alo = {0: ...
- polyfill
[polyfill] 在JavaScript的世界里,有两个词经常被提到,shim和polyfill.它们指的都是什么,又有什么区别? 一个shim是一个库,它将一个新的API引入到一个旧的环境中,而 ...
- Choosing the Type at Runtime
[Choosing the Type at Runtime] You cannot use a general expression as the React element type. If you ...