SlideShare a Scribd company logo
Please Help Need ASAP
JAVA
Write a class named Food with the following specifications:
Name the class Food
Create the following instance variables: String name, double weight, and String taste
Create a constructor that will be blank
Create another constructor that will take in three arguments: name, weight and taste . Use the
this keyword to assign the instance variables values based on the arguments passed in by the
constructor. HINT: public Food(String name, int weight, String taste)
Create an accessor (aka get) and a mutator (aka set) method which will get and set the weight
and taste instance variables of the Food class. (Total of 4 methods)
Create a method called "public String data()". This method will return a String which will
contain the name, weight, and taste of the fruit.

More Related Content

More from kathrynj2

Please help me draw this chart The City of Lethbridge has decided to b.docx
Please help me draw this chart The City of Lethbridge has decided to b.docxPlease help me draw this chart The City of Lethbridge has decided to b.docx
Please help me draw this chart The City of Lethbridge has decided to b.docx
kathrynj2
 
Please help in writing these in OCaml functional programming language.docx
Please help in writing these in OCaml functional programming language.docxPlease help in writing these in OCaml functional programming language.docx
Please help in writing these in OCaml functional programming language.docx
kathrynj2
 
please show all work Assume we are using the simple model for floating.docx
please show all work Assume we are using the simple model for floating.docxplease show all work Assume we are using the simple model for floating.docx
please show all work Assume we are using the simple model for floating.docx
kathrynj2
 
please help esp on the first one 3- Bacteriophages have lytic and lys.docx
please help esp on the first one  3- Bacteriophages have lytic and lys.docxplease help esp on the first one  3- Bacteriophages have lytic and lys.docx
please help esp on the first one 3- Bacteriophages have lytic and lys.docx
kathrynj2
 
Please review the Trade agreement between the North American Countries.docx
Please review the Trade agreement between the North American Countries.docxPlease review the Trade agreement between the North American Countries.docx
Please review the Trade agreement between the North American Countries.docx
kathrynj2
 
Please provide 1 explanation and 1 example for each of the points abov.docx
Please provide 1 explanation and 1 example for each of the points abov.docxPlease provide 1 explanation and 1 example for each of the points abov.docx
Please provide 1 explanation and 1 example for each of the points abov.docx
kathrynj2
 
PLEASE PROVIDE ME WITH DETAILED INFORMATION ON A RESEARCH INTERESTS F.docx
PLEASE PROVIDE ME WITH DETAILED INFORMATION ON A  RESEARCH INTERESTS F.docxPLEASE PROVIDE ME WITH DETAILED INFORMATION ON A  RESEARCH INTERESTS F.docx
PLEASE PROVIDE ME WITH DETAILED INFORMATION ON A RESEARCH INTERESTS F.docx
kathrynj2
 
Please place the following events in transcription in the correct orde.docx
Please place the following events in transcription in the correct orde.docxPlease place the following events in transcription in the correct orde.docx
Please place the following events in transcription in the correct orde.docx
kathrynj2
 
please match the processes below with the correct description Match th.docx
please match the processes below with the correct description Match th.docxplease match the processes below with the correct description Match th.docx
please match the processes below with the correct description Match th.docx
kathrynj2
 
Please look up the Terri Schiavo case I- Introduction- Describe the p.docx
Please look up the Terri Schiavo case  I- Introduction- Describe the p.docxPlease look up the Terri Schiavo case  I- Introduction- Describe the p.docx
Please look up the Terri Schiavo case I- Introduction- Describe the p.docx
kathrynj2
 

More from kathrynj2 (10)

Please help me draw this chart The City of Lethbridge has decided to b.docx
Please help me draw this chart The City of Lethbridge has decided to b.docxPlease help me draw this chart The City of Lethbridge has decided to b.docx
Please help me draw this chart The City of Lethbridge has decided to b.docx
 
Please help in writing these in OCaml functional programming language.docx
Please help in writing these in OCaml functional programming language.docxPlease help in writing these in OCaml functional programming language.docx
Please help in writing these in OCaml functional programming language.docx
 
please show all work Assume we are using the simple model for floating.docx
please show all work Assume we are using the simple model for floating.docxplease show all work Assume we are using the simple model for floating.docx
please show all work Assume we are using the simple model for floating.docx
 
please help esp on the first one 3- Bacteriophages have lytic and lys.docx
please help esp on the first one  3- Bacteriophages have lytic and lys.docxplease help esp on the first one  3- Bacteriophages have lytic and lys.docx
please help esp on the first one 3- Bacteriophages have lytic and lys.docx
 
Please review the Trade agreement between the North American Countries.docx
Please review the Trade agreement between the North American Countries.docxPlease review the Trade agreement between the North American Countries.docx
Please review the Trade agreement between the North American Countries.docx
 
Please provide 1 explanation and 1 example for each of the points abov.docx
Please provide 1 explanation and 1 example for each of the points abov.docxPlease provide 1 explanation and 1 example for each of the points abov.docx
Please provide 1 explanation and 1 example for each of the points abov.docx
 
PLEASE PROVIDE ME WITH DETAILED INFORMATION ON A RESEARCH INTERESTS F.docx
PLEASE PROVIDE ME WITH DETAILED INFORMATION ON A  RESEARCH INTERESTS F.docxPLEASE PROVIDE ME WITH DETAILED INFORMATION ON A  RESEARCH INTERESTS F.docx
PLEASE PROVIDE ME WITH DETAILED INFORMATION ON A RESEARCH INTERESTS F.docx
 
Please place the following events in transcription in the correct orde.docx
Please place the following events in transcription in the correct orde.docxPlease place the following events in transcription in the correct orde.docx
Please place the following events in transcription in the correct orde.docx
 
please match the processes below with the correct description Match th.docx
please match the processes below with the correct description Match th.docxplease match the processes below with the correct description Match th.docx
please match the processes below with the correct description Match th.docx
 
Please look up the Terri Schiavo case I- Introduction- Describe the p.docx
Please look up the Terri Schiavo case  I- Introduction- Describe the p.docxPlease look up the Terri Schiavo case  I- Introduction- Describe the p.docx
Please look up the Terri Schiavo case I- Introduction- Describe the p.docx
 

Recently uploaded

Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
TechSoup
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
Nguyen Thanh Tu Collection
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
danielkiash986
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
Prof. Dr. K. Adisesha
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
khuleseema60
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
Celine George
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
RidwanHassanYusuf
 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
Celine George
 
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
Nguyen Thanh Tu Collection
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
David Douglas School District
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
deepaannamalai16
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
giancarloi8888
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
heathfieldcps1
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
Celine George
 
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
EduSkills OECD
 
Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"
National Information Standards Organization (NISO)
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 

Recently uploaded (20)

Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
 
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
 
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
 
Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 

Please Help Need ASAP JAVA Write a class named Food with the followin.docx

  • 1. Please Help Need ASAP JAVA Write a class named Food with the following specifications: Name the class Food Create the following instance variables: String name, double weight, and String taste Create a constructor that will be blank Create another constructor that will take in three arguments: name, weight and taste . Use the this keyword to assign the instance variables values based on the arguments passed in by the constructor. HINT: public Food(String name, int weight, String taste) Create an accessor (aka get) and a mutator (aka set) method which will get and set the weight and taste instance variables of the Food class. (Total of 4 methods) Create a method called "public String data()". This method will return a String which will contain the name, weight, and taste of the fruit.