This file contains hidden or 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
--[[ | |
===================================================================== | |
==================== READ THIS BEFORE CONTINUING ==================== | |
===================================================================== | |
Kickstart.nvim is *not* a distribution. | |
Kickstart.nvim is a template for your own configuration. | |
The goal is that you can read every line of code, top-to-bottom, understand |
This file contains hidden or 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 getPersonas; | |
import java.util.Comparator; | |
public class ApellidoComparator implements Comparator<Persona>{ | |
@Override | |
public int compare(Persona o1, Persona o2) { | |
return o1.getApellido().compareTo(o2.getApellido()); | |
} | |
} |
This file contains hidden or 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 repaso; | |
import java.util.Map; | |
import java.util.TreeMap; | |
public class Ejercicio8 { | |
public Map<Character, Integer> frecuencias(String s){ | |
Map<Character, Integer> aux = new TreeMap<Character, Integer>(); | |
Character k; |
This file contains hidden or 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 Circulo { | |
Punto centro; | |
double radio; | |
public Circulo(Punto centro, double radio) { | |
if (radio <= 0) | |
throw new Error("Radio inválido"); | |
this.centro = centro; | |
this.radio = radio; |
This file contains hidden or 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 repaso; | |
public class Intercalador { | |
public int[] intercalar(int[] a, int[] b) { | |
int[] c = new int[a.length + b.length]; | |
int i = 0; | |
int j = 0; | |
int k = 0; |