questions/java
If you want the GUI to behave ...READ MORE
/* Derive the key, given password and ...READ MORE
To convert STring to byte[]: String s = ...READ MORE
equals() must define an equivalent relation and ...READ MORE
For setting the environment variable, you can ...READ MORE
Try using String.getBytes(). It returns a byte[] ...READ MORE
My guess is that you are trying ...READ MORE
The docs for java.io.Serializable are probably about as good ...READ MORE
HashSet vs TreeSet: 1- Hashset gives better performance (faster) ...READ MORE
The following code will work fine. But I ...READ MORE
You need to add the certificate for App2 to ...READ MORE
The exception is thrown if InvocationTargetException - if ...READ MORE
These are escape characters which are used ...READ MORE
As far as I know, the main ...READ MORE
If you use String concatenation in a ...READ MORE
It is not possible directly to use Multiline ...READ MORE
If you are working on Desktop Application, ...READ MORE
In order to use JAVA_OPT you need ...READ MORE
Well, none of these is the default ...READ MORE
Static block is used for initializing the ...READ MORE
Java doesn't supports operator overloading because it's just a ...READ MORE
In your Eclipse IDE, go into Window > Preferences > Java > Installed JREs > ...READ MORE
@Test(expected = IndexOutOfBoundsException.class) public void testIndexOutOfBoundsException() { ...READ MORE
To serialize an object means to convert its state ...READ MORE
In Java, items with the final modifier cannot be ...READ MORE
Import the packages required to work with ...READ MORE
In Java 6 and before versions, we ...READ MORE
The MessageDigest class can provide you with an instance ...READ MORE
There are 2 options you can go ...READ MORE
Strings are immutable. That means once you've ...READ MORE
In Java, you can escape quotes with \: String ...READ MORE
Serializable is a marker interface that has ...READ MORE
Java 8 Path sourcepath = Paths.get("C:\\data\\temp\\mydir"); ...READ MORE
Read json from url use url.openStream() and read contents ...READ MORE
Weak references A weak reference, simply put, is a ...READ MORE
Android has some good tips on good ...READ MORE
import java.util.List; import java.util.ArrayList; import java.util.Random; public class A ...READ MORE
So they could be used one day ...READ MORE
import java.util.Arrays; import java.util.Collections; import org.apache.commons.lang.ArrayUtils; public class MinMaxValue { ...READ MORE
String str = "..."; // write the ...READ MORE
A class that is declared with abstract ...READ MORE
? : is the Conditional operator and is ...READ MORE
final Handler handler = new Handler(); handler.postDelayed(new Runnable() ...READ MORE
Use a flag, which will indicate the ...READ MORE
Think of reference parameters as being aliases ...READ MORE
One possible solution could be using calendar ...READ MORE
System.arraycopy is the most efficient way, but ...READ MORE
You could probably check out Google's Gson: ...READ MORE
<form action="upload" method="post" enctype="multipart/form-data"> ...READ MORE
private static class SomeContainer<E> { ...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.