From random integers to an actual String?

It would seem that your encoding scheme is, er, crazy First, you take the ASCII value of a string, then take the character representation of that ASCII value, then store it as a string So abc" => {97, 98, 99} => "979899 But since you are using ASCII, which can have values of 100 or more, you are padding your ints with 0 if they are under 100: abc" => {97, 98, 99} => {"097", "098", "099"} => "097098099 But you decide to do this only sometimes, because somehow aba" => "97098097 That is, the first "a" is turned into "97", but the last "a" is turned into "097 I'd say you should fix your encoding scheme first Also, these are hopefully not "random integers" because you are trying to turn them into sensible strings. Otherwise a simple mapping such as base64 would easily map any integers to strings, they just might not make much sense In fact, they aren't even really integers. You're storing your encoded strings as strings.

It would seem that your encoding scheme is, er, crazy. First, you take the ASCII value of a string, then take the character representation of that ASCII value, then store it as a string. So "abc" => {97, 98, 99} => "979899".

But since you are using ASCII, which can have values of 100 or more, you are padding your ints with 0 if they are under 100: "abc" => {97, 98, 99} => {"097", "098", "099"} => "097098099" But you decide to do this only sometimes, because somehow "aba" => "97098097" That is, the first "a" is turned into "97", but the last "a" is turned into "097". I'd say you should fix your encoding scheme first. Also, these are hopefully not "random integers" because you are trying to turn them into sensible strings.

Otherwise a simple mapping such as base64 would easily map any integers to strings, they just might not make much sense. In fact, they aren't even really integers. You're storing your encoded strings as strings.

Public static void main(String srgs){ String aaa = "100101101"; String a = split(aaa, 3); String s = ""; for(int i=0;iToString(c); } System.out. Println(s); } public static String split(String str, int groupIndex){ int strLength = str.length(); int arrayLength = strLength/groupIndex; String splitedArray = new StringstrLength/groupIndex; for(int i=0;iSubstring(groupIndex, str.length()); arrayLength = str.length(); splitedArrayi = splitedStr; } return splitedArray; } The most important is that ASCII string covert to Char value, than turn it to real Character value in the string. The ASCII code length need be fix by 3 can be helpful in this case.

Also, these are hopefully not "random integers" because you are trying to turn them into sensible strings. Otherwise a simple mapping such as base64 would easily map any integers to strings, they just might not make much sense. In fact, they aren't even really integers.

You're storing your encoded strings as strings.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions