Glassbeam Interview Question

pseudo code for replacing all 'a' with "the" in a string??

Interview Answer

Anonymous

Jul 18, 2015

-- pseudo code to replace string contents. String replace(String orig, String old, String new) { StringBuffer sb = new StringBuffer(orig); sb.replace(old,new); return sb.toString(); }

1