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

Thread: I need a little bit of JAVA related help!

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I need a little bit of JAVA related help!

    I'm trying to learn the basics of JAVA and then start messing around with games/apps. I'm registering to nice communities like this one in case I ever need help

    I'm trying to register over Java-Gaming.org - home of the largest java game developer community as well, but I can't seem to figure out the "activation quiz" they have. I was hoping someone could help me out. I'm pretty sure this is basic stuff, but I've been learning JAVA for a week now and I seriously tried everything I know so far.

    This is an example of the current quiz: (It gets updated every time I don't know if it has a time limit)


    In which year did Albert Einstein pass away? (This one is a no brainer


    Please take a look at this code:
    int g = 2;
    int u = "AOC".hashCode() % 3000;
    int p = "ZOO".hashCode() % 3000;
    for (int a = 0; a <= p; a++)
    g = (g ^ a) % u;
    return g;


    What is the returned value?



    What is the greatest common divisor of the previous two results?


    Thank you in advanced!


  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: I need a little bit of JAVA related help!

    I would feel dirty. This is the same as cheating on a homework assignment.

  3. #3
    Junior Member
    Join Date
    Sep 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need a little bit of JAVA related help!

    Uhh it's not really cheating. It's just their anti-bot resource.. which I think it sucks and makes the community lack of new members excited to learn. Like I said I'm trying to get involved in communities in case I ever need help from someone experienced. I'm pretty sure I'm could get this figured it out when ever I get into that part of JAVA in the courses I'm learning from, but I really really can't wait to be a part of the community already

  4. #4
    Member
    Join Date
    Sep 2012
    Posts
    128
    Thanks
    1
    Thanked 14 Times in 14 Posts

    Default Re: I need a little bit of JAVA related help!

    Quote Originally Posted by RufioLJ View Post
    Uhh it's not really cheating. It's just their anti-bot resource.. which I think it sucks and makes the community lack of new members excited to learn. Like I said I'm trying to get involved in communities in case I ever need help from someone experienced. I'm pretty sure I'm could get this figured it out when ever I get into that part of JAVA in the courses I'm learning from, but I really really can't wait to be a part of the community already
    Have you downloaded an IDE yet? Just copy paste the code into the 'main' method and run it to get the clue they ask for. (change return g; to System.out.println(g);)

  5. #5
    Junior Member
    Join Date
    Sep 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need a little bit of JAVA related help!

    Thanks a bunch... It's weird I did get 1995 before but It gave me an error.. I thought I was doing it wrong u.u Thank you

Similar Threads

  1. help me in this problem related to ml-java
    By Haneen tar in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 21st, 2012, 02:26 PM
  2. Doubt related to Java
    By Jagatha in forum Member Introductions
    Replies: 1
    Last Post: September 15th, 2011, 04:21 AM
  3. i want three java related projects !
    By coolforyou in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: August 16th, 2011, 12:02 AM
  4. [SOLVED] Some questions related to learning Java
    By beer-in-box in forum Java Theory & Questions
    Replies: 5
    Last Post: June 7th, 2011, 02:37 PM
  5. java servlet related
    By vidi in forum Member Introductions
    Replies: 0
    Last Post: April 16th, 2011, 10:26 PM