static Integer denominator ( final String s ) { if ( "" . equals ( s ) ) { return null ; } String [ ] tokens = s . split ( "/" ) ; return ( tokens . length < 2 ) ? null : emptyToNullInteger ( tokens [ 1 ] ) ; }
Parse the specified string as a fraction and return the denominator if any .