I am building a Java android app and I am using realm.io for my database. My problem is I have a RealmList and my Custom ListView adapter only accepts RealmResults. Below is the code and more details. ...

We look to build a high-performance, scalable Comet server, and thought first about using Java Grizzly with GlassFish. But after some research, we see that Node.JS is taking rapidly as the preferred ...

I am currently working on creating a small framework using the executor and completion services to concurrently execute multiple tasks at the same time. I have another thread that runs independently ...

I need to implement a class in java where its field needs to be set only once, but it's value is not known at field declaration. To do so I have: public class MyClass { private String field1 = ...

I have a simple executable Jar file. How I can set icon for this file? In my case I use the standard Jar icon which I would like to change.

Is there a compiler optimization for the size() methods of Collections in Java? Consider the following code: for(int i=0;i<list.size();i++) ...some operation..... There is a call to ...

How to build the following PSQL query to update multiple records using jOOQ 3.10.x? UPDATE users SET name = s.name, city = s.city FROM users_staging s WHERE users.id = s.id;

I would like to parse two separate strings "1982" and "SEP" into a java.time.YearMonth object. java.time.YearMonth.parse("1978 SEP", java.time.format.DateTimeFormatter.ofPattern("yyyy LLL")) gives ...

I compiled my program and I got the following error. How should I resolve it? Note: ClientThreadClients.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.