Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
A method used for displaying output on the console. It takes input parameters (if necessary) and performs certain actions such as printing text or performing calculations.
Related terms
println(): Similar to "print()", but adds a new line after displaying output.
printf(): A method used for formatted output, where you can specify the format and position of variables within a string.
nextLine(): A method used to read input from the console as a whole line of text.