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 4 of 4

Thread: Java error

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Location
    Canada
    Posts
    6
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default operator & is undefined for the....

    fixed it, thanks for the help jps!
    Last edited by Badger191; July 26th, 2012 at 03:55 AM.


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Java error

    Well the first time you wrote that if statement with only one & and the second time you used two && twice. I am curious did you mean to do that? It is hard to tell seeing little snippets from here and there in your code.

  3. The Following User Says Thank You to jps For This Useful Post:

    Badger191 (July 26th, 2012)

  4. #3
    Junior Member
    Join Date
    Jul 2012
    Location
    Canada
    Posts
    6
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: Java error

    *********fixed
    Last edited by Badger191; July 26th, 2012 at 03:55 AM.

  5. #4
    Member
    Join Date
    Jun 2012
    Location
    Left Coast, USA
    Posts
    451
    My Mood
    Mellow
    Thanks
    1
    Thanked 97 Times in 88 Posts

    Default Re: Java error

    Quote Originally Posted by Badger191 View Post
    *********fixed
    I have a request.

    I am kind of new to Java and I come here to learn. Sometimes it helps to see problems from other people's point of view and sometimes it helps to see code. (Whether it works or not, I always learn something. Really. Always.) When people delete information that might be useful to others, they aren't doing the Community a favor.


    So, here's the my request:
    How about leaving it in place even after your particular problem is solved to your satisfaction? That's one way to give back to the Community.


    Cheers!

    Z

  6. The Following 3 Users Say Thank You to Zaphod_b For This Useful Post:

    awinston (July 26th, 2012), jps (July 26th, 2012), veeer (July 26th, 2012)

Similar Threads

  1. Replies: 0
    Last Post: July 2nd, 2012, 09:11 PM
  2. Java Error cannot be applied to (java.lang.String), phone book entry program.
    By iceyferrara in forum What's Wrong With My Code?
    Replies: 5
    Last Post: September 23rd, 2011, 06:32 AM
  3. [SOLVED] Java run time error: 'java.lang.NullPointerException"
    By ChandanSharma in forum What's Wrong With My Code?
    Replies: 9
    Last Post: June 20th, 2011, 11:53 AM
  4. A Java Error
    By Shyamz1 in forum Java Theory & Questions
    Replies: 9
    Last Post: October 7th, 2010, 07:56 AM
  5. Java error
    By d7o0om in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 12th, 2010, 08:14 AM