To print a string with newlines in Java, you can include the newline character (\n) within the string where you want the line breaks to appear. Alternatively, you can use a platform-independent approach by utilizing Java’s built-in method to insert the appropriate newline character for the operating system. This way, the string will display with line breaks at the specified points.