groups

Link to this snippet:


Download to Code Collector

language: Java
licence: Other

Boolean isLetterOrDigit Method

options: send to code collectorview all bassglider's snippets
public boolean setPassword(String newPassword) {
	this.password = newPassword;
	for (int i=0; i < this.password.length(); i  ) {
		if (!Character.isLetterOrDigit(this.password.charAt(i))) {
			return false;
		}
	} return true; 		  
}