I want to get binary (011001..) from a String but instead i get [B@addbf1 , there must be an easy transformation to do this but I don\'t see it.
public stati
Arrays do not have a sensible toString override, so they use the default object notation.
toString
Change your last line to
return Arrays.toString(infoBin);
and you'll get the expected output.