As the graphs show, using the strings directly requires more heap-memory. This could be because the strings are being generated each time the drawString-method is called, when the strings are used directly.
As the graphs show, using the strings directly requires more heap-memory. This could be because the strings are being generated each time the drawString-method is called, when the strings are used directly.