package Part1;

/**
 * Created by matao on 10/15/16.
 */
public class Q4 {
}

@@ -46,16 +46,533 @@
 /15/16.%0A
+ *%0A * %3Cp%3E%0A * Write a method to replace all spaces in a string with'%2520'.%0A * You may assume that the string has sufficient space at the end of the string%0A * to hold the additional characters,%0A * and that you are given the %22true%22 length of the string.%0A * (Note: if imple- menting in Java,%0A * please use a character array so that you can perform this opera- tion in place.)%0A *%0A * EXAMPLE%0A * Input: %22Mr John Smith Output: %22Mr%2520Dohn%2520Smith%22%0A *%0A * %E5%B0%86%E5%AD%97%E7%AC%A6%E4%B8%B2%E4%B8%AD%E7%9A%84%E7%A9%BA%E6%A0%BC%E5%85%A8%E9%83%A8%E6%9B%BF%E6%8D%A2%E4%B8%BA%22%2520%22%EF%BC%8C%E5%81%87%E5%AE%9A%E8%AF%A5%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%B0%BE%E9%83%A8%E6%9C%89%E8%B6%B3%E5%A4%9F%E7%9A%84%E7%A9%BA%E9%97%B4%E5%AD%98%E6%94%BE%E6%96%B0%E5%A2%9E%E5%AD%97%E7%AC%A6%EF%BC%8C%E5%B9%B6%E4%B8%94%E7%9F%A5%E9%81%93%E5%AD%97%E7%AC%A6%E4%B8%B2%E7%9A%84%22%E7%9C%9F%E5%AE%9E%22%E9%95%BF%E5%BA%A6%E3%80%82%0A * Java%E8%AF%B7%E7%94%A8%E5%AD%97%E7%AC%A6%E6%95%B0%E5%AD%97%E5%AE%9E%E7%8E%B0%E3%80%82%0A
  */%0Apubl

Add Q4