Driver Code
public static void main ( String [ ] args ) { int arr [ ] = { 4 , 9 , - 3 , 2 , 0 } ; int N = arr . length ; Vector < Integer > pair = new Vector < Integer > ( ) ; pair = smallestSumpair ( arr , N ) ; System . out . println ( pair . get ( 0 ) + " ▁ " + pair . get ( 1 ) ) ; } }