question: public static BigFraction parseAspectRatio ( String aspectRatio ) { String [ ] parts = aspectRatio . split ( "/" ) ; try { if ( parts . length == 2 ) { return new BigFraction ( Long . parseLong ( parts [ 0 ] ) , Long . parseLong ( parts [ 1 ] ) ) ; } else if ( parts . length == 1 ) { return new BigFraction ( Long . parseLong ( parts [ 0 ] ) ) ; } } catch ( NumberFormatException e ) { throw new ConversionHelperException ( "Incorrect aspect ratio! Aspect ratio must consist of two numbers." , e ) ; } throw new ConversionHelperException ( "Incorrect aspect ratio! Aspect ratio must consist of two values." ) ; }
target:  Returns a fraction corresponding to the given aspect ratio string.