subject

Create a business class to model a bike. Then create a tester class to test the bike class and create list of bikes. Details are as follows: Bike Class
1. Create a business class called Bike
2. Bikes should at least have number of wheels, manufacturer and year data. Additional data can be created at the programmer’s discretion.
3. A no-arg constructor with values of 2 for number of wheels to 2, "Schwinn" for manufacturer, and 2014 for year should eb created.
4. Other constructors, getters, setters and toString() method should be created.
BikeTester Class
1. Use the BikeTester class to create object bike1 using no-arg constructor. Print its details after creation.
2. Create object bike2 in the same manner, and use the setter methods to change the instance variable values to those below:
1) number of wheels: 3
2) year: 2012
3) Manufacturer: Hyffy
3. Print details of bike2.
4. Create an arraylist of bikes called bikeList.
5. Add bike1 and bike2 to this list
6. SOP bikeList
7. Count the total number of wheels on all bikes in the bikeList and print them
8. Find the year of the oldest bike in the list and print that year.
9. Ensure that all of your code is thoroughly commented.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:30
Gerard is currently working as an entry-level customer support technician, but he would like to someday become a software developer. what is the best first step to understand what he should do? ask his manager for a new job or at least a job recommendation study graphic design in order to obtain the necessary skills use career resources to investigate what skills and education are required work part-time as an entry-level web developer question 13 (true/false worth 6 points) (08.03 lc) career resources are used to explore career options and find career information. true false question 14(multiple choice worth 6 points) (08.01 mc) classify the following skills: writing html code, evaluating color theory, using design principles. hard skills interpersonal skills people skills soft skills question 15 (true/false worth 6 points) (08.03 lc) a mentor is a person who is advised, trained, or counseled by a trusted mentee. true false
Answers: 2
question
Computers and Technology, 22.06.2019 16:20
Octothorpe is another name for what common computer keyboard symbol?
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Your mom wants to purchase a laptop computer. she said she wants her new computer to be able to play her dvds so she can listen to music and wants to know what type of optical drives will play her disk. which type of drive should she look for?
Answers: 1
question
Computers and Technology, 24.06.2019 18:00
Hacer un algoritmo que me permita ingresar el nombre de una parcela de terreno y muestre junto al mensaje “tipo de suelos: suelos fumíferos, ¡excelente!
Answers: 1
You know the right answer?
Create a business class to model a bike. Then create a tester class to test the bike class and creat...
Questions
question
Mathematics, 22.10.2020 01:01
question
Mathematics, 22.10.2020 01:01
question
Law, 22.10.2020 01:01
question
Mathematics, 22.10.2020 01:01
question
History, 22.10.2020 01:01