question: private int [ ] parseMonths ( String line ) { int [ ] months = new int [ 12 ] ; String [ ] numbers = line . split ( "\\s" ) ; if ( numbers . length != 12 ) { throw new IllegalArgumentException ( "wrong number of months on line: " + Arrays . toString ( numbers ) + "; count: " + numbers . length ) ; } for ( int i = 0 ; i < 12 ; i ++ ) { try { months [ i ] = Integer . valueOf ( numbers [ i ] ) ; } catch ( NumberFormatException nfe ) { throw new IllegalArgumentException ( "bad key: " + numbers [ i ] ) ; } } return months ; }
target:  Parses the 12 months lengths from a property value for a specific year.