In this tutorial, you will learn how to convert String to long in Java. We can use Long wrapper class for this purpose, this class… [Read More]
Archives for December 2013
How To Convert InputStream To String In Java
Here is the complete example of how to read and convert an InputStream to a String. The steps involved are: 1) I have initialized the… [Read More]
Java Convert String to Double examples
In this guide we will see how to convert String to Double in Java. There are three ways to convert String to double. 1. Java… [Read More]
Java String to int Conversion
In this tutorial, you will learn how to convert a String to int in Java. If a String is made up of digits like 1,2,3… [Read More]
Java – String regionMatches() Method example
The method regionMatches() tests if the two Strings are equal. Using this method we can compare the substring of input String with the substring of… [Read More]
Java – String matches() Method example
Method matches() checks whether the String is matching with the specified regular expression. If the String fits in the specified regular expression then this method… [Read More]
Java – String toCharArray() Method example
The method toCharArray() returns an Array of chars after converting a String into sequence of characters. The returned array length is equal to the length… [Read More]
Java String trim() and hashCode() Methods with examples
In this tutorial we will discuss Java String trim() and hashCode() methods with the help of examples. Java String trim() method signature It returns a… [Read More]
Java – String getBytes() Method example
The getBytes() method encodes a given String into a sequence of bytes and returns an array of bytes. The method can be used in below… [Read More]
Java – String getChars() Method example
The method getChars() is used for copying String characters to an Array of chars. public void getChars(int srcBegin, int srcEnd, char[] dest, int destBegin) Parameters… [Read More]
- 1
- 2
- 3
- …
- 10
- Next Page »