I was doing some swing java and ran into this (im still new to programming).
int maxXvalue = getSize().width;
basically is this a variable defined within a method called getSize() ?
I know for class variables its: className.variableName
I know for objects variables its: object.variableName
so for methods is it?: method().variableName
also in java how do i access inner class variables?
For example, a class named “Class” containing a subclass called “InnerClass”:
would it be: Class.InnerClass.variable
or would it be just be: InnerClass.variable
without the container class referenced
Thanks for clearing up the confusion and misconceptions
getSize()is just returning an instance of aDimensionObjectDimension JavaDocs here: http://docs.oracle.com/javase/1.4.2/docs/api/java/awt/Dimension.html