Answer:
import java.util.*;
public class Country
{
public static void main(String args[])
{
char ch,temp;
int flag = 0;
String country;
ArrayList<String> countries = new ArrayList<String>();
Scanner sc = new Scanner(System.in);
do
{
System.out.println("enter the country you have visited:\t");
country = sc.next();
for(int i=0;i<countries.size();i++)
{
if(countries.get(i).equals(country))
{
System.out.println("you have already entered the country");
flag = 1;
break;
}
}
if(flag == 0)
{
countries.add(country);
flag = 0;
}
System.out.println("want to add another country(y/n):\t");
ch = sc.next().charAt(0);
}while(ch!='n');
Collections.sort(countries);
System.out.println("Countries you have visited:\t"+countries);
System.out.println("Total number of contries visited:"+countries.size());
}
}
Explanation:
<span>The answer is true.
Once documents are created, they may be accessed again and have envelopes pointing to them even when the documents are empty.</span>
LAN (Local Area Network)
<span>Basically, to be precise, Intranet is
an extension of LAN in which IP services like HTTP, TCP/IP and several other
standard protocols are added. Intranet is a private internet network that is
used to add internet like services in an internal LAN.</span>
The answer would be True.