From debeca1c9db60cce0b99da0fd4b0e563a875ae7d Mon Sep 17 00:00:00 2001 From: Laifsyn <99366187+Laifsyn@users.noreply.github.com> Date: Sat, 6 Apr 2024 17:11:53 +0000 Subject: [PATCH] Rename Utilities --- src/main/java/com/utp/clsHerramientas/pry1/App.java | 4 ++-- src/main/java/com/utp/utils/{$.java => Utils.java} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/main/java/com/utp/utils/{$.java => Utils.java} (97%) diff --git a/src/main/java/com/utp/clsHerramientas/pry1/App.java b/src/main/java/com/utp/clsHerramientas/pry1/App.java index 3e13add..f9235f9 100644 --- a/src/main/java/com/utp/clsHerramientas/pry1/App.java +++ b/src/main/java/com/utp/clsHerramientas/pry1/App.java @@ -4,7 +4,7 @@ import java.util.ArrayList; import java.util.Optional; -import com.utp.utils.$; +import com.utp.utils.Utils; // · Opción 1: Método llamado mtdListaNumeros, que determina la media de una lista indefinida de números positivos, terminados con un número negativo. La entrada y salidas deben realizarse dentro del método principal. public class App { @@ -66,7 +66,7 @@ public void mtdFactorial(String string_num) { for (int i = 1; i <= num; i++) { factorial = factorial.multiply(new BigDecimal(i)); } - System.out.println("El factorial de " + num + " es: " + $.pretty_number(factorial)); + System.out.println("El factorial de " + num + " es: " + Utils.pretty_number(factorial)); } } \ No newline at end of file diff --git a/src/main/java/com/utp/utils/$.java b/src/main/java/com/utp/utils/Utils.java similarity index 97% rename from src/main/java/com/utp/utils/$.java rename to src/main/java/com/utp/utils/Utils.java index 109d6a2..c464f51 100644 --- a/src/main/java/com/utp/utils/$.java +++ b/src/main/java/com/utp/utils/Utils.java @@ -4,7 +4,7 @@ import java.util.ArrayList; import java.util.Collections; -public class $ { +public class Utils { final static BigDecimal thousand = BigDecimal.valueOf(1000); public static String pretty_number(BigDecimal number) { @@ -61,7 +61,7 @@ static public Integer[] into_triplets(Integer num) { } static public void pretty_print_int(Integer num) { - var triplets = $.into_triplets(num); + var triplets = Utils.into_triplets(num); for (int i = 0; i < triplets.length; i++) { if (i == 0) { System.out.print(triplets[i]);