Ò»µÀjavaÌâ·ÇëÇó¸ßÊÖÏײß
ÎÒÕâ¶ùÓÐÒ»µÀJAVAµÄÌâ·ÊÇÓ¢Îĵķ¼òµ¥µÄÓ¢ÎÄ···ÎÒ×Ô¼º²»Ì«»á·
In the Assignment One you are required to implement a command-line version of the
software. Your software will allow a manufacturer to create a list of required inventory
based on what is scheduled for production.
Project glossary:
• Product (or product item) – something that is produced by the manufacturer.
• Inventory item (or just inventory) – something that is requited for the manufacturing
of a particular product.
Task
1.Describe the manufacturer, e.g. name, address, main products,
clients, suppliers. Suggest ten (10) possible inventory items. Suggest two (2)
potential issues with the manufacturer’s supply chain and how they could be
improved.
2.Allow one product to be an inventory for another product.
3.Collect user input regarding how many items of each product are scheduled
for manufacturing. Then, display a table of inventory items: name/description,
quantity/quality of each item. In the real world, the list could then be sent to
the purchasing department for ordering the items.
4.Read/write information regarding the currently available inventory from/to a
file.
Achievement
1. Draw a UML class diagram of your classes showing all public methods, e.g.
by using NetBeans.
Connect the classes with “IS-A” and “HAS-A” lines, see p177
Each class: is named by a noun ; is correctly identified as a class ; has
a reasonable set of public methods .
2.Display a menu of available commands.
3.Display a list of products that the manufacturer could produce.
4. Display a list of inventory required to manufacture a specific product.
5.Display th
Ïà¹ØÎĵµ£º
×î½üÓöµ½Ò»¸öÐèÇóÒªÔÚlinuxÏÂÓÃjava µ÷ÓÃmysql¿Í»§¶ËÔ¶³ÌµÇ½mysql·þÎñÆ÷£¬´Ó¿Í»§¶Ë»úÆ÷µ¼Èëmysql½Å±¾£¬´Ómysql·þÎñÆ÷¶Ëµ¼³ö±íÖеÄÊý¾Ý¡£ÒÔÏÂÊÇÓõ½µÄÖ÷Òª·½·¨£º
Java ´úÂë
/**
* µ¼ÈëÊý¾Ý
* @param ½Å±¾µÄµØÖ·ºÍÃû³Æ
* @return ÊÇ·ñ³ ......
¾ÙÀý×Ó˵Ã÷Ò»ÇС£
JAVA_HOME£º C:\j2sdk1.4.2_13
Path£º C:\j2sdk1.4.2_13\bin;
Classpath£º.;JAVA_HOME\lib\tools.jar ; JAVA_HOME\lib\dt.jar;
&n ......
1.¼ÆËãijһÔ·ݵÄ×î´óÌìÊý
Calendar time=Calendar.getInstance();
time.clear();
time.set(Calendar.YEAR,year);
time.set(Calendar.MONTH,i-1);//×¢Òâ,Calendar¶ÔÏóĬÈÏÒ»ÔÂΪ0
int day=time.getActualMaximum(Calendar.DAY_OF_MONTH);//±¾Ô·ݵÄÌìÊý ......
ǰһÕóÔÚ¹«Ë¾ÀïʹÓà jconsle ʱһÇÐÕý³££¬È»¶øÔÚ¼ÒÖеĻúÆ÷ÉÏÈ´³öÏÖÁ˱êÌâËùʾµÄÎÊÌ⣺
jconsole ºÍ jps ÎÞ·¨ÏÔʾ±¾µØ Java ½ø³ÌÁÐ±í¡£
µ±Ê±Ö±½ÓÀûÓà -Dcom.sun.management.jmxremote.port=port Æô¶¯Ä¿±ê java ½ø³Ì£¬²¢ÔÚ jconsole ÖÐͨ¹ý localhost:port ·½Ê½³É¹¦Á¬½ÓÉÏÄ¿±ê java ½ø³Ì¡£ÓÐÁËÕâ¸ö work around Ö®ºó£¬¶ÔÕ ......