Runtime error- Program terminated
<p>My program terminates for some reason. Its a rock-paper-scisors simulation.
The termination takes place when I enter something in the first nextLine.
If anybody could please help.</p>

<p><pre><code></p>

import java.util.*;
import java.math.*;

public class RockPapperScissors {

 /**
  * @param args
  */

 public static void main(String[] args) {
  Scanner in=new Scanner(System.in);
  String comp, user;
  comp=getComp();
  System.out.println("Enter rock, paper, or scissors");
  user=in.nextLine();
  winner(comp, user);


 }

 public static String getComp(){
  Random rand=new Random();
  String answer;
  int ran=rand.nextInt(3);
  if(ran==1)
   answer="rock";
  else if(ran==2)
   answer="paper";
  else 
   answer="scissors";
  return answer;}
 public static void winner(String com, String use){

  if(com=="rock" &amp;&amp; use=="rock")
   System.out.println("Its a tie");
   else if(com=="rock" &amp;&amp; use=="paper") 
    System.out.println("You win!");
   else if(com=="rock" &amp;&amp; use=="scissors")
    System.out.println("Computer wins, you FAIL");
  else if(com=="paper" &amp;&amp; use=="rock")
    System.out.println("Computer wins, you FAIL");
   else if(com=="paper" &amp;&amp; use=="paper")
    System.out.println("Its a tie");
   else if(com=="paper" &amp;&amp; use=="Scissors")
    System.out.println("You win!");
  else if(com=="scissors" &amp;&amp; use=="rock")
    System.out.println("You win");
   else if(com=="scissors" &amp;&amp; use=="paper")
    System.out.println("Computer wins, you FAIL");
   else if(com=="scissors" &amp;&amp; use=="scissors")
    System.out.println("Its a tie");}


 }
</code></pre>
