What is the main function of the System.out.printf method in Java?
System.out.printf
To declare variables
To read user input
To print formatted text
To initialize arrays