mirror of
https://github.com/konsoletyper/teavm.git
synced 2024-11-21 01:00:54 +08:00
classlib: add PrintStream.printf
This commit is contained in:
parent
403da28830
commit
da0eb4e1e3
@ -269,6 +269,14 @@ public class TPrintStream extends TFilterOutputStream {
|
||||
print('\n');
|
||||
}
|
||||
|
||||
public TPrintStream printf(String format, Object... args) {
|
||||
return format(format, args);
|
||||
}
|
||||
|
||||
public TPrintStream printf(Locale locale, String format, Object... args) {
|
||||
return format(locale, format, args);
|
||||
}
|
||||
|
||||
public TPrintStream format(String format, Object... args) {
|
||||
return format(Locale.getDefault(), format, args);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user