资源简介
朋友给的 -> NEU_SWC面向对象程序设计咖啡系统完整代码(含第一次建模和最后的实验):Modeling the Gourmet Coffee System -> Using Design Patterns in the Gourmet Coffee System -> Using File I/O in the Gourmet Coffee System
绝对靠谱!内有简单说明
绝对靠谱!内有简单说明

代码片段和文件信息
import java.util.ArrayList;
/**
* 产品信息类
* 内部储存产品信息
* @author BlankSpace
* @version 2.0
* 使用默认构造器
*/
public class Catalog {
//创建ArrayList集合,类型为Product及其子类
private ArrayList products = new ArrayList<>();
public void addProduct(Product product) {
this.products.add(product);
}
/**
* 用于遍历集合查找元素的方法
* @param code 产品编号
* @return 要查找的产品信息
*/
public Product getProduct(String code) {
for (Product product : products) {
if (product.getCode().equals(code)) {
return product;
}
}
return null;
}
/**
* 返回所有的产品的方法
* @return 装Product的ArrayList集合
*/
public ArrayList getAllProduct() {
return this.products;
}
/**
* 求产品种类数
* @return 产品种类数
*/
public int getNumberOfProducts() {
return this.products.size();
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-04-01 09:29 建模部分\
文件 1046 2020-04-01 09:28 建模部分\Catalog.java
文件 1777 2020-04-01 09:28 建模部分\Coffee.java
文件 1311 2020-04-01 09:28 建模部分\CoffeeBrewer.java
文件 14697 2020-04-01 09:28 建模部分\GourmetCoffee.java
文件 1850 2020-04-01 09:29 建模部分\Order.java
文件 1236 2020-04-01 09:29 建模部分\OrderItem.java
文件 1142 2020-04-01 09:29 建模部分\Product.java
文件 196 2020-04-01 09:31 建模部分\readme.txt
文件 829 2020-04-01 09:29 建模部分\Sales.java
目录 0 2020-04-01 09:28 最终实验\
文件 765 2020-04-01 09:22 最终实验\Catalog.java
文件 870 2020-04-01 09:23 最终实验\CatalogLoader.java
文件 1116 2020-04-01 09:23 最终实验\Coffee.java
文件 749 2020-04-01 09:23 最终实验\CoffeeBrewer.java
文件 636 2020-04-01 09:23 最终实验\DataFormatException.java
文件 5818 2020-04-01 09:23 最终实验\FileCatalogLoader.java
文件 5929 2020-04-01 09:24 最终实验\GourmetCoffee.java
文件 1419 2020-04-01 09:24 最终实验\HTMLSalesFormatter.java
文件 1060 2020-04-01 09:24 最终实验\Order.java
文件 678 2020-04-01 09:24 最终实验\OrderItem.java
文件 1305 2020-04-01 09:24 最终实验\PlainTextSalesFormatter.java
文件 732 2020-04-01 09:24 最终实验\Product.java
文件 474 2020-04-01 09:25 最终实验\Sales.java
文件 166 2020-04-01 09:25 最终实验\SalesFormatter.java
文件 5381 2020-04-01 09:25 最终实验\TestFileCatalogLoader.java
文件 1287 2020-04-01 09:25 最终实验\xm
相关资源
- Power Electronic Converters Modeling and Contr
- Histamine excites rat lateral vestibular nucle
- Modeling rockfall process using numerical mani
- Neural Networks:Tricks of the Trade+无码高清
- Modeling stochastic multiple equilibrium behav
- Acute effects of TGFβ1 on neuronal excita
- Modeling of rapeseed at maturity stage using 3
- Robot Modeling and Control First Edition
- Analytical Methods in Fuzzy Modeling and Contr
- R语言建模 R——modeling
- Introduction to Modeling and Analysis of Stoch
-
Tree-ba
sed Convolutional Neural Networks - Neural Networks and DeepLearning - Michael Nie
- Spiking Neuron Models
- Robot Modeling and Control
- Modeling in Event-B System and Software Engine
- The Computational Neurobiology of Reaching and
- Delta-Sigma Modulators - Modeling Design and A
- 神经网络非线性系统控制( neural ne
- 《图像分析中的马尔可夫随机场模型
- A Guide to Convolutional Neural Networks for C
- Domain Modeling Made Functional Tackle Softwar
- Make Your Own Neural Network 无水印原版pd
- Neural Networks with R Smart models using CNN
- Performance Modeling and Design of Computer Sy
- Neural Network and Deep Learning神经网络与深
- NeuralNetworksDeepLearning_jb51.rar
- 学习摘要:Methods for interpreting and un
- Neural Networks for Applied Sciences and Engin
- Multiphysics Modeling Using COMSOL v.4-02.pdf
评论
共有 条评论