public static boolean isPunctuation(char c) {
return c == ','
|| c == '.'
|| c == '!'
|| c == '?'
|| c == ':'
|| c == ';'
;
}
Read full article from Returns true if specified character is a punctuation character. : String char « Data Type « Java
Read full article from Returns true if specified character is a punctuation character. : String char « Data Type « Java
No comments:
Post a Comment