questions/java
So they could be used one day ...READ MORE
Hello kartik, setAcceptor(TabAcceptor a_acceptor) should let the consumer code ...READ MORE
A variable defined within a block or ...READ MORE
wn voteA quick&dirty batch solution (based on Alex's answer): libs.bat @ECHO ...READ MORE
Hii, You can just find out by given ...READ MORE
There are 2 options you can go ...READ MORE
This will work: try { ...READ MORE
there are some traditional ways that you ...READ MORE
Hii, Possible causes: Simple configuration issue, where the specified ...READ MORE
Java has "static nested classes", but they ...READ MORE
Assuming TreeMap is not good for you ...READ MORE
String s="yourstring"; boolean flag = true; for(int i=0;i<s.length();i++) { ...READ MORE
Reasons for using Multithreading in Java: When a ...READ MORE
Well, none of these is the default ...READ MORE
Socket programming is a way of connecting two ...READ MORE
There are 5 ways to iterate over ...READ MORE
Both OpenJDK and Oracle JDK are created ...READ MORE
You can use a HashMap to serve ...READ MORE
Hey, You can follow these few steps: From the ...READ MORE
Yes, an abstract class can have a ...READ MORE
This is very simple, you need an ...READ MORE
ConcurrentHashMap: It allows concurrent modification of the ...READ MORE
Runnable is the preferred way to create ...READ MORE
In ' '*(r-x-1) and '*'*(2*x+1), you used multiplication ...READ MORE
Composition is again specialized form of Aggregation ...READ MORE
You can use break with a label for the ...READ MORE
First, you will have to create a ...READ MORE
Following are the steps to run the ...READ MORE
It's defined in the Java language specification: The members ...READ MORE
In this program, we have two threads ...READ MORE
You may refer the below code: public static ...READ MORE
We can find a big difference between ...READ MORE
Either: Foo[] array = list.toArray(new Foo[list.size()]); or: Foo[] array = ...READ MORE
import java.util.Arrays; public class Sort { ...READ MORE
Object cloning means to create an exact ...READ MORE
Well, Java doesn't allow this because of ...READ MORE
Hi @Sneha, you could use something like ...READ MORE
There are different ways you could do this ...READ MORE
It should respond to ActionListeners, like this: combo.addActionListener (new ...READ MORE
If you are interested in finding out ...READ MORE
Hi, @Nikhil, Yes it's possible to drop a ...READ MORE
import org.apache.commons.codec.binary.Base64; We can not use sun.* packages ...READ MORE
I'd want to transform the following object: {"1":5,"2":7,"3":0,"4" ...READ MORE
READ MORE
I think you are not alone who is ...READ MORE
ArrayList is what you want. LinkedList is almost always a ...READ MORE
You can use collections. try (Stream<Path> filePathStream=Files.walk(Paths.get("/home/you/Desktop"))) { ...READ MORE
We can do this in 2 ways: String ...READ MORE
Hello Kartik, You can try the syntax: UIManager.setLookAndFeel(PLAF); (Pluggable ...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.