I want to display an image with drawn lines on a map, and separate images made for every single section in the image (several connected lines). I have written this code:
lineImage1 is defined as BufferedImage lineImage1[], which is an array of BufferedImages. The return value of the method is BufferedImage.
lineImage1
BufferedImage lineImage1[]
BufferedImage
You either want to change the return type to an array of BufferedImages, or only return a single BufferedImage.