Jump to content


Check out our Community Blogs

Wheeli3e

Member Since 08 Nov 2010
Offline Last Active Nov 08 2010 07:28 AM
-----

Posts I've Made

In Topic: Array Sorting Algorithms I

08 November 2010 - 07:28 AM

Hi whitey,

I try to integrate your coding to fix in my project, but it would't work for me. My project is simple, i have this array[myList] 4,3,5,6,2 and i'm suppose to arrange it in order and show the output.

But i'm quite new to java and i couldn't understand some jargon in your code, my template is :

public class Lab2Ex1_JianLe
{

public static void main (String [] args)

{
int [] myList = {5, 4, 2, 3, 8, 7};
System.out.println ("My List before sorting is: ");
for (int i=0; i<myList.length; i++)
System.out.println (myList[i]);

// sort Algorithms

System.out.println ("My List after sorting is: ");
for (int i=0; i<myList.length; i++)
System.out.println (myList[i]);
}
}

Would it be cool if you guide me along, i wouldn't expect you to provide me the answer as i wish to learn too.. Thank you.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download