Results 1 to 2 of 2
  1. #1
    asdfg is offline Senior Member
    Join Date
    Nov 2016
    Posts
    163
    Rep Power
    3

    Default Registration form answers

    java-gaming.org
    In that forum people focus/provide information about games development, with java.
    It requires registration, in un-usual way. Resulting problems.registerForm.bmp

    The first question.
    In which year did Albert Einstein pass away?
    What this question asks? When Einstein have dead??? Wikipedia writes: 1955.

    -----

    Second question always have diffrend values. I created Code that solves it:
    Java Code:
    public class Testivity  {
        public static void main(String[] args) {
        
        	Testivity t = new Testivity ();
        	System.out.println ( t.answer() );
        	
        }
        
        int answer () {
    	    int c = 2;
    	    int f = "ZNJ".hashCode() % 3000;
    	    int h = "TZO".hashCode() % 3000;
    	    for (int e = 0; e <= h; e++)
    	       c = (c ^ e) % f;
    	    return c;	
        
        }
    }

    -----
    What is the greatest common divisor of the previous two results?
    What this question wants?
    Last edited by asdfg; 01-30-2017 at 02:21 PM.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    19,989
    Rep Power
    32

    Default Re: Registration form answers

    Moved from New Section.

    If there is a specific java programming question, please ask it.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Replies: 2
    Last Post: 12-12-2016, 09:05 AM
  2. Making a registration form - Lots of errors please help!
    By FermataPlays in forum AWT / Swing
    Replies: 1
    Last Post: 04-04-2015, 02:53 AM
  3. Create registration form | insert into database | call the database
    By FamilyGuy in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-23-2012, 11:08 AM
  4. JSP Registration Form error
    By ak88 in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 10-26-2009, 10:54 AM
  5. Duplicate entry in registration form!!!
    By anki1234 in forum Advanced Java
    Replies: 1
    Last Post: 01-04-2008, 08:15 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
  •