Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.*;
- public class Arreglos {
- public static void main(String[] args) {
- String[] a = new String[10];
- JOptionPane.showMessageDialog(null,"Escribir 10 números enteros: ");
- for (int i = 0; i < a.length; i++) {
- a[i]=JOptionPane.showInputDialog("Introducir # " + (i+1) + ": ");
- }
- for (int i = 0; i < a.length; i++) {
- JOptionPane.showMessageDialog(null,"Los numeros son:" +a[i] );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement