【初心者】Java の宿題ここで答えます 5.0【歓迎】
■ このスレッドは過去ログ倉庫に格納されています
010488
05/02/09 23:32:27Part C:
Use exception handling to control user errors.
Display the list of customers and their account balances in sorted order.
Implement three sorting algorithms for the list of customers.
(Only one sorting algorithm needs to be in place by your program due date.
The other two will be used in the analysis.)
Two of the algorithms may be an elementary sorting algorithm, such as: insertion sort, selection sort, bubble sort.
One of the algorithms must be an efficient sorting algorithm, such as: the quick sort, the shell sort, the heap sort, the merge sort, or the radix sort.
The list structure is your choice, such as your own array or linked list, or an ArrayList or a LinkedList.
To implement sorting customers:
The customer data type will need methods to compare objects. Typically this involves a compareTo() method as well as an equals() method (use the Comparable Interface).
Do not allow add duplicate object’s in your list.
Use file input and output to store several objects.
Use exception handling for file errors.
今、時間がないので英文混じりで失礼します。
中には読める方はもちろんたくさんいらっしゃると思うので載せました。
後で日本語概略を載せたいと思いますが、必要ないときは、そんなもんいらねー等、一言いただけたらうれしいです。
■ このスレッドは過去ログ倉庫に格納されています