import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
       Scanner sc = new Scanner (System.in);
       Random rnd = new Random ();
       
       int numrn = rnd.nextInt(2);
    
          boolean a = 0<1 || 1<2;
          boolean b = 2>0 || 0>1;
          boolean c = 1<0 || 0<2;
      /*      String a = "stone";
             String b = "paper ";
             String c = "scissor";
       */       
        System.out.println("Hii lets see game rule \n 0=stone \n 1=paper\n 2=scissor");
        System.out.println("ok lets start Stone paper scissors \ngive your input as an integer ");
        
         int user1 = sc.nextInt();
         
         if (user1==numrn)
     
         System.out.println("oops! we both think " +user1);
    
         else if (Int)(user1=a)
        //  (user1<0 || user1<1 || user1<2 || user1<1 || user1<0 || user1 <2)
         System.out.println("ohh great you won the match \n you beat my "+numrn);
        
         else 
        //    (user1>2 || user1>0 || user1>1)
         System.out.println("My "+numrn+ "beat your "+user1);
         
         
  
  
  
  
  
   }
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: