Created
May 18, 2024 16:45
-
-
Save duranangie/f13505d4f737ac92aff4529fa50bb711 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
import java.util.Scanner; | |
public class Teclado { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
String vector[] = new String[8]; | |
for (int i = 0; i < vector.length; i++) { | |
System.out.println("escribir nombres"); | |
vector[i] = scan.next(); | |
} | |
System.out.println("los nombres ingresados son: "); | |
for (int i = 0; i < vector.length; i++) { | |
System.out.println(vector[i]); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment