/*
 *Hide It 
 * 
 * This application will hide a string within another string by merging it with randomly generated string.
 * 
 * @Hongda Zeng (hongda.code@gmail.com)
 * September 27, 2014
 */
import java.util.*;

public class Merger {
    public static String merge (String a, String b) {
        String result = "";
        for ( int i = 0; i < a.length(); i++ ) {
            result += "" + a.charAt(i) + b.charAt(i);
        }
        return result;
    }
    
    public String randomString(int length){
        final String Pickline = "0123456789abcdefghijklmnopqrestuvwxyz";
        // The method will choose random characters from the above line
        Random randGen = new Random();
        // Create randomnese
        StringBuilder builder = new StringBuilder(length);
        for ( int i = 0; i < length; i++ ) {
            builder.append ( Pickline.charAt(randGen.nextInt(Pickline.length())));
        }
        return builder.toString();
    }
}
@@ -471,16 +471,23 @@
  public 
+static 
 String r
@@ -962,9 +962,627 @@
 ;%0A    %7D%0A
+    %0A    public static void main (String%5B%5D args)%7B%0A        Scanner reader = new Scanner (System.in);%0A        System.out.println (%22Welcome to Hideit 1.0%22);%0A        System.out.println (%22This very simple application will receieve a string from the user%22%0A                           + %22and merge it with a randomly generated string%22);%0A        System.out.println (%22Please enter your string: %22);%0A        String userString = reader.nextLine();%0A        int userLen = userString.length();%0A        String ranString = randomString(userLen);%0A        System.out.println (%22-Your new string is: %22 + merge(userString,ranString));%0A    %7D%0A
 %7D

add main()