資源簡介
自己整理過的,所有的quiz exercise exam都有,有幾個放錯文件夾了,自己找一下,全都在里面,一般后面幾個都沒有,我自己做了一個,絕對準確,下過我ssd3的應該知道的,另外需要final exam的我也有,不過要找一下,要的話說一聲,我上傳

代碼片段和文件信息
import??java.io.*;
/**
?*?objects?of?this?class?store?stock?information?for?a?company.
?*?The?following?information?is?stored.
?*?
?*?- the?Dow?Jones?symbol?for?the?company?a?
String
.
?*?- the?name?of?the?company?a?
String
.
?*?- the?highest?price?reached?during?the?course?of?the?day
?*?????a?double
?*?- the?lowest?price?reached?during?the?course?of?the?day
?*?????a?double
?*?- the?last?trading?price?recorded?when?the?market?closed?on?the?day
?*?????a?double
?*?
?*
?*?@author?iCarnegie
?*?@version??1.0.0
?*/
public?class?Stock??{
/**?Dow?Jones?symbol?for?the?company?*/
private?String??symbol;
/**?the?name?of?the?company?*/
private?String??name;
/**?the?highest?price?reached?during?the?course?of?the?day?*/
private?double??highestPrice;
/**?the?lowest?price?reached?during?the?course?of?the?day?*/
private?double??lowestPrice;
/**?the?last?trading?price?recorded?when?the?market?closed?on?the?day?*/
private?double??lastPrice;?
/**
?*?Constructs?a?Stock
?object.
?*
?*?@param?initialSymbol??the?symbol?of?the?stock.
?*?@param?initialName??the?name?of?the?company.
?*?@param?initialHighestPrice???the?highest?price?of?the?stock.
?*?@param?initialLowestPrice???the?lowest?price?of?the?stock.
?*?@param?initialLastPrice???the?close?price?of?the?stock.
?*/
public?Stock?(
String?initialSymbol
String?initialName
double?initialHighestPrice
double?initialLowestPrice
double?initialLastPrice)?{
this.symbol?=?initialSymbol;
this.name?=?initialName;
this.highestPrice?=?initialHighestPrice;
this.lowestPrice?=?initialLowestPrice;
this.lastPrice?=?initialLastPrice;
}
/**
?*?Obtains?the?symbol?of?this?stock.
?*
?*?@return??the?symbol?of?this?stock.
?*/
public?String??getSymbol()??{
return??this.symbol;
}
/**
?*?Obtains?the?name?of?this?stock.
?*
?*?@return??the?name?of?this?stock.
?*/
public?String??getName()??{
return??this.name;
}
/**
?*?Obtains?the?highest?price?of?the?stock.
?*
?*?@return??the?highest?price?of?this?stock.
?*/
public?double??getHighestPrice()??{
return??this.highestPrice;
}
/**
?*?Obtains?the?lowest?price?of?the?stock.
?*
?*?@return??the?lowest?price?of?this?stock.
?*/
public?double??getLowestPrice()??{
return??this.lowestPrice;
}
/**
?*?Obtains?the?close?price?of?the?stock.
?*
?*?@return??the?close?price?of?this?stock.
?*/
public?double??getLastPrice()??{
return??this.lastPrice;
}
/**
?*?Returns?a?{@link?String}?with?the?stock?info?in?a?xml?format
?*
?*?@return??the?newly?created?{@link?String}?with?the?stock?info
?*/
public?String??getxml()??{
/*?Line?separator?*/
String?NEW_LINE?=?System.getProperty(“line.separator“);
return??““
+?NEW_LINE
+?“?????“+?getSymbol()?+?“?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????91629??2010-04-10?17:58??SSD3答案\exam1\EmployeeInformationSystem.jpg
?????文件???????3384??2010-04-10?17:58??SSD3答案\exam1\stock\Stock.java
?????文件???????1878??2010-04-10?17:58??SSD3答案\exam1\stock\StockApplication.java
?????文件???????2175??2010-04-10?17:58??SSD3答案\exam1\weather方法1\Weather.java
?????文件???????2566??2010-04-10?17:58??SSD3答案\exam1\weather方法1\WeatherApplication.java
?????文件???????2681??2010-04-10?17:58??SSD3答案\exam1\weather方法2:數組解決\WeatherApplication.java
?????文件????????543??2010-04-10?17:58??SSD3答案\exam2\AudioFile.java
?????文件????????905??2010-04-10?17:58??SSD3答案\exam2\MediaDataba
?????文件?????????55??2010-04-10?17:58??SSD3答案\exam2\MediaFile.java
?????文件???????4107??2010-04-10?17:58??SSD3答案\exam2\student-files.zip
?????文件????????934??2010-04-10?17:57??SSD3答案\exercise1\Product.class
?????文件???????1135??2010-04-10?17:57??SSD3答案\exercise1\ShoppingCart.class
?????文件???????2652??2010-04-10?17:57??SSD3答案\exercise1\ShoppingCartApplication.class
?????文件???????2531??2010-04-10?17:57??SSD3答案\exercise1\ShoppingCartApplication.java
?????文件???????3435??2010-04-10?17:57??SSD3答案\exercise1\要求與所需文件\exe-shopping-cart.jar
?????文件?????126561??2010-04-10?17:57??SSD3答案\exercise1\要求與所需文件\Exercise1.pdf
?????文件????????934??2010-04-10?17:57??SSD3答案\exercise1\要求與所需文件\Product.class
?????文件???????1135??2010-04-10?17:58??SSD3答案\exercise1\要求與所需文件\ShoppingCart.class
?????文件???????2702??2010-04-10?17:58??SSD3答案\exercise1\要求與所需文件\ShoppingCartApplication.class
?????文件???????6522??2010-04-10?17:58??SSD3答案\exercise1\要求與所需文件\student-files.zip
????..A.SH.??????9216??2010-07-02?14:52??SSD3答案\exercise2\Thumbs.db
?????文件?????175707??2010-04-10?17:57??SSD3答案\exercise2\uml-gou-cof.jpg
?????文件?????104772??2010-04-10?17:57??SSD3答案\exercise2\要求與所需文件\Exercise2.pdf
?????文件???????9858??2010-04-10?17:57??SSD3答案\exercise2\要求與所需文件\gourmet-coffee-sample-executable.jar
?????文件???????1144??2010-04-10?17:57??SSD3答案\exercise3\Coffee.java
?????文件????????783??2010-04-10?17:57??SSD3答案\exercise3\CoffeeBrewer.java
?????文件????????596??2010-04-10?17:57??SSD3答案\exercise3\OrderItem.java
?????文件????????690??2010-04-10?17:57??SSD3答案\exercise3\Product.java
?????文件?????131185??2010-04-10?17:57??SSD3答案\exercise3\要求與所需文件\Exercise3.pdf
?????文件???????3731??2010-04-10?17:57??SSD3答案\exercise3\要求與所需文件\student-files.zip
............此處省略227個文件信息
- 上一篇:CAD版本轉換器支持cad2019格式轉換
- 下一篇:《機械加工余量手冊 》
評論
共有 條評論