It uses programming examples but sometimes doesn't even define what the syntax is or what each piece of the example program is doing, so I'm left to figure it out on my own or try to find better explanations on the Internet and I end up drowning in information.Īlso in my class we are jumping around quite a bit, so it makes me feel like I'm missing a lot of the basic basic foundation. In my class, we have a different book "Introduction to Programming in Java" in addition to the Blue Pelican above that doesn't seem to have much better explanations. Before I get to that:Ĭan you explain the above quote to me, particularly "inner class instances require an instance of outer class to exist.and static content does not have an outer class instance"? I'm not sure I completely understand that. ), but slightly different problems that I'm running into. I have the same problem from the same stupid book (I use the one located at I think James and I might be in the same class. The main method is in the outer class class, but it is a static method - and static content does not have an outer class instance (via the this reference). Henry Wong wrote: And inner class instances require an instance of the outer class to exist. take out the word public from the Circle class. take the public class Circle and place it in its own file. Okay i got my code to run in two ways, 1. I am working out of blue pelican book and the instructions are to use a public variable so it is available to all the methods in one single class.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |