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 Ejercicio5 { | |
public static void main( String args[] ){ | |
int cuantos = 5; | |
int primero = 1; | |
int segundo = 3; | |
metodo(cuantos, primero, segundo); | |
} | |
public static void metodo(int cuantos,int primero,int segundo) { |
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 Ejercicio1 { | |
public static void main(String[] args) { | |
int contador = 0; | |
int contador2 = 0; | |
int importe = 0; | |
int users = Integer.parseInt(JOptionPane.showInputDialog("Numero de Usuarios")); | |
for (int i = 0; i < users; i++) { | |
int sueldo1 = Integer.parseInt(JOptionPane.showInputDialog("sueldo")); | |
boolean valido = 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
Aca va el contenido | |
<script> | |
document.write("\<script src='http://code.jquery.com/jquery-latest.min.js' type='text/javascript'>\<\/script>"); | |
</script> | |
<script> | |
$(function(){ | |
$('#content-wrapper').hide(); | |
var autenticado = false; | |
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 com.example; | |
import javax.swing.JOptionPane; | |
public class MinimoComunMultiplo { | |
public static void main(String[] args) | |
{ | |
int a, b, t, t1, x; | |
a = Integer.parseInt(JOptionPane.showInputDialog("A")); |
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 com.example; | |
public class Empresa { | |
private Empleado[] empleados; | |
public Empresa(Empleado[] empleados) { | |
this.empleados = empleados; | |
} | |
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 Ejemplos { | |
public static void main(String args[]){ | |
String cadena = "los nenes"; | |
if(cadena.length() >= 20){ | |
System.out.println("la cadena tiene 20 o mas caracteres"); | |
} | |
else{ | |
System.out.println("la cadena tiene menos de 20 caracteres"); | |
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 com.example; | |
import javax.swing.JOptionPane; | |
public class ValidacionFecha { | |
public static void main(String[] args) { | |
String entrada = JOptionPane.showInputDialog("Ingrese el dia"); | |
int dia = Integer.parseInt(entrada); |
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 Operacion3 { | |
public static void main(String[] args) | |
{ | |
int calc = Integer.parseInt(JOptionPane.showInputDialog("ingrese numero")); | |
if (calc < 0 ) | |
{ | |
JOptionPane.showMessageDialog(null, "el numero es; negativo"); | |
} |
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 javax.swing.*; | |
/** | |
* programa que calcula 2 numeros | |
* enteros ingresados por el usuario | |
* @author DiegoFenandoEcheverry (Godie007) | |
*/ | |
public class Sumatoria { |
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 com.example; | |
public class Ejercicio { | |
public static void main(String[] args) | |
{ | |
int a, b, c, d; | |
a = 5; | |
b = 2; |
NewerOlder