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.io.*; | |
public class AplicacionArrObjeto1 | |
{ | |
private static Cuenta arreglo[]; | |
// para pedir los valores de teclado de el arreglo de cuentas ya creada | |
public static void pide_arreglo() throws IOException | |
{ | |
BufferedReader 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
/** | |
* @author: John Ortiz | |
* @version: 1.01, 05/21/84 | |
* @serial Clase serializable. | |
*/ | |
public class Autenticacion implements Serializable | |
{ | |
// implementación clase | |
} |
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 abstract void com.altersoft.ws.WebServices.agregarDatosPA(int,int,int,int,java.lang.String) |
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 Matriz | |
{ | |
/** | |
* Punto de entrada de la aplciación. | |
* @param args Argumentos pasados desde la consola o terminal. | |
*/ | |
public static void main(String[] args) | |
{ | |
int[][] matrizOriginal = { { 1, 3, 5, 1}, {2, 4, 6, 5 }, { 7, 9, 0, 7 }, { 0,0,0,0}, {1,1,1,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
CREATE TABLE T_Pedido ( | |
PedidoId INTEGER NOT NULL UNIQUE, | |
clienteId INTEGER NOT NULL UNIQUE, | |
FOREIGN KEY (clienteID) REFERENCES | |
T_Cliente, | |
PRIMARY KEY (PedidoId, clienteId)); |
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
E:\Curso Java\Ejemplos>java NoSincronizado | |
Suma: Resta: 0 | |
0 | |
Suma: Resta: 0 | |
0 | |
Suma: Resta: 0 | |
Suma: 1 | |
Suma: 2 | |
Suma: 3 |
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
int f(){ | |
return 5; | |
} |
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
int x = 5; | |
int f(){ | |
x++; | |
return x; | |
} |
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
class Visibilidad | |
{ | |
private int X = 0; | |
public void Metodo(int X) | |
{ | |
Console.WriteLine( "Valor de X: " + X ); | |
} | |
} |
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
class SistemaTiposUnificado | |
{ | |
public static void PruebaSistemaTipoUnificado() | |
{ | |
bool listo = false; | |
Console.WriteLine(String.Format("Valor de `listo`: {0}", listo.ToString())); | |
DateTime fechaHora = new DateTime(); |
OlderNewer