The output of below program:
public class TestClass { public static void main(final String[] args){ String token = \"null\\n\"; token.tr
Since String is immutable
String
token.trim();
doesn't change the underlying value, it returns a new String without the leading and ending whitespace characters. You need to replace your reference
token = token.trim();