Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class arg
- {
- static BufferedReader in = new BufferedReader (new InputStreamReader(System.in));
- public static void main(String args []) throws IOException
- {
- System.out.print("enter size of array: ");
- int x= 0;
- x=Integer.parseInt(in.readLine());
- String [] n= new String [x];
- for(int y=0;y<x;y++)
- {
- System.out.print("name #"+(y+1)+": ");
- n[y]=in.readLine();
- }
- System.out.println("**************************");
- for(int z=0;z<x;z++)
- {
- System.out.println("name #"+(z+1)+": "+(n[z]));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement