Site hosted by Angelfire.com: Build your free website today!

public class StringTest { public static void main(String args[]) { String in_text = "9jkX22tXcfxgXhhxdx6"; String out_text = ""; int i;

for ( i = 0; i < in_text.length(); i++ ) { if ( in_text.charAt(i) != 'X' && in_text.charAt(i) != 'x' ) out_text = out_text + in_text.charAt(i); } System.out.println("In: " + in_text + " Out: " + out_text); } }

[Return]