From ce758115b12de495de85589ff45396c794f7e96d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Ayll=C3=B3n=20S=C3=A1nchez?= Date: Mon, 31 Jul 2023 19:34:58 +0200 Subject: [PATCH] Reto #30 - Java --- Retos/Reto #30 - EL TECLADO T9 [Media]/java/masdos.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Retos/Reto #30 - EL TECLADO T9 [Media]/java/masdos.java b/Retos/Reto #30 - EL TECLADO T9 [Media]/java/masdos.java index 774533abc8..e86b1f5fb0 100644 --- a/Retos/Reto #30 - EL TECLADO T9 [Media]/java/masdos.java +++ b/Retos/Reto #30 - EL TECLADO T9 [Media]/java/masdos.java @@ -18,6 +18,10 @@ */ public class masdos { + public static void main(String[] args) { + System.out.println(translateT9Code("6-666-88-777-33-3-33-888")); + } + public static String translateT9Code(String t9Code) { if (!t9Code.matches( "^(0|([2-58])\\2{0,2}|([679])\\3{0,3})(-(0|([2-58])\\6{0,2}|([679])\\7{0,3}))*$")) {