Driver Code
public static void main ( String [ ] args ) { int arr [ ] = { 11 , - 5 , 9 , - 3 , 2 } ; int N = arr . length ; Vector < Integer > pair = new Vector < Integer > ( ) ; pair = largestSumpair ( arr , N ) ; for ( Integer it : pair ) { System . out . print ( it + " ▁ " ) ; } } }