Forums Register Login

enum (310-065)

+Pie Number of slices to send: Send
Zone.java

TestState.java

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
+Pie Number of slices to send: Send
change it to




-Minhaj
+Pie Number of slices to send: Send
 

Minhaj kaimkhani wrote:change it to




-Minhaj



Really stupid question by me.

Anyways, thanks.
Every time you till, you lose 30% of your organic matter. But this tiny ad is durable:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 845 times.
Similar Threads
few scenarios in JAVA where instinct doesn'n play right
Can't get an ActionListener to change a JLabel text
Enum illegal forward reference (compiles in Java 5 but not Java 6)
help, cannot find symbol - variable (using hashmaps)
overriden method
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:06:02.