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 ejemplo_polimorfismo; | |
| public class Animal { | |
| public void makeSound() { | |
| System.out.println("Animal: "); | |
| } | |
| void reproducirAudio(String directorio_gato) { | |
| throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody | |
| } |
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 com.mycompany.actividad_15; | |
| public class Actividad_15 { | |
| public static void main(String[] args) { | |
| Jugador j1 = new Jugador("Delantera","Raul","10/05/2000","Morelia"); | |
| Arbitro a1 = new Arbitro("FIM","Principal","Saul","23/03/1989","Veracruz"); | |
| Cuerpo_tecnico c1 = new Cuerpo_tecnico("Formacion","Maria","30/06/1999","Nayarit"); | |
| System.out.println("\033[0;33mJugador"); |
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 actividad_25def; | |
| import java.sql.Connection; | |
| import java.sql.SQLException; | |
| import java.sql.Statement; | |
| import javax.swing.JOptionPane; | |
| import java.sql.DriverManager; | |
| import java.sql.ResultSet; | |
| import javax.swing.table.DefaultTableModel; | |
| public class VentanaPrincipal extends javax.swing.JFrame { |
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 actividad_22; | |
| public class Actividad_22 extends javax.swing.JFrame { | |
| /** | |
| * Creates new form Principal | |
| */ | |
| public Actividad_22() { | |
| initComponents(); | |
| } |
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 actividad_21; | |
| import java.io.File; | |
| import javafx.embed.swing.JFXPanel; | |
| import javafx.scene.media.Media; | |
| import javafx.scene.media.MediaPlayer; | |
| import javax.swing.JOptionPane; | |
| public class Actividad_21 extends javax.swing.JFrame { |
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 actividad_20; | |
| public class Actividad_20 { | |
| /** | |
| * @param args the command line arguments | |
| */ | |
| public static void main(String[] args) { | |
| Audio repro = new Audio(); |
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 actividad_19; | |
| import javax.swing.JOptionPane; | |
| public class Actividad_19 { | |
| public static void main(String[] args) { | |
| String nombre_alumno1; | |
| String nombre_maestro1; | |
| String edad_alumno1; | |
| String edad_maestro1; |
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 actividad_18; | |
| public class Actividad_18 { | |
| public static void main(String[] args) { | |
| Alumno a1 = new Alumno("210823312-1", "408", "Regular", "Rodrigo", 18, "3382649223", "Av. Cuernavaca 1255"); | |
| Alumno a2 = new Alumno("327688292-0", "601", "Irregular", "Brayan", 17, "3382538163", "Av. Lopez 2926"); | |
| Alumno a3 = new Alumno("829153822-2", "303", "Regular", "Karla", 16, "3391820153", "Av. Moreno 3302"); | |
| Alumno a4 = new Alumno("392540126-1", "205", "Regular", "Juan",17, "3337638228", "Av. Colera 8722"); | |
| Alumno a5 = new Alumno("238764192-3", "102", "Irregular", "Damian", 18, "3339264825", "Av. Moctezuma 0392"); |
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 com.mycompany.actividad_17; | |
| import java.util.Scanner; | |
| public class Actividad_17 { | |
| public static void main(String[] args) { | |
| // Crear los objetos de tipo Personaje | |
| Personaje red = new Personaje("Red", 1, "Spray Rojo", "Poder 1"); | |
| Personaje chuck = new Personaje("Chuck", 3, "Spray Amarillo", "Poder 2"); | |
| // Obtener el nombre del usuario |
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 com.mycompany.actividad_16; | |
| import java.util.Scanner; | |
| public class Actividad_16 { | |
| public static void main(String[] args) { | |
| Scanner scanner = new Scanner(System.in); | |
| System.out.println("Introduce información de los tres Koopa Troopas:"); |
NewerOlder