The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

programm

Posted by Nadia on December 16, 2000 at 5:21 PM

Hi guys I have a little problem I need to develop a java program that reads maximal 100 integers and sorts
with the help of 2 methods mergeSort() and merge() and finally prints the array.

this is the unsorted row of numbers:

12345 12346 84925 22945 99991 33795 29478 11942 23465 69215 66775 88223 92345 55883
44433 43982 54821 99852 90538 91348 99234 73455 12348 32451 98765
76859 63802 92583 78302 34925 45666 23999 10555
92447 93882 94110 93278 88888 33333 10203 40506 60708
80901 80905 20508 11009 11003 11005 10077 10055
15 369 48 934 79 5 978 6 35 4 65 18 956 74
36 458 36 2 4369 5621 698 475 632 547 69
452 36 98 9 45 578 36 41
7 365 5 684 2357 46 18 36 457
347 61 458 9321 1111 576 923 1010

there must be a recursion method in it.
Can somebody help me out?

thanx

nadia



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us