Programming about JAVA (need help~!!!)

2007-04-10 12:56 am
我有份功課要用java寫ar,係有個txt.file:

Arrival City Arrival Time Departure Time
Belfast10 40 13 50
Malaga13 40 14 30
Turin15 05 15 00
...

佢要我寫個程式read佢, then
Count how many flights to each city (i.e., arrival city) on that day. e.g. there are two flights to Paris and only one flight to Berlin on the day. List these cities in an alphabetic order, one city per line with the number of flights. Store these results in a text file, e.g., FlightCount

唔該哂~!!
更新1:

唔該哂先, 分數唔係問題, haha. 我只想KO到份功課T_T by the way, 有bug wor你個program. Do you have msn? do you mind adding me? [email protected]

回答 (1)

2007-04-11 6:51 pm
✔ 最佳答案
幫你做左整份功課,應該有做多,冇做少既

請去呢度download黎睇下啦: http://www.sendspace.com/file/dt7tyn

如果有咩問題,歡迎再問

如果滿意既話,求求你加分俾我丫,嘻嘻

2007-04-13 06:08:56 補充:
有bug?我響windows既cmd run到架喎,我compile同 run既commands:flightCount\flightCount>cd flightsReaderflightCount\flightCount\flightsReader>javac *.java

2007-04-13 06:09:16 補充:
flightCount\flightCount\flightsReader>cd ..flightCount\flightCount>javac *.javaflightCount\flightCount>java FlightsReader sampleData3.txt

2007-04-13 06:11:32 補充:
sorry,yahoo knowledge既問題,請把 " &g t;" 改做 " > "

2007-04-13 06:23:13 補充:
頂唔順yahoo知識既bug,我再打多次啦:cd flightsReaderjavac *.javacd ..javac *.javajava FlightsReader sampleData3.txt毫無意外地個FlightCount.txt就出左黎啦

2007-04-14 18:12:15 補充:
已經send左一個新的版本到你email,請過目


收錄日期: 2021-04-25 19:52:19
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070409000051KK03390

檢視 Wayback Machine 備份