Print the amount of money obtained by both the players
System . out . println ( " ( A ▁ : ▁ " + amountA + " ) " ) ; System . out . println ( " ( B ▁ : ▁ " + amountB + " ) " ) ; } static void reverse ( int a [ ] , int n ) { int [ ] b = new int [ n ] ; int j = n ; for ( int i = 0 ; i < n ; i ++ ) { b [ j - 1 ] = a [ i ] ; j = j - 1 ; } }