subject

What is wrong with this python code? The syntax error is on the first line. public class Box

{

private String myDate;

private String myContents;

private String myLocation;

public class Box(String date, String contents, String location)

{

myDate = date;

myContents = contents;

myLocation = location;

}

}

Box twentyThree = new Box("2016", "medical records", "storage closet");

Box zeroSeven = new Box(“2020”, “flu shot flyers", “receptionist’s office”);

Box twentyOne = new Box(“2018”, “lotion samples”, “waiting room”)

print (Box twentyThree = 1)

print (Box zeroSeven = 2)

print (Box twentyOne = 3)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 25.06.2019 15:10
Who should have a career portfolio, and how often should it be updated? only artists need a career portfolio, which they should update after every gallery show. everyone should have a career portfolio, which they should update daily with their professional activities. all students should have a career portfolio, which they should update ever semester until they graduate. most professionals need a career portfolio, which they should update with regularly with important achievements.
Answers: 3
question
Computers and Technology, 25.06.2019 19:00
What a suitable variable name to store the number of years old a person is
Answers: 1
question
Computers and Technology, 26.06.2019 09:30
How did the development of silicon chips impact computer usage? a. they improved the operating system b. they made it possible to use punch cards c. they interpreted the binary system so that punch cards were no longer necessary d. they made it possible to produce computers small enough to fit on a desktop pls hurry
Answers: 2
question
Computers and Technology, 26.06.2019 15:00
Dan is a civil engineer for a company that builds nuclear power plants throughout the world. which best describes the places he works and what he does there? a) at an office analyzing blueprints, and at public meetings where safety regulations are explained b) at an office creating computer models for power plants, and at sites where the plants are constructed c) in a laboratory, where he designs power plants, and in a factory where the plants are manufactured d) in a warehouse, where he orders parts, and at sites where the parts are installed in the power plants
Answers: 1
You know the right answer?
What is wrong with this python code? The syntax error is on the first line. public class Box
...
Questions
question
World Languages, 27.03.2020 20:32
question
Mathematics, 27.03.2020 20:33
question
Mathematics, 27.03.2020 20:33
Questions on the website: 13722360