haraprasad mohapatra wrote:yeah but here the ! operator is used in the for loop for break which i was not sure of
so where can i get this kind of code any book or tutorial ???
Please give me the reference (any books,links or tutorial )as i am starting out on java it will be really helpful
Liutauras Vilda wrote:A bit on code style part.
1. You got about 80% variables which starts with an upper case. These should be starting with lower case. You got some of them correct as finalGrade - follow that convention.
1.1. Also quite difficult to distinct logically Grade1 and Grade1use. First one I could guess, about the second have no idea unless I read all class. I'd say get rid of Grade1,2,3... and keep them within local scope of constructor and only have Grade1use as instance. Of course with different name.
2. There is no strong reason to shorten the class name StudInfo too. Why not to keep it clear StudentInfo or StudentInformation?
3. average method. It is not clear too, what it suppose to do? Average of what? Just print it? Return something?
The code style part in assignments are important, you could easily loose 20% of your mark only because of poor and misleading variables, methods names. On the more important side, you can confuse yourself, and get incorrect functionality, which could help you loose the way more points.
Alaric Mustoe wrote:Well then could you give me an example of how to import and define movement for the image?
Stevens Miller wrote:
Tip: In Java, the word "import" has a very specific meaning, which has nothing to do with what you have described. So, let's use "read" (or "open," or "load") instead of "import," when you are talking about gaining access to the contents of the image file.