Main.java:14: error: cannot find symbol Dog dogger = new Dog(); ^ symbol: class Dog location: class Main
Dog is just another class but I keep getting this error. But if I try to put the Dog class in the same file, I get an error too.
Here is the link https://onlinegdb.com/HkoGVBM_r
Hello, i just used your code try saving the files as " filename.java".
when i did it that fixed your issue for me.
also when validating the choice in the if statement use the .equals() method instead of "==", if you use the "==" method for strings as Strings are objects and not primitives it compares the reference address instead of the value in other words it will always say "that is an improper response".