How to check if an int is a null?

I have an object called Person. it has several attributes in it; int id; String name; i set a person object like...

java.io.IOException: Broken pipe?

We are currently migrating a legacy application to Jetty. And I have somehow an exception regarding a broken pipe. ...

Maven: Failed to read artifact descriptor?

I am hoping someone can help me with a problem I am struggling with. When I try to build my project from the termin...

Why following types are reifiable& non-reifiable in java??

In computing, reification has come to mean an explicit representation of a type—that is, run-time type informatio...

what do these symbolic strings mean: %02d %01d??

I'm looking at a code line similar to: sprintf(buffer,"%02d:%02d:%02d",hour,minute,second); I think the symbolic ...

How to implement infinity in Java??

Does Java have anything to represent infinity for every numerical data type? How is it implemented such that I can d...

How to rename a class and its corresponding file in Eclipse??

Cannot find any menu item to do this. Is it doable? ...

Difference between Return and Break statements?

How does a return statement differ from break statement?. If I have to exit an if condition, which one should I pre...

What's the purpose of META-INF??

In Java, you often see a META-INF folder containing some meta files. What is the purpose of this folder and what can...

Edhesive Assignment 1, Fraction?

I have this code here that is only getting an 87% because "addition parameter with non-positive parameters does noth...

Unclosed Character Literal error?

Got the error "Unclosed Character Literal" , using BlueJ, when writing: class abc { public static void main(Stri...

How to set selected item of Spinner by value, not by position??

I have a update view, where I need to preselect the value stored in database for a Spinner. I was having in mind so...