questions/java
String aString = "world"; int aInt = 20; String.format("Hello, ...READ MORE
Check Character.getNumericValue(char). String element = "el7"; int x = Character.getNumericValue(element.charAt(2)); System.out.println("x=" ...READ MORE
The short answer is, that there is ...READ MORE
this problem is solved using streams and ...READ MORE
To delete the subject record with its ...READ MORE
--- To set java path --- There are ...READ MORE
String objects in Java use the UTF-16 ...READ MORE
It means that there is only one ...READ MORE
Here is the solution- public static final TYPE ...READ MORE
Variables may be marked transient to indicate that they ...READ MORE
Following are the steps to run the ...READ MORE
If you are getting error: could not ...READ MORE
Generally you should also override hashCode() each time you ...READ MORE
Use Page Directive to import a Class ...READ MORE
Its quite simple. Try using the below ...READ MORE
Can’t tell you the exact reason as ...READ MORE
From Java 1.5 you can use the String.format method. ...READ MORE
super() is used to call immediate parent. super() can be ...READ MORE
public void saveUrl(final String filename, final String ...READ MORE
Use the following code : new Timer(""){{ ...READ MORE
public static String byteArrayToHex(byte[] a) { ...READ MORE
Modifier Class Package Subclass World Public Y Y Y Y Protected Y Y Y N No modifier Y Y N N private Y N N N Public: Any package, any class accessibility is ...READ MORE
It's an operator that returns true if ...READ MORE
Check your javac path on Windows using Windows Explorer C:\Program Files\Java\jdk1.7.0_02\bin and ...READ MORE
The method invoked here will be the ...READ MORE
Well, I think the confusion is because ...READ MORE
Scanner in = new Scanner(System.in); int i = ...READ MORE
String string = "Today's weather"; String[] arrayOfString = ...READ MORE
You can try this with method overloading. void ...READ MORE
Just use lib/* not lib/*.jar That's the ...READ MORE
public String getPostcode(Person person) { ...READ MORE
The reason for the inaccuracy is because ...READ MORE
import java.io.IOException; public class chkClearScreen { public static void ...READ MORE
Your classpath is broken. Depending on how you ...READ MORE
class Program { int count ...READ MORE
stackoverflow error – StackOverflow Error in Java. This error is thrown to ...READ MORE
Hi...here you can try using the overloaded ...READ MORE
Try this: String[] strArray = arrayList.toArray(new Str ...READ MORE
Windows Builder Pro is the best GUI ...READ MORE
You can use ArrayUtils class remove method which ...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
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.