Wednesday, February 12, 2014

Deaps output

OUTPUT:
C:\j2sdk1.4.2_02\bin>javac Deap.java

C:\j2sdk1.4.2_02\bin>java Deap

                       --Deap--
1. Insertion
2. Deletion ( min element)
3. Deletion  (max element)
4. Exit..
Enter your choice:
1
Enter the number of elements
10
Enter the values to insert
5
Enter the values to insert
45






Enter the values to insert
10
Enter the values to insert
8
Enter the values to insert
25
Enter the values to insert
40
Enter the values to insert
15
Enter the values to insert
19
Enter the values to insert
9
Enter the values to insert
30
deap[1]=NULL
 Deap[2]=5
 Deap[3]=45
 Deap[4]=10
 Deap[5]=8
 Deap[6]=25
 Deap[7]=40
 Deap[8]=15
 Deap[9]=19
 Deap[10]=9
 Deap[11]=30

Enter your choice:
2
The deleted item is :  5
deap[1]=NULL
 Deap[2]=8
 Deap[3]=45
 Deap[4]=10
 Deap[5]=9
 Deap[6]=25
 Deap[7]=40
 Deap[8]=15
 Deap[9]=19
 Deap[10]=30






Enter your choice:
3
The deleted item is : 45
deap[1]=NULL
 Deap[2]=8
 Deap[3]=40
 Deap[4]=10
 Deap[5]=9
 Deap[6]=25
 Deap[7]=30
 Deap[8]=15
 Deap[9]=19

Enter your choice:
4
deap[1]=NULL
 Deap[2]=8
 Deap[3]=40
 Deap[4]=10
 Deap[5]=9
 Deap[6]=25
 Deap[7]=30
 Deap[8]=15
 Deap[9]=19


















No comments:

Post a Comment