subject

Does this java program look correct? first, let me paste the question:
five friends are going to the theater. they have purchased a row of five seats with an aisle on either end. james doesn't want to sit next to jill betty and herb are dating and want to sit next to each other bob must sit on an aisle provide a seating order that conforms to the above rules. an example of an invalid seating order is: james, betty, herb, bob, jill
the above arrangement is invalid because: bob is not sitting on an aisle.
specify the seating order as the names separated by commas (as in the above example). be sure to spell the names correctly, including capitalization.
my program:
public class seating{
public static void main (string [] args){
string james;
string jill
string betty;
string herb;
string bob;
system. output. println(bob + "," + jill + "," + herb + "," + betty + "," + james + "."; }}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:40
Match the personality traits with their description
Answers: 2
question
Computers and Technology, 22.06.2019 07:30
By refraining from constructing a building until they are certain that it will not cause harm to the environment, an organization is adhering to the
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Which of the following would you find on a network
Answers: 3
question
Computers and Technology, 23.06.2019 02:00
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 1
You know the right answer?
Does this java program look correct? first, let me paste the question:
five friends are goin...
Questions
question
Mathematics, 21.05.2021 05:10
question
English, 21.05.2021 05:10
question
Mathematics, 21.05.2021 05:10
Questions on the website: 13722361