I would like to write a method that displays one’s initials in block letters, making large letters out of corresponding small letters, eg:
MMMMMMMMMM CCCCCCCCC
MM MM MM CCCCCCCCC
MM MM MM CC
MM MM MM CC
MM MM MM CC
MM MM CCCCCCCCC
MM MM CCCCCCCCC
Any ideas as to how I should go about this?
The first step is to have a way of creating each individual letter (A, B, …, Z). Store these as
String[]s. For example, your M would be:I’ve just taken all of the lines and stored them as an array. Now if you have 2
String[], sayletter1andletter2, you can ‘concatenate’ them like this:Now you simply print:
In your case it would be something like this: