So I am just getting the basics of java down, and I am creating this program and getting an error at this line:
java Code:
public void setDogLooks
( int age,weight
String dawg,
boolean Mad
){
"weight" cannot be resolved to a type.
I'm not sure what's wrong?
The whole program:
java Code:
import java.util.Arrays;public class Puppy
{ int puppyAge,weight
; String DogType
; boolean IsMad
; //String [] dogs = {"black", "weiner"}; public void CheckType
( ) { String [] dogs
= {"blue",
"weiner"}; if(Arrays.
asList(dogs
).
contains(DogType
)) { System.
out.
println("Matched"); } else { System.
out.
println("Unkown dawg type"); } } public void returnValues
( ) { System.
out.
println("Dog age:" + puppyAge
+ " Type:" + DogType
); } public void setDogLooks
( int age,weight
String dawg,
boolean Mad
){ puppyAge
= age
; DogType
= dawg
; } public static void main
(String []args
){ Puppy myPuppy
= new Puppy
( ); myPuppy.
setDogLooks( 2,
15,
"weiner",
True); myPuppy.
returnValues ( ); myPuppy.
CheckType(); }}