Driver code
public static void main ( String [ ] args ) { Vector < Integer > a = new Vector < Integer > ( Arrays . asList ( 7 , 7 , 5 ) ) ; Vector < Integer > b = new Vector < Integer > ( Arrays . asList ( 7 , 5 , 5 ) ) ; if ( areSame ( a , b ) ) System . out . print ( "YesNEW_LINE"); else System . out . print ( "NoNEW_LINE"); } }