beryx / text-io

A library for creating interactive console applications in Java
http://text-io.beryx.org/
Apache License 2.0
343 stars 45 forks source link

Provide TextTerminal.printf #1

Closed janmaterne closed 8 years ago

janmaterne commented 8 years ago

The example shows the output with String concatenation TextTerminal terminal = textIO.getTextTerminal(); terminal.println("\nUser " + user + " is " + age + " years old, " + "was born in " + month + " and has the password " + password + ".");

It would be easier to read if there is a printf method TextTerminal terminal = textIO.getTextTerminal(); terminal.printf( "\nUser %s is %s years old, was born in %s and has the password %s.", user, age, month, password );

siordache commented 8 years ago

Implemented in 1.6.0.