Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 15, 2021 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/46f3bb84d5b1dc4f785449148064a54f to your computer and use it in GitHub Desktop.
Save parzibyte/46f3bb84d5b1dc4f785449148064a54f to your computer and use it in GitHub Desktop.
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