
-----------------------------------
Programming_Kid
Fri Oct 30, 2009 12:01 pm

Help With Printing Integers
-----------------------------------
So this is a very easy question, but I just can't seem to understand how to figure this out. I am trying to print out some integers, after they have been sorted, but I don't know what to do.

This is the code I have for my code so far.
The final System.out.println that has been made into a comment is what I believe I need, but I'm missing the code that will only use the sorted numbers. 

Any help will be greatly appreciated.
Thanks




import java.util.Random;

public class BinarySearch {

    public static void main(String[] args){
		
    	int y = 0;	 //Array variable to generate 30 numbers						
    	int randomInt;	//Variable to generate random numbers				
    	Random randomGenerator = new Random(); 	
    	int linArray [] = new int[30];	//Generated array alloted with 30 slots
    	boolean swap;	//Variable used in the swap method
    	
    	//Creates a set amount of number slots, along with random numbers to fill those slots
    	for (y = 0; y