-
-
Save parzibyte/46f3bb84d5b1dc4f785449148064a54f to your computer and use it in GitHub Desktop.
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 Main { | |
public static void main(String[] args) { | |
Cuestionario c = new Cuestionario(); | |
c.agregarPregunta(new Pregunta("Lenguaje de programación más fácil de aprender", List.of( | |
new Respuesta("Java", false), | |
new Respuesta("Go", false), | |
new Respuesta("Python", true), | |
new Respuesta("JavaScript", false) | |
))); | |
c.agregarPregunta(new Pregunta("1 + 1", List.of( | |
new Respuesta("3", false), | |
new Respuesta("2", true), | |
new Respuesta("4", false) | |
))); | |
c.agregarPregunta(new Pregunta("¿NetBeans es un lenguaje de programación?", List.of( | |
new Respuesta("Sí", false), | |
new Respuesta("No", true) | |
))); | |
c.agregarPregunta(new Pregunta("Lenguajes de programación (¡Miren! alguien dijo el chiste de que HTML no es un lenguaje de programación, ríanse) que sirven para programar en la web del lado del cliente", List.of( | |
new Respuesta("HTML, CSS y JavaScript", true), | |
new Respuesta("PHP, Python y JavaScript", false), | |
new Respuesta("C y C++", false), | |
new Respuesta("Perl y Kotlin", false), | |
new Respuesta("Go, JavaScript y TypeScript", false) | |
))); | |
c.preguntar(); | |
c.imprimirResultados(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment