import java.util.Random;

public class Tester {

	public static void main(String[] args) {
	  static final int SIZE=1000;
          static final int MAX_NUMBER=100000;
   
    public static void main(String[]args){
         My5Heap test=new My5Heap(SIZE);
         Random x=new Random();
        double randomNumber=x.nextInt(MAX_NUMBER);
        for(int i=0;i<1000;i++){
            test.insert(randomNumber,Double.toString(randomNumber));     //insert 1000 random number into heap   
        }
        for(int q=0;q<1000;q++){
           System.out.println(test.deleteMax()+"No"+q+"Element");
       }
    }
	}

}

@@ -45,54 +45,9 @@
 r %7B%0A
-%0A%09public static void main(String%5B%5D args) %7B%0A%09  
+%09
 stat
@@ -67,25 +67,18 @@
 SIZE
-=
+ = 
 1000;%0A
-          
+%09
 stat
@@ -104,17 +104,19 @@
 MBER
-=
+ = 
 100000;%0A
    %0A
@@ -111,24 +111,18 @@
 100000;%0A
-   %0A    
+%0A%09
 public s
@@ -149,24 +149,19 @@
 ng%5B%5D
+ 
 args)
+ 
 %7B%0A
-         
+%09%09
 My5H
@@ -168,17 +168,19 @@
 eap test
-=
+ = 
 new My5H
@@ -194,25 +194,18 @@
 E);%0A
-         
+%09%09
 Random x
 =new
@@ -200,17 +200,19 @@
 Random x
-=
+ = 
 new Rand
@@ -221,22 +221,49 @@
 ();%0A
-        double
+%09%09for (int i = 0; i %3C 1000; i++) %7B%0A%09%09%09int
  ran
@@ -271,17 +271,19 @@
 omNumber
-=
+ = 
 x.nextIn
@@ -301,53 +301,53 @@
 R);%0A
-        for(int i=0;i%3C1000;i++)%7B%0A            
+%09%09%09// insert 1000 random number into heap%0A%09%09%09
 test
@@ -371,23 +371,23 @@
 ber,
-Double.toString
+ String.valueOf
 (ran
@@ -402,108 +402,51 @@
 r));
-     //insert 1000 random number into heap   %0A        %7D%0A        
+%0A%09%09%7D%0A%09%09
 for
+ 
 (int q
-=0;q%3C
+ = 0; q %3C 
 1000;
+ 
 q++)
+ 
 %7B%0A
-           
+%09%09%09
 Syst
@@ -461,64 +461,59 @@
 rint
-ln(test.deleteMax()+%22No%22+q+%22Element%22);%0A       %7D%0A    
+f(%22%25s%5Ctelement %25d%5Cn%22, test.deleteMax(), q+1);%0A%09%09
 %7D%0A%09%7D%0A
-%0A
 %7D%0A

Update Tester and resolve #2 Correct syntax and formatting. Use random generator within for loop so new values are generated. Update output formatting to match assignment instructions.