Storing maximum and minimum values of each component
v . add ( new pair ( componentMin , componentMax ) ) ; } } boolean check = isValid ( v ) ; if ( check ) System . out . println ( " Yes " ) ; else System . out . println ( " No " ) ; return ; }