import java.io.*;
class NameArray
{
public static void main(String args[]) throws IOException
{
BufferedReader BF= new BufferedReader(new InputStreamReader (System.in));
String Str[]=new String[5];
int i;
System.out.println("Enter Five Names : ");
for(i=0;i<=4;i++)
{
Str[i]=BF.readLine();
}
System.out.println("Names Entered are : ");
for(i=0;i<=4;i++)
{
System.out.println(Str[i]);
}
}
}
Dinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.
Related Articles
Basic Courses
Advance Courses