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:
Answer:
<em>Lillipop</em>
Explanation:
If you have your hands correctly placed on the keyboard, the only hand needed to type the word, "lillipop", is the left hand!
<em>Hope I was of Assistance</em><u><em> #SpreadTheLove <3</em></u>
Basic Input-Output System
Answer:
Carbon Monoxide poisoning
Explanation:
According to my research on studies conducted by various medical professionals, I can say that based on the information provided within the question the most likely cause for this is Carbon Monoxide poisoning. This is a gas very similar to oxygen although it is poisonous to living organisms and very flammable. When inhales displaces oxygen on hemoglobin molecules which then formes carboxyhemoglobin complexes, which causes the mucous membrane to become bright red.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.
Answer:
24
Explanation:
factorial operation 4! = 4×3×2×1 = 24