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异常复习 异常和错误的区别? 异常:程序或环境本身出现错误.(程序员可以捕获并处理) ...
随机推荐
- 区分slice,splice和split方法
1.slice(数组) 用法:array.slice(start,end) 解释:该方法是对数组进行部分截取,并返回一个数组副本:参数start是截取的开始数组索引,end参数等于你要取的最后一个字符 ...
- Java ssl认证记录
听到有人在用,所以自己随便搜了搜试了下,这里就是简单记录 就是操作了一遍这篇博文 https://blog.csdn.net/a495614205/article/details/12648939 i ...
- C# 利用反射调用类下的方法
namespace TestReflection { public partial class Form1 : Form { public Form1() { InitializeComponent( ...
- keal
I remember the wonderful moment you appeared before me, like a fleeting vision, like a genius of pur ...
- 经典论文翻译导读之《Google File System》(转)
[译者预读] GFS这三个字母无需过多修饰,<Google File System>的论文也早有译版.但是这不妨碍我们加点批注.重温经典,并结合上篇Haystack的文章,将GFS.TFS ...
- 实现一个简单的shell
使用已学习的各种C函数实现一个简单的交互式Shell,要求:1.给出提示符,让用户输入一行命令,识别程序名和参数并调用适当的exec函数执行程序,待执行完成后再次给出提示符.2.该程序可识别和处理以下 ...
- 使用大于16TB的ext4文件系统
我们的电脑想要快速开机,需要具备三个条件:第一是主板支持UEFI,二是系统支持UEFI(Win8),最后就硬盘需要采用GPT分区. GPT分区全名为Globally Unique Identifier ...
- NIPS 2016上22篇论文的实现汇集
http://blog.csdn.net/jiandanjinxin/article/details/54087592 日前,LightOn CEO 兼联合创始人 Igor Carron 在其博客上放 ...
- ReactiveX 学习笔记(19)使用 RxSwift + RxCocoa 进行 GUI 编程
课题 程序界面由3个文本编辑框和1个文本标签组成. 要求文本标签实时显示3个文本编辑框所输入的数字之和. 文本编辑框输入的不是合法数字时,将其值视为0. 3个文本编辑框的初值分别为1,2,3. 创建工 ...
- 使用jQuery+huandlebars遍历数组
兼容ie8(很实用,复制过来,仅供技术参考,更详细内容请看源地址:http://www.cnblogs.com/iyangyuan/archive/2013/12/12/3471227.html) & ...