write a java program to simulate two people playing this gameuses threads. Each player is to be represented by a thread; thesame instance of each thread must be used for all “rounds” (seenext item). Threads must be used.we must use synchronizeyour program. this the code i have so far. i m getting an errormessage in the palyer.java(
Players[count].selection();) and the game(rockWins += p[j].rockWins();)
/// game code
import javax.swing.*;import java.awt.*;import java.applet.Applet;import java.util.Scanner;public class Game extends Applet{ int n=0; String label[]; int value[]; static int scissorsWinsVar=0; static int rockWinsVar=0;
OR
OR