Se puede visualizar en https://codepen.io/LUIS-SEBASTIAN-DE-LOS-ANGELES-HERNANDEZ/pen/xbGOQzX
Se puede ver el resultado en CodePen
- Todos los archivos se deben considerar en el contexto de un proyecto de Laravel
- El nombre del archivo indica su ubicación en el proyecto, usando dos guiones bajos. Por ejemplo: routes__web.php indica que se trata del archivo web.php ubicado en el directorio routes del proyecto
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 Auto { | |
String color = ""; | |
String marca = ""; | |
String modelo = ""; | |
Motor maquina = new Motor(); | |
///A | |
Rueda rueda1 = new Rueda(); | |
Rueda rueda2 = new Rueda(); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<body> | |
<form action="/usuario/preferencias" method="post"> |
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
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 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
<?php | |
$dato1 = $_POST['dato1']; | |
$dato2 = $_POST['dato2']; | |
echo("Datos recibidos: Dato 1: $dato1 Dato 2: $dato2"); | |
?> |
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 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 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
/* | |
* 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 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 red; | |
import java.net.*; | |
import java.io.*; | |
public class Servidor { | |
private Socket conexionCliente; | |
private ServerSocket conexionServidor; | |
private PrintWriter salida; |