Java: Exercise - Delete Blanks

Write a method to delete all blanks from its parameter. The method signature is
   public static String deblank(String s);
   

Sample output

   deblank("abc") returns "abc" (ie, no changes)
   deblank("I'm feeling fine.") returns "I'mfeelingfine."
   
Delete Blanks - Solution