Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Rename Utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Laifsyn committed Apr 6, 2024
1 parent ed28046 commit debeca1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/utp/clsHerramientas/pry1/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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]);
Expand Down

0 comments on commit debeca1

Please sign in to comment.