I’m working on a project that requires converting a character into a two dimensional array in Android. For example, if I have the character (or string) “A”, I must create a two dimensional array like this:
[0,0,1,0,0]
[0,1,0,1,0]
[0,1,0,1,0]
[1,0,0,0,1]
[1,1,1,1,1]
[1,0,0,0,1]
[0,0,0,0,0]
Graphically:

How can I deal with this problem?
You can try something like:
You will need to hardcode all the patterns.
Edit: I changed my code to use zeros and ones to represent the pattern. It is easier to read than using booleans.