Results 1 to 3 of 3
  1. #1
    TriSBR is offline Member
    Join Date
    Nov 2011
    Posts
    4
    Rep Power
    0

    Default Instance Variables

    Trying to define some instance variables.

    Need to define instance variables for quarters, dimes, nickels and pennies. All with an integer representing the number of them.

    Any idea how I would go about this?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Instance Variables

    Please have a look at the tutorial on using primitive data types and variables: Primitive Data Types.

    The whole tutorial is a wonderful resource, one I encourage you to use and learn from, and you can find the link to it here: Java Tutorial: Really Big Index.

    Good luck!

  3. #3
    TriSBR is offline Member
    Join Date
    Nov 2011
    Posts
    4
    Rep Power
    0

Similar Threads

  1. Variables in MainMethod(). Local or Instance.
    By Flamey in forum New To Java
    Replies: 3
    Last Post: 06-10-2011, 06:46 AM
  2. Instance variables
    By lala in forum New To Java
    Replies: 1
    Last Post: 01-26-2011, 04:38 PM
  3. What are Instance variables and static variables?
    By sandeshforu in forum New To Java
    Replies: 3
    Last Post: 09-09-2009, 05:48 PM
  4. accessing instance variables from static methods
    By ravian in forum New To Java
    Replies: 7
    Last Post: 03-01-2009, 10:09 PM
  5. static are instance variables
    By gabri in forum Advanced Java
    Replies: 12
    Last Post: 09-30-2008, 06:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •