Amtex Systems Interview Question

Java code to print each character in a string excluding white space