Memory size of a matrix Array storing binary codes

advertisements

I want to store a list of binary codes in a String[] array, such as in the following example...

String[] str={"10001", "100101","101010101"};

How much memory is required to store the array?


You will find here the following result:

Minimum String memory usage (bytes) = 8 * (int) ((((no chars) * 2) + 45) / 8)