Hello Guys,
I want to make an image out of characters. Therefore I started to write the constructor of my new class. My first idea was to use a two dimensional char array as parameter. But then I didn't know, how to went through it with two for loops, meaning I didn't knwo how to get the height and the width of the array.
My second idea was to use 0 to infinite one dimensional char arrays as parameters, so that every line would be an own array:
But then I had the problem, that I can't differentiate between the length of the image arrays and the number of parameter because you ask the same way for both, like image.length.
Has anyone an idea to solve one of the problems or do I have to use width and length as parameters, too?
public Image(char[]... image){ }