Discription of the game:
Our game was based in guessing games we made it using Java Programming Language in order to have this program. We used Graphics Unit Interface(GUI) to look it as Game Application That most computer games is what looks like now.
 
       The goal of the game is to guess the correct number between 1 to 100 as few tries as possible. The number is generated randomly by the program. Each time you input the wrong number it will display a message that number of guesses left and gives you hint everytime your guess is wrong you can only guess 4 times only, if you didn’t guess it “you lose” message will display in your screen but if you got the right number, the “you win” message will be displayed. The game also records the number of tries.
 
We made a game that Guess a number from 1 to 100 then this code is too long 1000 lines and I want to make it shorter using array how to do it?And im still new in OOP. In our programming 1 we have functional programming so im not really used to GUI and syntax of java



?import java.awt.Toolkit;
import javax.swing.JOptionPane;
import java.util.Random;
import java.util.Scanner;
 
 
public class GuessingGame1 {
    public static void main(String[] args){
    Random rand = new Random();
    int numberToGuess = rand.nextInt(100);
    int numberOfTries = 0;
    Scanner input = new Scanner(System.in);
    int guess;
    int score;
    boolean win = false;
    while (win == false)  {
                            Toolkit.getDefaultToolkit().beep();
                            String NumberString = (String) JOptionPane.showInputDialog(null, "Guess between 1 to 100");
                            Toolkit.getDefaultToolkit().beep();
                           guess = Integer.parseInt(NumberString);
                          numberOfTries++;
 if(guess == numberToGuess){
  win = true;
}
         
else if (numberOfTries==4){              // limit the number of tries to 4
        Toolkit.getDefaultToolkit().beep();
        JOptionPane.showMessageDialog(null,
        "You Lose!");
        Toolkit.getDefaultToolkit().beep();
        JOptionPane.showMessageDialog(null,
        "The number is " + numberToGuess );
        Toolkit.getDefaultToolkit().beep();
        System.exit(1);
        
}   
        
else if (numberToGuess==1) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3" );     
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n Solve the equation to find the number: Sine of 90 degrees.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2" );         
        JOptionPane.showMessageDialog(null,
        "HINT 2: \n The first element of the NATURAL NUMBER. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");        
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The number of moon in the Earth. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
else if (numberToGuess==2) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The atomic number of helium.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n It is the natural number following 1 and preceding 3. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n In baseball scorekeeping,it is the position of the catcher. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
else if (numberToGuess==3) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n It is considered a good number in Chinese culture because it sounds like the word alive");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n It is the smallest number of sides that a simple (non-self-intersecting) polygon can have. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n It is the atomic number of lithium. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
 }
 
else if (numberToGuess==4) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n It is the number of nucleobase types in DNA and RNA.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");             
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n It is the number of bits in a nibble, equivalent to half a byte. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The number of quarters in an NBA or NFL game. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
else if (numberToGuess==5) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n In basketball, it is used to represent the position of center.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n The number of sides and the number of angles in a pentagon. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n It is the lowest possible number that can be the top number of a time signature with an asymmetric meter. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
   
 else if (numberToGuess==6) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n It is the smallest positive integer which is neither a square number nor a prime number.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n In religion, the number of points on a Star of David. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n On most phones,this number key is associated with the letters M, N, and O. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
else if (numberToGuess==8) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n In nuclear physics, the second magic number.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n This number is  written in parentheses which is the code for the musical note in Windows Live Messenger. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n In the Middle Ages, it was the number of unmoving stars in the sky, and symbolized the perfection of incoming planetary energy. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
 }
 
else if (numberToGuess==9) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n In probability, this number is a logarithmic measure of probability of an event, defined as the negative of the base-10 logarithm of the probability of the event's complement.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n Common terminal digit in psychological pricing. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n This number is consider to be unlucky  in Japanese, because the word for sounds similar to the word for pain or distress.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
else if (numberToGuess==10) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n In probability, this number is a logarithmic measure of probability of an event, defined as the negative of the base-10 logarithm of the probability of the event's complement.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n The number of Provinces in Canada. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The atomic number of neon.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
else if (numberToGuess==11) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n It is the 5th smallest prime number.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n It is the number of points of the stylized maple leaf on the Flag of Canada.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n It is the number of the French department Aude.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
else if (numberToGuess==12) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The number of cranial nerves in the human body.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n In ten-pin bowling, this number represents the number of strikes needed for a perfect game.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The number of function keys on most PC keyboards. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
else if (numberToGuess==13) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n This number is the sixth prime number, and the smallest emirp (a prime that is a different prime when reversed)");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  Charles Stewart Parnell had an irrational fear of this number.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n This number is the most-commonly registered jersey number in modern roller derby. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
else if (numberToGuess==14) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The number of Stations of the Cross.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The number of days in a fortnight.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The number of lines in a sonnet. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
else if (numberToGuess==15) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The number of balls in the eight ball variant of billiards.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n   It is the smallest number that can be factorized using Shor's quantum algorithm.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The number of days in each of the 24 cycles of the Chinese calendar. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
 else if (numberToGuess==16) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n It is the number of the French department Charente.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  It is a song by American band Green Day");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n It is the legal drinking age in Germany, Belgium, Switzerland, Austria, Italy and Portugal. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
 else if (numberToGuess==17) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n It is the tenth Perrin number, preceded in the sequence by 7, 10, 12.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The atomic number of chlorine.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n Detective Konawaka from the Paprika anime has a strong dislike of this number.  ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
else if (numberToGuess==18) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n A 2002 album by electronic artist Moby.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  It is also a surname, recorded in East Anglia in the 18th century");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n In most countries, this number represents the voting age.  ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
else if (numberToGuess==19) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n It is the command in Age of Empires for the laughing emote.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n This number represents the  final year a person is a teenager.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The number of angels guarding Hell  according to the Qur'an.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}
 
else if (numberToGuess==20) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n It is the combat level limit in the game Guild Wars.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n The number of proteinogenic amino acids that are encoded by the standard genetic code.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n It is the smallest primitive abundant number.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
        }
    }
}  
 
else if (numberToGuess==21) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The number of spots on a standard cubical (six-sided) die.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n The key value and highest-winning point total of the popular casino game Blackjack.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n It is the fifth discrete Semiprime and the second in the (3.q) family");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}  
 
else if (numberToGuess==22) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The atomic number of titanium.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n The number of length in yard of a cricket pitch.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The name of a song by punk band Millencolin.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}
 
else if (numberToGuess==23) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n It is the sum of three other, consecutive, prime numbers; 5, 7 and 11.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  In technology, it is the TCP/IP port used for telnet and is the default for the telnet command.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n  It is the jersey number of Nathan Royal Scott - a character on the WB/CW television series One Tree Hill.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}
 
else if (numberToGuess==24) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n It is the factorial of 4!.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The number of hours in a day.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n  The number of books in the Tanakh");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
 
else if (numberToGuess==25) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The number of cents in a quarter.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The number of the French department Doubs.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n It is a centered octagonal number, a centered square number, and an automorphic number.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
 
else if (numberToGuess==25) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The number of cents in a quarter.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The number of the French department Doubs.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n It is a centered octagonal number, a centered square number, and an automorphic number.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}  
 
else if (numberToGuess==26) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n It is a repdigit in base three (222) and in base twelve (22).");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The number of spacetime dimensions in bosonic string theory.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The total number of cases on Deal or No Deal.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}
 
else if (numberToGuess==27) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n It is the radix (base) of the septemvigesimal positional numeral system.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The atomic number of cobalt.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n It is the number of bones in the human hand");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}  
 
else if (numberToGuess==28) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The fourth magic number in physics.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The number of Hebrew letters in Genesis 1:1, the first verse of the Bible.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The postal code of the province of Madrid, in Spain.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}  
 
else if (numberToGuess==29) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n It is the tenth prime number, and also the fourth primorial prime.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The number of suras in the Qur'an that begin with muqatta'at");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n An album by Ryan Adams.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}  
 
else if (numberToGuess==30) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n It is the sum of the first four squares, which makes it a square pyramidal number.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The minimum age for United States senators.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n It is one of the more common numbers worn by hockey goaltenders (along with 31).");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}  
else if (numberToGuess==31) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The jersey number shirt of Cedric Maxwell from Boston Celtics.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The number of musical triads.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The International Organization for Standardization’s(ISO) standard for quantities and units.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}
else if (numberToGuess==32) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The smallest number n with exactly 7 solutions to the equation [Phi] ?(x) = n.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The age  Jesus is said to have been crucified.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The freezing point of water at sea level in degrees Fahrenheit.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==33) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n According to the Newton scale, the temperature at which water boils.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The highest degree in Freemasonry.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The latitiude of the longest continually inhabited city in the world  Damascus, Syria");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==34) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n A number that is the magic constant of a 4 by 4 normal magic square");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n   A song by the Dave Matthews Band");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The atomic number of selenium.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==35) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n Tt was known as the Year of the Consulship of Gallus and Nonianus");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n The basic film gauge most commonly used for both analog photography andmotion pictures.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n •   The minimum age of candidates for election to the United States Presidency.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==36) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n ASCII code for the symbol '$'");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The number of degrees in the interior angle of each tip of a regular pentagram. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n  A movie releasing in 2010, directed by Martin Campbell. ");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==37) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The number of plays William Shakespeare is thought to have written.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The number of Great Nats traditionally worshiped in Burma.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The normal human body temperature in degrees Celsius.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==38) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The largest even number which cannot be written as the sum of two odd composite numbers.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The number of slots on an American Roulettewheel.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n In Norse mythology, the number was said to represent unnatural bravery.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==39) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The number of books in the Old Testament according to Protestant canon.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n The duration, in nanoseconds, of the nuclear reaction in the largest nuclear explosion ever performed (Tsar bomb)");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n  The number of Scud missiles which Iraq fired at Israel during the Gulf War in 1991.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==40) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The maximum permitted number of runners in the grand national In horse racing.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n Is the only integer whose English name has its letters in alphabetical order.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The number of weeks for an average term of pregnancy, counting from the woman’s last menstrual period");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==41) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n  the last symphony of Wolfgang Amadeus Mozart.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  In The Expendables (2010 film), the number of soldiers actor Eric Roberts laments to his subordinates about having been killed by star Sylvester Stallone in his escape from their island.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n It is a centered square number.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==42) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \nThe jersey number of basketball Hall of Famer and one of the 50 Greatest Players in NBA History James Worthy, small forward for the Los Angeles Lakers, who retired his jersey number in 1995.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The angle rounded to whole degrees for which a rainbow appears (the critical angle).");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n Is the result given by the web search engines Google and Wolfram Alpha when the query 'the answer to life the universe and everything' is entered as a search.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==43) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The number of human muscles requires to frown ");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The year the romans invaded Britain");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The number of George W. Bush became president.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==44) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n In the binary number system it can be written as 101100.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The number of candles in a box of Hanukkah candles.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The number that Wyoming was the state to join the country In the United States of America.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==45) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The sum of all the decimal digits.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The atomic number of rhodium");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The number of minutes A football match consists of half of the periods.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==46) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The (decimal) value of the ASCII code for the period (full stop).");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");            
         JOptionPane.showMessageDialog(null,
        "HINT 2: \n  The total of books in the Old Testament, Catholic version, if the Book of Lamentations is counted as a book separate from the Book of Jeremiah.");
        JOptionPane.showMessageDialog(null,
        "Try Again");   
         
        }
       else if (numberOfTries==3){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 1");           
         JOptionPane.showMessageDialog(null,
        "HINT 3: \n The number of human chromosomes.");
        JOptionPane.showMessageDialog(null,
        "Try Again");    
       }
   }
}   
else if (numberToGuess==47) {
      {  
        if (numberOfTries==1) {
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 3");            
        JOptionPane.showMessageDialog(null,
        "HINT 1: \n The year cycle of Mars.");
        JOptionPane.showMessageDialog(null,
        "Try Again");
        }  
         
        else if (numberOfTries==2){
        JOptionPane.showMessageDialog(null,
        "Wrong!!");     
        JOptionPane.showMessageDialog(null,
        "Number of Guesses Left: 2");