JavaTweets

Blog on Java Programming and Interview Questions

String Examples




  • Convert String to Character Array Example
  • Java Char Array To String Example
  • Searching a String for a Character or a Substring in Java
  • Java String methods - indexOf() and lastIndexOf()
  • Java String Compare using compareTo and compareToIgnoreCase
  • Java String Concatenation and Performance
  • Determining If a String Contains a Substring in Java
  • Java String Length Example
  • Java String Replace Example
  • Java String Split Example
  • Java String Trim Example
  • Java String Reverse Example
  • Java String isEmpty Example
  • Java String to Lower Case example
  • Java String to Upper Case example
  • Java Substring Example
  • Java String to byte Array Example
  • Difference between == , equals and equalsIgnoreCase
  • Comparing String with StringBuffer in Java
  • Comparing String with StringBuilder in Java

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Home
Subscribe to: Posts (Atom)

Total Pageviews

Blog Archive

  • ▼  2012 (254)
    • ▼  August (44)
      • When should I use an interface instead of an abstr...
      • Compare two StringBuffer objects in Java
      • New Java 7 Features: Using String in the Switch St...
      • Comparing String with StringBuilder in Java
      • Comparing String with StringBuffer in Java
      • Difference between == , equals and equalsIgnoreCase
      • Java String to byte Array Example
      • Java Substring Example
      • Java String to Upper Case example
      • Java String to Lower Case example
      • Java String isEmpty Example
      • Java String Reverse Example
      • Java String Trim Example
      • Java String Split Example
      • Java String Replace Example
      • Java String Length Example
      • Determining If a String Contains a Substring in Java
      • Java String Concatenation and Performance
      • Java String Compare using compareTo and compareToI...
      • Java String methods - indexOf() and lastIndexOf()
      • Searching a String for a Character or a Substring ...
      • Java Char Array To String Example
      • Convert String to Character Array Example
      • Copy all the key-value pairs from one Map into ano...
      • Get Tail Map from Java TreeMap example
      • Get Head Map from Java TreeMap example
      • Get Sub Map from Java TreeMap example
      • Get lowest and highest key stored in Java TreeMap ...
      • Get Synchronized Map from Java TreeMap example
      • Remove value from Java TreeMap example
      • Remove all values from Java TreeMap example
      • Get Size of Java TreeMap Example
      • Check if a particular value exists in Java TreeMap...
      • Check if a particular key exists in Java TreeMap e...
      • How to get all keys in Java TreeMap?
      • Get Set view of Keys from Java TreeMap example
      • Iterate through the values of Java TreeMap example
      • Simple Java TreeMap example
      • Checked vs Unchecked Exceptions in Java
      • Creating user defined exceptions in Java
      • Exception Handling : Throws clause in Java
      • Difference between throw and throws in Java?
      • How to Throw Exceptions in Java
      • What is finally block in java?
    • ►  July (134)
    • ►  June (13)
    • ►  May (2)
    • ►  April (10)
    • ►  March (14)
    • ►  February (18)
    • ►  January (19)
  • ►  2011 (3)
    • ►  December (3)

Categories

  • Home
  • SCJP Objective Questions
  • ArrayList Examples
  • Date & Calendar Examples
  • Files and I/O
  • java.util.zip
  • LinkedList Examples
  • Object Cloning
  • Serialization
  • Wrapper classes
  • Collections Framework
  • Multithreading
  • HashSet Examples
  • TreeSet Examples
  • Utility class - Collections
  • HashMap Examples
  • String Examples
  • TreeMap Examples
  • Exception Handling

Search This Blog

Followers

blog status

Popular Posts

  • Access Modifiers In Java
    There are four access modifiers to help you set the level of access you want for classes as well as the fields, methods and const...
  • Untar a tar.gz file with Apache Commons-Compress in Java
    In this section  , you will learn about how to untar a tar.gz file using apache    commons-compress .   The complete source code is gi...
  • Get Synchronized Map from Java HashMap example
    This java example shows how to get a synchronized Map from Java HashMap using synchronizedMap method of Collections class. import java....
  • Collection Interface in Java
    The root interface in the collection hierarchy . A collection represents a group of objects, known as its elements . Some collections ...
  • How HashMap works in Java ?
    In computer science, a hash table or hash map is a data structure that uses a hash function to map identifying values, known as keys (e....
  • Interfaces and Classes of the Collections Framework
    The Collections Framework provides a well-designed set of interfaces and classes for storing and manipulating groups of data as a single ...
  • keySet(), entrySet() and values() in Java Map
    java.util.Map<K,V> interface provides three methods keySet(), values() and entrySet() for retrieving keys, values and key-value pair...
  • New Java 7 Features: Using String in the Switch Statement
    In Java SE 7 and later, you can use a String object in the switch statement's expression. The following code example, StringSwitchDemo...
  • How and Why to override the toString() method in Java
    Object class has following five non final methods. 1. clone() 2. equals(Object obj) 3. finalize() 4. hashCode() 5. toString() Every Java cl...
  • Difference between fail-fast Iterator vs fail-safe Iterator in Java
    Fail-fast Iterators fail as soon as they realized that structure of Collection has been changed since iteration has begun. The iterators ...
Powered by Blogger.