I'm trying to draw an image using Graphics2D in Java, but the path cannot be read because Illegal escape character in string literal
I am using this line of code:
g2.drawImage("C:\Users\User\Pictures\Untitled", playerX, playerY);
However, due to the backslashes in the path the path returns an error. How can I fix this?