intil a 3 5 6 8 10 12 c for int i 0 i 0 i2 ai ai 1 mai
Solution
Assignment7.java
Please enter the size of the array
2
Command Options
--------------------
a: add an integer in the array
b: remove an integer from the array
c: display the array
d: swap with the smallest
e: rotate the array
?: display the menu again
q: quit the menu
?
Command Options
--------------------
a: add an integer in the array
b: remove an integer from the array
c: display the array
d: swap with the smallest
e: rotate the array
?: display the menu again
q: quit the menu
a
Please enter the number to add in the array
2
2 successfully added
a
Please enter the number to add in the array
4
4 successfully added
a
Please enter the number to add in the array
1
1 successfully added
d
1 4 2
b
Please enter the number to remove from the array
3
3 is not in the array.
3 could not be removed
b
Please enter the number to remove from the array
2
2 successfully remove
c
{4,1}
c
{4,1}
![intil a -3, 5, 6, 8, 10, 12); c) for (int i - 0: i _ 0; i--2) { a[i] . a[i + 1); } main method in this class). A class Collection has an array of integers and intil a -3, 5, 6, 8, 10, 12); c) for (int i - 0: i _ 0; i--2) { a[i] . a[i + 1); } main method in this class). A class Collection has an array of integers and](/WebImages/30/intil-a-3-5-6-8-10-12-c-for-int-i-0-i-0-i2-ai-ai-1-mai-1086076-1761571119-0.webp)