Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Help with constants!

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with constants!

    I'm writing my first java program and the instructor has asked that every time we incorporate our name into the program, it should be done by a using constant.

    How do i do this?
    I'm very new to java.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Help with constants!

    Have you tried googling something like "java constant"? What have you tried? Where is your MCVE?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Member jdv's Avatar
    Join Date
    Jul 2014
    Location
    This Land
    Posts
    73
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default Re: Help with constants!

    We are FINALly going to hear some STATIC about this, aren't we?

Similar Threads

  1. [SOLVED] Properly declaring constants in Java
    By ChristopherLowe in forum Java Theory & Questions
    Replies: 2
    Last Post: March 19th, 2012, 03:21 PM
  2. Abstract Classes and Named Constants
    By snowguy13 in forum Java Theory & Questions
    Replies: 3
    Last Post: March 7th, 2012, 02:43 PM
  3. class constants instance constants..... etc
    By chronoz13 in forum Java Theory & Questions
    Replies: 1
    Last Post: August 18th, 2009, 03:38 PM