questions/java/page/17
You could probably use method invocation from reflection: Class<?> ...READ MORE
Java compiler uses "$" symbol internally to decorate ...READ MORE
Apache Commons Daemon is a good alternative. It ...READ MORE
The purpose of inheritance is same for ...READ MORE
The com.sun.net.httpserver solution is not portable across JREs. Its ...READ MORE
It's easy to convert a java.util.Date object ...READ MORE
The clone() is protected because it is ...READ MORE
The common solution for solving App has ...READ MORE
Very simple. You will find Deployment Descriptor ...READ MORE
Object is an exception to the first rule, ...READ MORE
I would suggest you to use the ...READ MORE
If you require a time stamp in ...READ MORE
Try using String.getBytes(). It returns a byte[] ...READ MORE
Without any evidence otherwise, I'd guess you've over-ridden the paint method ...READ MORE
Yes, contains is case sensitive. You can ...READ MORE
import javax.script.ScriptEngineManager; import javax.script.ScriptEngine; import javax.script.ScriptException; public class Test { ...READ MORE
Here is how you can increase the ...READ MORE
Send e-mail in Android using the JavaMail ...READ MORE
You could use recursion to do this. Try ...READ MORE
Usually hashes wouldn't do sums, otherwise stop and pots will have ...READ MORE
Converting LocalDateTime to Time Zone ISO8601 String LocalDateTime ...READ MORE
keytool does not provide such basic functionality ...READ MORE
If you are getting error: could not ...READ MORE
Another way to do that, if you ...READ MORE
We can use Java API to play ...READ MORE
To create a test suite we will use the ...READ MORE
Run the JVM with -XX:MaxHeapSize=512m (or any big number ...READ MORE
You can go to maven repositories https://mvnrepository.com/artifact/org.aspectj/aspectjtools/1.9.2 ...READ MORE
Do I need to understand the difference ...READ MORE
Here are two ways illustrating this: Integer x ...READ MORE
@FixMethodOrder(MethodSorters.NAME_ASCENDING) public class SampleTest { ...READ MORE
You are correct about the code putting ...READ MORE
Most of the time you need to ...READ MORE
A class that is declared without any ...READ MORE
You can use java.util.Calendar: Calendar c = Calendar.getInstance(); c.setTime(yourDate); int dayOfWeek ...READ MORE
Sometimes you have two entities and there's ...READ MORE
String string = "Today's weather"; String[] arrayOfString = ...READ MORE
export JAVA_HOME="$(/usr/libexec/java_home -v 1.6)" or export JAVA_HOME="$(/usr/libexec/java_home -v 1.7)" or export ...READ MORE
// Use a BufferedReader to read characters ...READ MORE
You can try the command given below. System.setProperty("javax.net ...READ MORE
== compares object references, it checks to see ...READ MORE
A simpler way to wait is to ...READ MORE
Try this: String[] strArray = arrayList.toArray(new Str ...READ MORE
new BigDecimal(String.valueOf(double)).setScale(yourScale, BigDecimal.ROUND_HALF_UP); will get you a BigDecimal. To ...READ MORE
You have to enter the commands as ...READ MORE
Its quite simple. Try using the below ...READ MORE
A Spring configuration file is an XML ...READ MORE
Hey @preetiagarwal, your description is an answer ...READ MORE
First create a mapper : import com.fasterxml.jackson.databind.ObjectMapper;// in ...READ MORE
Iterator<String> iter = myArrayList.iterator(); while (iter.hasNext()) { ...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.