I have class for an object with all the fields and getters. Now, one thread is putting some data into it, in my case
object = new MyObject(int, int, char, int)
queue.put(object);
and then puts it into BlockingQueue, then the second thread is taking this object
MyObject toSolve = queue.take();
My question is how to take the data from object to make operations using its ints.