From da0eb4e1e3088b7654a3a89cff7c021028f2dea8 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 21 Mar 2024 19:18:42 +0100 Subject: [PATCH] classlib: add PrintStream.printf --- .../java/org/teavm/classlib/java/io/TPrintStream.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/classlib/src/main/java/org/teavm/classlib/java/io/TPrintStream.java b/classlib/src/main/java/org/teavm/classlib/java/io/TPrintStream.java index 063a726ce..bda2e9af8 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/io/TPrintStream.java +++ b/classlib/src/main/java/org/teavm/classlib/java/io/TPrintStream.java @@ -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); }