I don't understand why my code is not compiling. line 10 is: public Monkey(String name, String species, String tailLength String height, String bodyLength, String gender, String age, String weight, String acquisitionDate, String acquisitionCountry, String trainingStatus, boolean reserved, String inServiceCountry) {

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

I don't understand why my code is not compiling.

line 10 is:

public Monkey(String name, String species, String tailLength String height, String bodyLength, String gender, String age, String weight, String acquisitionDate, String acquisitionCountry, String trainingStatus, boolean reserved, String inServiceCountry) {

 

File Edit Source Refactor Navigate Search Project Run Window Help
X.project
18
19
20
21
22
023
30
31
320
33
34
350
36
37
380
39
40
410
42
43
440
24 }
25 //accessors and mutators
260
27
28
290
45
46
470
48
49
nnn (n
50
OHNC
51
52
53
}
RescueAnimal.java
Dog.java
setWeight (weight);
public String getSpecies () {
return species;
setAcquisitionDate (acquisitionDate);
setAcquisition Location (acquisitionCountry) ;|
setTrainingStatus (trainingStatus);
setReserved (reserved);
setInService Country (inService Country) i
}
public void setSpecies (String monkeySpecies) {
species = monkeySpecies;
}
public String getTailLength () {
return tailLength;
}
}
public String getHeight () {
return height;
}
public void setTailLength (String monkeyTailLength) {
tailLength = monkeyTailLength;
}
Driver.java
}
public void setHeight (String monkeyHeight) {
height=monkeyHeight;
public String getBodyLength () {
return bodyLength;
}
Monkey.java
public void setBodyLength (String monkeyBodyLength) {
bodyLength = monkeyBodyLength;
Quick Access
0
Transcribed Image Text:File Edit Source Refactor Navigate Search Project Run Window Help X.project 18 19 20 21 22 023 30 31 320 33 34 350 36 37 380 39 40 410 42 43 440 24 } 25 //accessors and mutators 260 27 28 290 45 46 470 48 49 nnn (n 50 OHNC 51 52 53 } RescueAnimal.java Dog.java setWeight (weight); public String getSpecies () { return species; setAcquisitionDate (acquisitionDate); setAcquisition Location (acquisitionCountry) ;| setTrainingStatus (trainingStatus); setReserved (reserved); setInService Country (inService Country) i } public void setSpecies (String monkeySpecies) { species = monkeySpecies; } public String getTailLength () { return tailLength; } } public String getHeight () { return height; } public void setTailLength (String monkeyTailLength) { tailLength = monkeyTailLength; } Driver.java } public void setHeight (String monkeyHeight) { height=monkeyHeight; public String getBodyLength () { return bodyLength; } Monkey.java public void setBodyLength (String monkeyBodyLength) { bodyLength = monkeyBodyLength; Quick Access 0
File Edit Source Refactor Navigate Search Project Run Window Help
7
8
9
100
11
12
13
14
15
16
17
18
x .project
1
2 //monkey inherits from rescue animal
3 public class Monkey extends RescueAnimal {
4 //instance variables
5
6
3 3 3 3 3
31
320
33
19
20
21
22
23
24 }
25
260
27
28
}
290 public void setSpecies (String monkeySpecies) {
30
species = monkeySpecies;
34
Dog.java
RescueAnimal.java
private String species;
private String tailLength;
private String height;
private String bodyLength;
}
Driver.java
public Monkey (String name, String species, String tailLength String height, String bodyLength String gender, String age, String weight, String acquisitionDate S
setName (name);
setSpecies (species);
setTailLength (tailLength);
setHeight (height);
setBodyLength (bodyLength);
setGender (gender);
setAge (age);
setWeight (weight);
//a accessors and mutators
}
setAcquisitionDate (acquisitionDate);
setAcquisition Location (acquisitionCountry) ;|
setTrainingStatus (trainingStatus);
public String getSpecies () {
return species;
setReserved (reserved);
setInService Country (inService Country) i
public String getTailLength () {
return tailLength;
Monkey.java
Quick Access
0
4
0
#J
69
Transcribed Image Text:File Edit Source Refactor Navigate Search Project Run Window Help 7 8 9 100 11 12 13 14 15 16 17 18 x .project 1 2 //monkey inherits from rescue animal 3 public class Monkey extends RescueAnimal { 4 //instance variables 5 6 3 3 3 3 3 31 320 33 19 20 21 22 23 24 } 25 260 27 28 } 290 public void setSpecies (String monkeySpecies) { 30 species = monkeySpecies; 34 Dog.java RescueAnimal.java private String species; private String tailLength; private String height; private String bodyLength; } Driver.java public Monkey (String name, String species, String tailLength String height, String bodyLength String gender, String age, String weight, String acquisitionDate S setName (name); setSpecies (species); setTailLength (tailLength); setHeight (height); setBodyLength (bodyLength); setGender (gender); setAge (age); setWeight (weight); //a accessors and mutators } setAcquisitionDate (acquisitionDate); setAcquisition Location (acquisitionCountry) ;| setTrainingStatus (trainingStatus); public String getSpecies () { return species; setReserved (reserved); setInService Country (inService Country) i public String getTailLength () { return tailLength; Monkey.java Quick Access 0 4 0 #J 69
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,