JoseLargo

Untitled

Mar 10th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. package ejercicio2;
  2.  
  3. import java.util.Scanner;
  4. public class Ejercicio2 {
  5.  
  6.    
  7.     public static void main(String[] args) {
  8.         Scanner sc= new Scanner(System.in);
  9.         Object [] o= new Object [10];
  10.        
  11.        
  12.         for (int i = 0; i < 10; i++) {
  13.             System.out.print("Introduce dato numero: "+i);
  14.             o[i]=sc.next();
  15.         }
  16.         for (int i = 0; i < 10; i++) {
  17.             System.out.println(o[i]);
  18.         }
  19.     }
  20.    
  21. }
Add Comment
Please, Sign In to add comment