Creating a Priority Queue and adding element into it and then iterating over the elements

 

import java.util.Iterator;
import java.util.PriorityQueue;

class PriorityQueueDemo {
public static void main(String[] args) {
// creating our queue
PriorityQueue<Integer> pq = new PriorityQueue<>();
pq.add(12);
pq.add(13);
pq.add(14);
pq.add(15);
pq.add(16);
pq.add(17);
// iterating the queue using Iterator
Iterator itr = pq.iterator();
while (itr.hasNext()) {
System.out.println(itr.next());
}

}
}

Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...