![void bubbleSortEfficient(int A[], int size) int temp; bool exchanged true; for (int i = 0; i < size && exchanged; itt) exchanged false; for (int j-size- l ; j >= i + 1 ; j-) if (Aljl<Alj - 1]) temp Aj Ali] = Ali-1; ALi-1] temp; exchanged- true;](https://d2vlcm61l7u1fs.cloudfront.net/media%2Fe50%2Fe5046841-bd3d-4f6e-8e7f-3732f8a6f0be%2Fphp5SkZ7u.png)
I have this method and I am traying to do some data path testing, J unit test ,
this is how i was trying to do it but it keeps giving me anissue becuase is a void method insted of int
public void test() {
int [] arr = {3,5,7,8,2,1};
PayPal Gateway not configured
PayPal Gateway not configured