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 Practico { | |
public static void main(String[] args){ | |
Scanner teclado = new Scanner(System.in); | |
String nombreU=""; | |
String opcion = ""; | |
int cantidadDatos = 10; | |
String[] nombres = new String[cantidadDatos]; | |
String[] apellidos = new String[cantidadDatos]; |
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
<?php | |
$dato1 = $_POST['dato1']; | |
$dato2 = $_POST['dato2']; | |
echo("Datos recibidos: Dato 1: $dato1 Dato 2: $dato2"); | |
?> |
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 static void main(String[] args) { | |
String opcion = ""; | |
String[] datos = new String[10]; | |
Scanner teclado = new Scanner(System.in); | |
//fori | |
for (int i = 0; i < datos.length; i++) { | |
datos[i] = ""; | |
} |
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
/* | |
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license | |
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template | |
*/ | |
import java.util.Scanner; | |
import java.util.Random; | |
/** | |
* |
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 red; | |
import java.net.*; | |
import java.io.*; | |
public class Servidor { | |
private Socket conexionCliente; | |
private ServerSocket conexionServidor; | |
private PrintWriter salida; |
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
html, body{ | |
width:100%; | |
height:100%; | |
margin: 0px; | |
} | |
.fila{ | |
position:relative; | |
width:100%; | |
} |
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 solitario; | |
import java.util.Random; | |
/** | |
* | |
* @author sebastian | |
*/ | |
public class Solitario { |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<!-- Created with Inkscape (http://www.inkscape.org/) --> | |
<svg | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:cc="http://creativecommons.org/ns#" | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
xmlns:svg="http://www.w3.org/2000/svg" | |
xmlns="http://www.w3.org/2000/svg" | |
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
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
static void barajar(int[][] baraja){ | |
Random azar = new Random(); | |
int[] carta1 = {}; | |
int[] carta2 = {}; | |
for (int i = 0; i < baraja.length; i++) { | |
int posicion = azar.nextInt(baraja.length); | |
carta1 = baraja[i]; | |
baraja[i] = baraja[posicion]; | |
baraja[posicion] = carta1; |
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
INSERT INTO publicaciones | |
(titulo, contenido, fecha_pub) | |
VALUES | |
('Título Ejemplo 1', 'Contenido de ejemplo para la primera publicación.','2024-05-30 10:00:00'), | |
('Título Ejemplo 2', 'Este es un contenido de muestra para la segunda publicación.', '2024-05-31 11:00:00'), | |
('Título Ejemplo 3', 'Aquí tenemos otro contenido de ejemplo para la tercera publicación.', '2024-06-01 12:00:00'), | |
('Título Ejemplo 5', 'Este es un ejemplo adicional para la quinta publicación.', '2024-06-03 14:00:00'), | |
('Título Ejemplo 6', 'Contenido aleatorio de ejemplo para la sexta publicación.', '2024-06-04 15:00:00'), | |
('Título Ejemplo 7', 'Otro contenido de ejemplo, esta vez para la séptima publicación.', '2024-06-05 16:00:00'), | |
('Título Ejemplo 8', 'Contenido de muestra par a la octava publicación en la lista.', '2024-06-06 17:00:00'), |
NewerOlder