Category "java"

How to use use Firestore document field's HashMap key value and populate recyclerview?

I have just started learning android. I want to know is a way by which I can populate a RecyclerView using a firebase document's field which contains only the H

Why does introducing a FileWriter delete all the content in the file?

I have a text file with some text in it and i'm planning on replacing certain characters in the text file. So for this i have to read the file using a buffered

What to import to use IOUtils.toString()?

I am trying to use IOUtils.toString() to read from a file. However, I am getting an error saying "IOUtils cannot be resolved." What am I supposed to be importi

How to know which Marker was clicked on Google Maps v2 for Android?

I am making an application with a Google Maps on it, for Android. I have plenty of Markers on my screen and I am preparing customizable balloon for each marker

How to create mbox using Java JavaMail?

How to read mail inbox using IMAP protocol and JavaMail and then use local disk to store mails. There is no documentation of mstor. I try this way but it seems

Generate images for html heading with Java servlet

I found Facelift which can basically generate html headings as images (with "nice font") on the fly. Does something similar exist for Java (couldn't find one my

Generate images for html heading with Java servlet

I found Facelift which can basically generate html headings as images (with "nice font") on the fly. Does something similar exist for Java (couldn't find one my

Generate images for html heading with Java servlet

I found Facelift which can basically generate html headings as images (with "nice font") on the fly. Does something similar exist for Java (couldn't find one my

Finding Last Fired time using a Cron Expression in Java

Is there a way in Java to find the "Last Fired Time" from a Cron Expression? E.g. If now = 25-Apr-2010 10PM, and the cron expression is 0 15 10 ? * * (quartz),

Finding Last Fired time using a Cron Expression in Java

Is there a way in Java to find the "Last Fired Time" from a Cron Expression? E.g. If now = 25-Apr-2010 10PM, and the cron expression is 0 15 10 ? * * (quartz),

Finding Last Fired time using a Cron Expression in Java

Is there a way in Java to find the "Last Fired Time" from a Cron Expression? E.g. If now = 25-Apr-2010 10PM, and the cron expression is 0 15 10 ? * * (quartz),

Finding Last Fired time using a Cron Expression in Java

Is there a way in Java to find the "Last Fired Time" from a Cron Expression? E.g. If now = 25-Apr-2010 10PM, and the cron expression is 0 15 10 ? * * (quartz),

Converting a string to an integer on Android

How do I convert a string into an integer? I have a textbox I have the user enter a number into: EditText et = (EditText) findViewById(R.id.entry1); String he

Difference between Unchecked exception or runtime exception

This was an interview question. What is the main difference between unchecked exception and error as both are not caught? They will terminate the program.

Difference between Unchecked exception or runtime exception

This was an interview question. What is the main difference between unchecked exception and error as both are not caught? They will terminate the program.

Difference between Unchecked exception or runtime exception

This was an interview question. What is the main difference between unchecked exception and error as both are not caught? They will terminate the program.

GridLayout with component fixed Width and Height?

I have a main Panel and I'm adding components dynamically into that one. Main Panel has GridLayout limited to 3 columns and 0 rows (0 rows will allow rows to gr

GridLayout with component fixed Width and Height?

I have a main Panel and I'm adding components dynamically into that one. Main Panel has GridLayout limited to 3 columns and 0 rows (0 rows will allow rows to gr

GridLayout with component fixed Width and Height?

I have a main Panel and I'm adding components dynamically into that one. Main Panel has GridLayout limited to 3 columns and 0 rows (0 rows will allow rows to gr

Exporting resource folder with jar

I have a folder called "resources" in my Eclipse project. It's used as source folder. Everything works well compiled from Eclipse. I wanted to try it on Ubuntu