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
export default class Button extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { | |
return ( | |
<TouchableOpacity | |
onPress={ | |
!this.props.isActive |
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
for(int i = 0; i < textoTraducir.length();i++){ | |
boolean encontrado = false; | |
// Recorreremos el arreglo de letras a eliminar. | |
for(int j = 0; j < letrasEliminar.length ; j++){ | |
if(textoTraducir.charAt(i) == letrasEliminar[j]){ | |
// Si las letras actuales coinciden, encontrado será true. | |
encontrado = true; | |
} | |
} |
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 Censuralia { | |
public static void main(String[] args) { | |
Scanner entrada = new Scanner(System.in); | |
// Le solicitamos al usuario que ingrese el texto a traducir: | |
System.out.println("Ingrs l txt trdcr"); | |
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
/** | |
Esto es una clase. | |
A partir de esta clase, vamos a instanciar varios objetos en la clase "Main.java" | |
Autor: WhitesoundCL | |
*/ | |
public class Vehiculo { | |
private String marca; | |
private String patente; | |
private String color; |
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
/** | |
Ejemplo de CRUD almacenando los objetos en un ArrayList | |
Autor: WhitesoundCL | |
*/ | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
// utilizando el objeto entrada obtendremos lo que el usuario ingrese por consola. |