This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android 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.
Don't get me started about those stupid light bulbs.
subject: enum (310-065)
It's not a secret anymore!