m getting an error at default and switch (value),,what is the error?
<pre><code> import javax.swing.*;
 import java.util.Random;
 import java.util.Scanner;
  class Fifie
 {
    public static void main (String [] args)
    {
        String Iplay;//A ke rock, B ke skere, c is paper
        String PCplay;
        int value;
        Scanner scan = new Scanner(System.in);
        Random num = new Random();

        Iplay = JOptionPane.showMessageDialog("Enter R for rock, P for paper and S for scissors");
         Iplay = scan.next();
         Iplay = Iplay.toUpperCase();
         PCplay = num.nextInt(3);
        switch (value);
        {
            case 0:
                {
                PCplay = "R";
                break;
                }
            case 1:
                {
                PCplay = "P";
                break;
                }
            case 2:

                PCplay = "S";
                break;
                {
        default:
                {
                PCplay = "cannot happen";   
                }
                }
        JOptionPane.showMessageDialog(null,"PCplays: " + PCplays);

        if (Iplay.equals(PCplays))
        {
            JOptionPane.showMessageDialog(null,"tie!"); 
        }   

        else if (Iplay.equals(R) &amp;&amp; PCplays.equals(P))
        {
            JOptionPane.showMessageDialog (null, "Paper wraps rock. You lose!");
        }

        else if (Iplay.equals(R) &amp;&amp; PCplays.equal (S))
        {
            JOptionPane.showMessageDialog (null, "Rock smashes scissor. You win!");
        }
        else if (Iplay.equals(S) &amp;&amp; PCplays.equal(R) )
        {
            JOptionPane.showMessageDialog (null, "Rock smaches scissors. You lose!");
        }
        else if ( Iplay.equals(S) &amp;&amp; PCplays.equal (P))
        {
            JOptionPane.showMessageDialog (null, "Scissors cuts paper. You win!");
        }
        else if (Iplay.equals(P) &amp;&amp; PCplays.equals(R) )
        {
            JOptionPane.showMessageDialog (null, "Paper covers rock. You win!");
        }
        else if (Iplay.equals(P) &amp;&amp; PCplays.equals(S))
        {
            JOptionPane.showMessageDialog (null, "Scissor cuts paper. You lose!");
        }

    }


 }
 }
</code></pre>
