How do you remove the \\n, \\t and spaces between strings in java?
Use String.replaceAll with a regular expression to remove all whitespace:
s = s.replaceAll("\\s+", "");