questions/java
Windows Builder Pro is the best GUI ...READ MORE
You can use ArrayUtils class remove method ...READ MORE
Use the constructor overload which takes a Comparator<? ...READ MORE
First of all, define callFriend: public <T extends ...READ MORE
You can use java.util.Random class. int myNumber = ...READ MORE
NoClassDefFoundError means that the class is present ...READ MORE
List<String> alist = Arrays.asList(str.split("\\s*,\\s*")); The above code splits ...READ MORE
Java has "static nested classes", but they ...READ MORE
Yes, in Java we do have a ...READ MORE
Yes, you are missing out on a ...READ MORE
Till you send the code, I would ...READ MORE
public class NewClass1 { ...READ MORE
Assuming TreeMap is not good for you ...READ MORE
You can use split() method. str = "Hello ...READ MORE
To work on timer in java, you ...READ MORE
An alternative is to use String.format: double[] arr = ...READ MORE
Follow these steps: Write: public class User { ...READ MORE
as first tip you cannot assign value ...READ MORE
Character Stream Vs Byte Stream Character oriented are ...READ MORE
Click on File > Import. The Import ...READ MORE
public class Cons { public static Cons ...READ MORE
Using braces makes the code more maintainable ...READ MORE
Is Java EE just a specification? What ...READ MORE
You can find out the length of ...READ MORE
The best possible way of conversion between byte[] and String is to ...READ MORE
According to Effective Java, chapter 4, page 73, ...READ MORE
Binary arithmetic operations on char and byte ...READ MORE
for(int i = 0; i < Data.length ...READ MORE
Yes, an abstract class can have a ...READ MORE
If You check System.out.print(names.length); you will get 3 ...READ MORE
You can connect your Java code with ...READ MORE
I think you are not alone who is ...READ MORE
BiFunction<LocalDate, LocalDate, List<CovidData>> stateDataBetweenDates = (startDate, endDate) ...READ MORE
This is not a simpler method, but ...READ MORE
You could use recursion to do this. Try ...READ MORE
Yes; the Java Language Specification writes: In the Java ...READ MORE
I don't believe the java AudioStream class ...READ MORE
double d = 2.34568; DecimalFormat f = new ...READ MORE
Either: Foo[] array = list.toArray(new Foo[list.size()]); or: Foo[] array = ...READ MORE
A simpler way to wait is to ...READ MORE
ArrayList is what you want. LinkedList is almost always a ...READ MORE
Basically, StringBuffer methods are synchronized while StringBuilder ...READ MORE
Using Java’s Float class. float f = Float.parseFloat("25"); String s = ...READ MORE
try (BufferedReader br = new BufferedReader(new FileReader(path))) ...READ MORE
-Xmxn: It specifies the maximum size, in bytes, ...READ MORE
As you might know, static here is ...READ MORE
finalize() is a method called by the ...READ MORE
int[] a = {1,2,3,4,5}; int[] b = Arrays.copyOf(a, ...READ MORE
I wrote a small "TreeMap" class based ...READ MORE
Switches based on integers can be optimized ...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.