Skip to content

Commit

Permalink
nueva utilidad para mostrar una o muchas instrucciones
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Bernabe Munoz Navarrete committed May 16, 2024
1 parent c03c4bd commit 947bcf9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Vinceto/src/Util/Instrucciones.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package Util;

public class Instrucciones {

private String nombreApp;
private String[] instrucciones;

public Instrucciones(String nombreApp, String[] instrucciones) {
this.nombreApp = nombreApp;
this.instrucciones = instrucciones;
}

public void mostrarInstrucciones() {
System.out.println("Bienvenido a " + nombreApp);
System.out.println("Instrucciones:");
for (int i = 0; i < instrucciones.length; i++) {
System.out.println((i + 1) + ". " + instrucciones[i]);
}
//System.out.println("¡Esperamos que disfrutes usando la aplicación!");
}
}

0 comments on commit 947bcf9

Please sign in to comment.