Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ejercicio2;
- import java.util.Scanner;
- public class Ejercicio2 {
- public static void main(String[] args) {
- Scanner sc= new Scanner(System.in);
- Object [] o= new Object [10];
- for (int i = 0; i < 10; i++) {
- System.out.print("Introduce dato numero: "+i);
- o[i]=sc.next();
- }
- for (int i = 0; i < 10; i++) {
- System.out.println(o[i]);
- }
- }
- }
Add Comment
Please, Sign In to add comment