This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.jacoco</groupId> | |
<artifactId>jacoco-maven-plugin</artifactId> | |
<version>0.8.7</version> | |
<executions> | |
<execution> | |
<id>prepare-agent</id> | |
<goals> | |
<goal>prepare-agent</goal> | |
</goals> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git flow init | |
git flow feature start newf1 | |
4. Crear un tercer feature a partir de otro feature | |
git flow feature start newf3 feature/newf2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String getFecha(){ | |
return LocalDateTime.now().format(DateTimeFormatter.ofPattern("dd/MM/yyyy")); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; | |
public class CsvFileManager { | |
public static void csvReader(String file) { | |
BufferedReader reader = null // aqui cambiar la ruta del csv; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.util.Scanner; | |
public class Files { | |
public static void crearArchivo() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static int Mcd(int a, int b) | |
{ | |
if (b > a) return Mcd(b, a); | |
else if (b == a) return a; | |
else return Mcd(a-b,b); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static long Factorial(long n) { | |
if (n==0) return 1; | |
else return n * Factorial(n-1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uwu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// usar con su respectiva interfaz | |
public static void bubbleSort(Objeto[] objetos) { | |
for (int i = 0; i < personas.length - 1; i++) { | |
for (int j = 0; j < personas.length - 1; j++) { | |
if (personas[j].compareTo(personas[j + 1]) > 0) { | |
Persona aux = personas[j]; | |
personas[j] = personas[j + 1]; | |
personas[j + 1] = aux; | |
} | |
} |