Skip to content

Commit

Permalink
Reto mouredev#30 - Java
Browse files Browse the repository at this point in the history
  • Loading branch information
masdos committed Jul 31, 2023
1 parent 0904ef3 commit ce75811
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Retos/Reto #30 - EL TECLADO T9 [Media]/java/masdos.java
Original file line number Diff line number Diff line change
Expand Up @@ -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}))*$")) {
Expand Down

0 comments on commit ce75811

Please sign in to comment.