![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 14.02.2020 05:15, kyle65
1) A String variable , fullName, contains a name in one of two formats:
last name , first name (comma followed by a blank), or
first name last name (single blank)
Extract the first name into the String variable firstName and the last name into the String variable lastName. Assume the variables have been declared and fullName already initialized . You may also declare any other necessary variables .
2)
Write a loop that reads strings from standard input where the string is either "land", "air", or "water". The loop terminates when "" (five x characters ) is read in. Other strings are ignored. After the loop, your code should print out 3 lines: the first consisting of the string "land:" followed by the number of "land" strings read in, the second consisting of the string "air:" followed by the number of "air" strings read in, and the third consisting of the string "water:" followed by the number of "water" strings read in. Each of these should be printed on a separate line.
ASSUME the availability of a variable , stdin, that references a Scanner object associated with standard input.
![answer](/tpl/images/cats/otvet.png)
Answers: 1
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 19:00, detrickboucicaut
The fourth generation of computers emerged between 1970s and 1980s. which technological advancement brought about this generation of computers? which computer architecture was used most in this generation?
Answers: 3
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Do you know the correct answer?
1) A String variable , fullName, contains a name in one of two formats:
last name , firs...
last name , firs...
Questions in other subjects:
![Konu](/tpl/images/cats/biologiya.png)
Biology, 19.10.2019 12:30
![Konu](/tpl/images/cats/mat.png)
Mathematics, 19.10.2019 12:30
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 19.10.2019 12:30
![Konu](/tpl/images/cats/mkx.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 19.10.2019 12:30
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 19.10.2019 12:30