The loop terminates when "xxxxx" is read in. If the word is land, the string followed by "land" get outputted. The same with air, and water.
Explanation:
int land = 0;
int air = 0;
int water = 0;
String word = "";
while(!(word.equals("xxxxx"))) {
word = stdin.next();
if(word.equals("land")) {
land++;
}else if(word.equals("air")) {
air++;
}else if(word.equals("water")) {
water++;
}
}
System.out.println("land:" + land);
System.out.println("air:" + air);
System.out.println("water:" + water);
It should be noted that mate is the national beverage of countries such as Uruguay, Paraguay, and Argentina.
<h2>
What is mate?</h2>
Mate tea is simply a beverage that is high in antioxidants and also contains caffeine.
It should be noted that mate is important as it raises morale, helps in sustaining the muscular system, and also allows an individual endure privations.
In conclusion, the drink is also usually taken by sportsmen.
Learn more about beverages on:
brainly.com/question/25884013
It is true because a powepoint is a projecter
A binary code represents text, computer processor instructions, or any other data using a two-symbol system. The two-symbol system used is often the binary number system's 0 and 1. The binary code assigns a pattern of binary digits, also known as bits, to each character, instruction, etc.