-
help with instance variable
i am doing a homework assignment and i have been given this:
class Prob10{
public static void main(String[] args){
System.out.println("The instance variable contains: "
+ new Prob10().aMethod().instanceVariable
+ "\nTerminating");
}
}
Without changing main I must write code that will output the following:
The instance variable contains: 10
Terminating
i don't understand what they are trying to do in the method call could someone
please explain it to me.
Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks