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异常复习 异常和错误的区别? 异常:程序或环境本身出现错误.(程序员可以捕获并处理) ...
随机推荐
- System.net.mail 使用ssl发送邮件失败
我采用了.net 的自带组件System.Net.Mail发送邮件,主要是在客户注册网站成功的时候发条欢迎邮件,最近邮件无法发送了,看了下腾讯smtp邮件配置,所有的邮件发送都换成ssl了,之前用的是 ...
- vue:图片切换动态显示
<img :src="切换条件 ? require('xxx.png') : require('xxx.png')" />
- C++复习:函数模板和类模板
前言 C++提供了函数模板(function template).所谓函数模板,实际上是建立一个通用函数,其函数类型和形参类型不具体指定,用一个虚拟的类型来代表.这个通用函数就称为函数模板.凡是函数体 ...
- linux下mysql开启远程访问权限 防火墙开放3306端口
linux下mysql开启远程访问权限 防火墙开放3306端口 转载 2017-01-21 作者:JAVA-ANDROID 这篇文章主要为大家详细介绍了linux下mysql开启远程访问权限,防 ...
- Number的Util
1. NumberUtils.isNumber() : 判断字符串是否是数字 NumberUtils.isNumber("5.96");//结果是true NumberUtils. ...
- SimpleDateFormat 使用时出现的线程同步问题。。。
错误使用: public static final SimpleDateFormat DAY_UI_MONTH_DAY_FORMAT = new SimpleDateFormat("MM-d ...
- 吴裕雄 python oracle检索数据(2)
import cx_Oracle conn = cx_Oracle.connect("scott/admin@localhost:1521/orcl")cursor = conn. ...
- JVM致命错误日志(hs_err_pid.log)分析
当jvm出现致命错误时,会生成一个错误文件 hs_err_pid<pid>.log,其中包括了导致jvm crash的重要信息,可以通过分析该文件定位到导致crash的根源,从而改善以保证 ...
- linus jsch文件下载
package com.osplat.util;import java.io.File;import java.io.FileNotFoundException;import java.io.File ...
- 安装scrapy框架
前提安装好python.setuptools. 1.安装Python 安装完了记得配置环境,将python目录和python目录下的Scripts目录添加到系统环境变量的Path里.在cmd中输入py ...