Tim Harris wrote:
Liutauras Vilda wrote:I disagree with line 3.
Liutauras Vilda wrote:That statement on line 3 would cause you a compilation error.
I am pretty sure you know why. Look carefully.
Tim Harris wrote:
Trying to collect the broken pieces of my life,in the process of making out a beautiful picture out of it.
Sachin Tripathi wrote:If they are in same .java file
Then try out ways to send the reference of object of class whose method(instance method) you want to use, to the class where you want to use
Roel De Nijs wrote:
Tim Harris wrote:
I must comment on your comment after the import statement, because it's incorrect! An import statement NEVER brings a type (class, interface,...) into scope. With an import statement you can use the simple name of a type (class, interface,...) instead of the fully qualified name. And that's really the only purpose of an import statement. Using import statements your code will be less cluttered and become more readible.
Tim Harris wrote:I knew this, but again, I was at the end of a long day and my brain was somewhat fried!
Trying to collect the broken pieces of my life,in the process of making out a beautiful picture out of it.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |