wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes enum (310-065) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "enum (310-065)" Watch "enum (310-065)" New topic

enum (310-065)

Santiago Ennis

Joined: Nov 05, 2009
Posts: 9


Compilation Error:
cannot find symbol symbol : constructor City(java.lang.String,constant.clazz.State.City.StateZone)
location: class constant.clazz.City
City baroda = new City("Baroda", State.City.StateZone.NORTH);
1 error

Why is there a compile-time error? How do I resolve it?

- SE
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

change it to


SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
Santiago Ennis

Joined: Nov 05, 2009
Posts: 9
Minhaj kaimkhani wrote:change it to


Really stupid question by me.

Anyways, thanks.
Consider Paul's rocket mass heater.
subject: enum (310-065)
Similar Threads
Can't get an ActionListener to change a JLabel text
overriden method
few scenarios in JAVA where instinct doesn'n play right
Enum illegal forward reference (compiles in Java 5 but not Java 6)
help, cannot find symbol - variable (using hashmaps)