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
quarkus.log.syslog.enable=true | |
quarkus.log.handler.gelf.enabled=true | |
quarkus.log.handler.gelf.host = Servidor de Elasticsearch:puerto | |
quarkus.http.host-enabled=true | |
quarkus.log.handler.gelf.level=ALL | |
quarkus.log.handler.gelf.include-log-message-parameters=true | |
quarkus.log.handler.gelf.additional-field.value=LOGGER | |
quarkus.log.handler.gelf.additional-field.type=discover | |
quarkus.log.console.enable=true | |
quarkus.log.console.level=ALL |
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 class EjemploForStringBuilder { | |
public static void main(String[] args) { | |
StringBuilder sb = new StringBuilder(); | |
for (int i = 1; i <= 10; i++) { | |
sb.append(i); | |
if (i < 10) { | |
sb.append(","); | |
} | |
} | |
String linea = sb.toString(); |
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
import java.util.Scanner; | |
public class Arbol { | |
public void arbolFamiliar(){ | |
String nombres []= new String [3]; | |
Scanner lector= new Scanner (System.in); | |
System.out.println("\n - Digite un nombre: \n"); | |
nombres[0]=lector.nextLine(); |
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
import java.util.Scanner; | |
public class Arreglo { | |
public void mostrarNumeros(){ | |
int mostrar []= new int [15]; | |
System.out.println("\n - Digite un numero:"); | |
Scanner lector= new Scanner (System.in); | |
mostrar[0]=lector.nextInt(); |
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
import java.util.Scanner; | |
public class Grados { | |
double grado; | |
double farenheit; | |
public void convertirGrados(){ | |
System.out.println ("\n Introduzca el Grado Celsius: \n"); |
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
import java.util.Scanner; | |
public class Primo2 { | |
int n; | |
int cont; | |
public void calcularNumeroPrimo(){ | |
System.out.println("\n Digite un numero \n"); | |
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
import java.util.Scanner; | |
public class Primo { | |
int n; | |
int cont; | |
public void calcularNumeroPrimo(){ | |
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
import java.util.Scanner; | |
public class Par { | |
int n1; | |
int n2; | |
int resultado; | |
public void mostrarPar() { | |
Scanner num1=new Scanner(System.in); |
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
import java.util.Scanner; | |
public class Calculadora { | |
int opcion; | |
int n1; | |
int n2; | |
int resultado; | |
public void opciones() { |
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
import java.util.Scanner; | |
public class Multiplo { | |
int numero, d1, d2, d3, d4, m1, m2, m3; | |
public void mostrarMultiplos() { | |
Scanner num=new Scanner(System.in); | |
NewerOlder