public static void main(String[] args)
    {
	String personPlay;    //User's play -- "R", "P", or "S"
	String computerPlay = "";  //Computer's play -- "R", "P", or "S"
	int computerInt;      //Randomly generated number used to determine
	                      //computer's play

   Scanner input = new Scanner(System.in);
	Random generator = new Random();
   
   String exit;

   

	//Generate computer's play (0,1,2) 

   computerInt = generator.nextInt(3);


//Translate computer's randomly generated play to string using if //statements
	
   if (computerInt == 0)
         computerPlay = "R";
         
    
       
      if (computerInt == 1)
            computerPlay = "P";
      else
            computerPlay = "S";


//Get player's play from input-- note that this is stored as a string

   System.out.println("Whats your move?? Rock (R), Paper (P)" + 
                      ", or Scissors (S): ");
                      
   personPlay = input.nextLine();

	//Make player's play uppercase for ease of comparison

   personPlay = personPlay.toUpperCase();

	//Print computer's play

   System.out.println("Computer play is: " + computerPlay);

	//See who won.  Use nested ifs 
	if (personPlay.equals(computerPlay))  
	    System.out.println("It's a tie!");
       
	else{ 
   
     if (personPlay.equals("R"))
      
	      if (computerPlay.equals("S"))
		   System.out.println("Rock crushes scissors.  You win!!");
         
         else        
         System.out.println("Paper covers rock. You Lose!!");
            
      
         
         if (personPlay.equals("S"))
            
               if (computerPlay.equals("R"))
               System.out.println("Rock crushes scissors. You Lose!!");
            
               else
               System.out.println("Scissors cuts paper. You Win!!");
            
            
               if (personPlay.equals("P"))
               
                     if (computerPlay.equals("R"))
                     System.out.println("Paper covers rock. You Win!!");
                                    
                     else                    
                     System.out.println("Scissors cuts paper. You Lose!!");
               
        }
                           
            
            

		//...  Fill in rest of code
    }