public static boolean endsWithPunc ( String str ) { if ( str . endsWith ( "." ) || str . endsWith ( "?" ) || str . endsWith ( "!" ) || str . endsWith ( "," ) || str . endsWith ( ":" ) || str . endsWith ( "\"" ) || str . endsWith ( "'" ) || str . endsWith ( "''" ) || str . endsWith ( ";" ) ) { return true ; } return false ; }
Ends with sign .