To Zhao Lin:
I have been studying Java all summer and feel that I am getting pretty good at it. I have just joined the course so I am behind but have read Dietel and Dietel's book; Java, how to program (all 1500 pages of it). I have written over 200 classes but I'll tell you I cannot make head nor tails of what you have written. Firstly, there are no pointers in Java, at least using the arrow ( -> ). When you create an instance of a class a reference is returned but it is not used the same as pointers in C/C++ Assume the word like is not in your program so I'll leave that alone. There is no word and in Java. And is done with &&. Java is an Object Oriented language but you have not declared any classes. There are no variable declarations and to tell you the truth I cannot even figure out what you are trying to do. What you asked about the bits, bytes and characters is correct. Your update method declaration is written properly but no body and it will have to override the superclass update method. I am still new to java but I am making progress. I hope I am correct in my assumptions here but do not take it as the gospel. The one thing I am unsure about is the update method. I am unsure if there is a method with this same signature in the superclass, please refer to the online documentation. If not you will have to write this class from scratch. Update is usually used with just a Graphics object as the single parameter to update graphics or animations. If you let me know what your trying to achieve I can probably be of more help. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
