package com.dnlab.jiny.highfreq;

public class ConvertAscii {

    

}

@@ -60,12 +60,634 @@
  %7B%0A%0A    
+private String inputMessage;%0A    private byte%5B%5D ascii;%0A    private StringBuffer code;%0A%0A    public ConvertAscii(String message)%7B%0A        this.inputMessage = message;%0A        ascii = new byte%5BinputMessage.length()%5D;%0A        code = new StringBuffer();%0A        StringtoCode();%0A    %7D%0A%0A    private void StringtoCode()%7B%0A        for(int i=0; i %3C inputMessage.length(); i++)%7B%0A            ascii%5Bi%5D = (byte) inputMessage.charAt(i);%0A            code.append(Integer.toBinaryString(ascii%5Bi%5D));%0A        %7D%0A    %7D%0A%0A    public byte%5B%5D getAscii()%7B%0A        return ascii;%0A    %7D%0A%0A    public String getCode()%7B%0A        return code.toString();%0A    %7D
 %0A%0A%7D%0A

Add ConvertAscii class that chage string to ascii