SHARE
TWEET

Untitled

a guest Jun 19th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void addMeasurement(HashMap<String,String> measurement)
  2.     {
  3.        
  4.         System.out.println(measurement.get("STN"));
  5.         measurementQueue.add(measurement);
  6.         System.out.println("next measurement");
  7.            
  8.         if(measurementQueue.size() > 9)
  9.             {
  10.                
  11.                 for(int i = 0;i < measurementQueue.size();i++)
  12.                 {
  13.                     System.out.println(measurementQueue.get(i).get("STN"));
  14.                 }
  15.                
  16.                 addTask(measurementQueue);
  17.                 measurementQueue.clear();
  18.                 System.out.println("10 measurements");
  19.             }  
  20.     }
RAW Paste Data
Want to get better at Java?
Learn to code Java in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top