questions/java
You can find a JSON library in your ...READ MORE
double num = 5; When you do this, ...READ MORE
Writing a File in android: private void writeToFile(String ...READ MORE
As per my knowledge, you are getting this error ...READ MORE
System.exit() is a method of System class ...READ MORE
Putting a return statement in any of the ...READ MORE
Download the jar and place it in ...READ MORE
Apache Commons is generally known as a ...READ MORE
To safely remove from a collection while ...READ MORE
First create a mapper : import com.fasterxml.jackson.databind.ObjectMapper;// in ...READ MORE
public static byte[] hexStringToByteArray(String s) { ...READ MORE
You should add cascade="all" (if using xml) ...READ MORE
First you need to define a LocationListener to handle ...READ MORE
You can adjust your JVM memory needs by ...READ MORE
I guess you can use this function: StringEscapeUtils.unescapeH ...READ MORE
notify() is used to wake any thread in the wait ...READ MORE
You can fetch the screen resolution using the Toolkit.getScreenSize() method ...READ MORE
You need to call repaint() and revalidate() both in order ...READ MORE
You can use this indexOf() method through Arrays utility class. If the ...READ MORE
Below are the various advices available in AOP: Before: These types ...READ MORE
The @RequestMapping annotation in Spring Framework is ...READ MORE
Well, below I have listed down few ...READ MORE
When you create more than one bean ...READ MORE
Try using the below command: Runtime.getRuntime().exec(new String[]{"php","/var/www/script.php", "-m", ...READ MORE
The anonymous code blocks in Java are ...READ MORE
@RequestMapping(value = "/files/{file_name}", method = RequestMethod.GET) public void ...READ MORE
@SuppressWarnings("unchecked") is used when Java generics just don't ...READ MORE
Bean life cycle in Spring Bean Factory ...READ MORE
wn voteA quick&dirty batch solution (based on Alex's answer): libs.bat @ECHO ...READ MORE
Here, I have listed down few differences. ...READ MORE
You could also give the netbeans UML ...READ MORE
The following code might be helpful: public static ...READ MORE
I suggest you take the other way ...READ MORE
You can write a pretty simple embedded Jetty Java ...READ MORE
If you don't want to use external ...READ MORE
If you are using JDK 7 use ...READ MORE
You are making some conversions with your ...READ MORE
A Spring configuration file is an XML ...READ MORE
There are basically two types of IOC ...READ MORE
Below is an example using Apache Common ...READ MORE
public static void main(String[] args) { ...READ MORE
You can use, Foreign key constraints with ...READ MORE
In Java, the method best suiting your argument ...READ MORE
Using String.format, you can do this: double price ...READ MORE
before=" Hello world "; String after ...READ MORE
String class is made final in Java ...READ MORE
The advantage comes into account when the ...READ MORE
String s = "HelloSuresh"; s = s.replace("Hello",""); System.out.pri ...READ MORE
We can use the static frequency() method. int ...READ MORE
The preferable way will be to use a ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.