question: static boolean negZero ( final String str , final int dp ) { if ( str . charAt ( 0 ) != '-' || str . charAt ( 1 ) != '0' ) { return false ; } else if ( dp == 0 ) { return true ; } else if ( str . charAt ( 2 ) != '.' ) { return false ; } for ( int i = 0 ; i < dp ; i ++ ) { if ( str . charAt ( 3 + i ) != '0' ) { return false ; } } return true ; }
target:  Check if a string is of the form "-0.00".