In this tutorial, you will learn how to remove duplicates from ArrayList. Example 1: Removing duplicates from ArrayList using LinkedHashSet In the following example, we… [Read More]
Archives for 2014
How to get the last element of Arraylist?
There are times when we need to get the last element of an ArrayList, this gets difficult when we don’t know the last index of… [Read More]
htaccess RewriteRule, mod_rewrite, RewriteCond & Redirect 301
Redirecting from a WWW Domain to a non-WWW Domain # 301 redirect(permanent redirect) from http://www.sample.com to http://sample.com RewriteEngine on Options +FollowSymLinks RewriteCond %{HTTP_HOST} ^www.sample.tld$ [NC]… [Read More]
10 Free Responsive Portfolio WordPress Themes – Free download
PR News Preview Download Portfolio Press Preview Download Unique – Responsive Portfolio WordPress Theme Preview Download Virtue Preview Download Music Star Responsive portfolio WordPress theme… [Read More]
Java Autoboxing and Unboxing with examples
Java 1.5 introduced a special feature of auto conversion of primitive types to the corresponding Wrapper class and vice versa. Autoboxing: Automatic conversion of primitive… [Read More]
Java Annotations tutorial with examples
Java Annotations allow us to add metadata information into our source code, although they are not a part of the program itself. Annotations were added… [Read More]
Java Enum Tutorial with examples
An enum is a special type of data type which is basically a collection (set) of constants. In this tutorial we will learn how to… [Read More]
Java Regular Expressions (java regex) Tutorial with examples
Regular expressions are used for defining String patterns that can be used for searching, manipulating and editing a text. These expressions are also known as… [Read More]
Java StringBuilder charAt()
In this tutorial, we will discuss the Java StringBuilder charAt() method with the help of examples. The syntax of charAt() method is: sb.charAt() Here, sb… [Read More]
Java StringBuilder capacity() Method
Java StringBuilder capacity() method returns the current capacity of StringBuilder object. In this tutorial, we will discuss the capacity() method in detail with the help… [Read More]
Java StringBuilder append() Method
The append() method of Java StringBuilder class is used to append a specified value at the end of this character sequence. Syntax of append() Method:… [Read More]
how to copy one hashmap content to another hashmap
In this tutorial we are gonna learn how to copy one HashMap elements to another HashMap. We will be using putAll() method of HashMap class… [Read More]
HashMap – Get value from key example
Description Program to get value from HashMap when the key is provided. Example import java.util.HashMap; class HashMapDemo{ public static void main(String[] args) { // Create… [Read More]
Difference between HashSet and HashMap
In this article we are gonna discuss the differences between HashSet and HashMap classes. HashSet vs HashMap Differences: HashSet HashMap HashSet class implements the Set… [Read More]
Difference between HashSet and TreeSet
In this article we are gonna discuss the differences between HashSet and TreeSet. HashSet vs TreeSet 1) HashSet gives better performance (faster) than TreeSet for… [Read More]
- 1
- 2
- 3
- …
- 16
- Next Page »