Boolean isLetterOrDigit Method

Send Snippet To: Save this snippet to Code Collector Pro -- view all bassglider's snippets
language: Java
license: Other

Code for Snippet:

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; 		  
comments powered by Disqus


Link to this snippet:

Download to Code Collector

To use the direct link to your snippet on either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 783
Date Added: 2008-03-19 02:57:11
Last Modified: 0000-00-00 00:00:00

Web Analytics