Online Java Compiler By
JavaTpoint.com
import java.util.Random; import java.util.Scanner; import java.util.concurrent.ArrayBlockingQueue; public class JavaRandomNextGaussianExample3 { static int j=1; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("Enter the number of Visitors."); int capacity = scanner.nextInt(); ArrayBlockingQueue
queue = new ArrayBlockingQueue
(capacity); System.out.println("Enter the name of "+capacity+" students."); for (int i=0;i
Output