![]() |
| ||
| Gregorian Calendar program I am trying to execute this program, but I am getting errors this is the code
I am testing this with import java.util.*; The first code compiled fine. But I am having errors with the second one. Tes.java:11: cannot find symbol How should I correct the 3 errors? |
| ||
| Re: Gregorian Calendar program code is from a text book |
| ||
| Re: Gregorian Calendar program When do you think the compile time error 'symbol not found comes up'? What does your text book say about such errors? The example you posted seems a pretty bold one for someone who has just started out with Java. Anyways, the error message means that the compiler doesn't know about the token 'DateFormat'; `import' the class in question and you should be good to go. |
| ||
| Re: Gregorian Calendar program Dear Friend, you have to use import java.text.*; since the Format and DateFormat are a part of java.text package. If you do that you won't get any error message. |
| ||
| Re: Gregorian Calendar program Thanks for the help. It is working now. I know that this is pretty bold for a beginner. But I am understanding the concept behind it and I think that by understanding more such programs I will be able to become better with time. With the internet and helpful communities like these willing to give a helping hand, I am sure I can improve myself. |
| All times are GMT -4. The time now is 7:12 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC