Services | Updates | Contact
Home | Ajax | BioInformatics | Dojo | EAI | EJB | Hibernate | J2ME | Java | Java Glossary | Java Servlets | JavaScript | Jboss | JDBC | JDO | Jmeter | JSF | JSP | JUnit | Maven | MySQL | Spring Framework | SQL | Struts | Technology | WAP | Web Services | XML
Running from CDs
The major advantage of Linux is that it can run directly from CDs.
 
Open Source Forum/Bulletin Board Software written in Java
An XML based Java 2 Enterprise Forum Solution for webmaters.
 
More Tutorials...


    Loan Information     Struts     Open Source

Programming Tutorials: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML

 
 
Java

 
Comments
 
 

 

Java String Examples

                         

  1. Comparing Strings (== operator)
    This section describes how two string references are compared. If two String variables point to the same object then these two variables are called references for the same object.

  2. Creation of StringBuffer
    In this section, you will learn how to create a string buffer. Here we have used the following StringBuffer Constructors.
      
  3. Reading File into a Byte Array
    In this section, you will learn how to make a file to be read into a byte array. Here we have used inputStream constructor to take file as a parameter.
     
  4. Java Count Vowels
    In this program you will learn how to count vowels in a String. Here you will be asked to enter a String of your own choice and then you will get the number of vowels from that String.

  5. Java Display File-Extension
    In this program you will learn how to display the file extension of the file. Here you will be asked to enter the file name and then you will get the extension of the file.

  6. Java Change File-Extension 
    In this program you will learn how to change the file extension of the file. Here you will be asked to enter the file name whose extension is to be changed and then you will get the file name with the changed extension.

  7. Java String Occurrence in a String
    In this program you will learn how to find the occurrence of a String in another String. Here we have already taken a String.

  8. String replaceFirst() Method
    In this program you will learn how to replace words in a text. We are going to use replaceFirst() method of String class in Java. The description of the code is given below for the usage of the method.

  9. String indexOf() Method
    In this section, you will get the detailed explanation about the indexOf() method of String class. We are going to use indexOf() method of String class in Java. 

  10. String sort() Method
    In this program you will learn how to sort words in a String. The sorting will be done in ascending order.
    We are going to use sort() method of String class in Java. The description of the code is given below for the usage of the method.

  11. String replaceAll() Method
    In this program you will learn how to replace all the words in a String.
    We are going to use replaceAll() method of String class in Java. The description of the code is given below for the usage of the method.

  12. String indexOf(int ch) 
    In this section, you will get the detailed explanation about the indexOf(int ch) method of String class. We are going to use indexOf(int ch) method of String class in Java. 

  13. String indexOf(int ch, int fromIndex) 
    In this section, you will get the detailed explanation about the indexOf(int ch, int fromIndex) method of String class. We are going to use indexOf(int ch, int fromIndex) method of String class in Java. 

  14. String indexOf(String str) 
    In this section, you will get the detailed explanation about the
    indexOf(String str) method of String class. We are going to use indexOf(String str) method of String class in Java.

  15. String indexOf(String str, int fromIndex) 
    In this section, you will get the detailed explanation about the
    indexOf(String str, int fromIndex) method of String class. We are going to use indexOf(String str, int fromIndex) method of String class in Java.

  16. String lastIndexOf(int ch)
    In this section, you will get the detailed explanation about the lastIndexOf(int ch) method of String class. We are going to use lastIndexOf(int ch) method of String class in Java.

  17. String lastIndexOf(String str) 
    In this section, you will get the detailed explanation about the
    lastIndexOf(String str) method of String class. We are going to use lastIndexOf(String str) method of String class in Java. 

  18. String lastIndexOf(String str, int fromIndex)
    In this section, you will get the detailed explanation about the lastindexOf(String str, int fromIndex) method of String class. We are going to use lastindexOf(String str, int fromIndex) method of String class in Java.  

  19. String lastIndexOf(int ch, int fromIndex)
    In this section, you will get the detailed explanation about the lastindexOf(int ch, int fromIndex) method of String class. We are going to use lastindexOf(int ch, int fromIndex) method of String class in Java.

  20. String regionMatches()
    In this section, you will get the detailed explanation about the regionMatches() method of String class. We are going to use regionMatches() method of String class in Java.

  21. String substring(int beginIndex)
    In this section, you will get the detailed explanation about the substring(int beginIndex) method of String class. We are going to use substring(int beginIndex) method of String class in Java.

  22. String substring(int beginIndex, int endIndex)
    In this section, you will get the detailed explanation about the substring(int beginIndex, int endIndex) method of String class. We are going to use substring(int beginIndex, int endIndex) method of String class in Java.

  23. String equalsIgnoreCase(String Str)
    In this section, you will get the detailed explanation about the equalsIgnoreCase(String Str) method of String class. We are going to use equalsIgnoreCase(String Str) method of String class in Java. 

  24. String Concat()
    In this section, you will get the detailed explanation about the
    Concat() method of String class. We are going to use Concat() method of String class in Java.

  25. String copyValueOf(char[] data, int offset, int count)
    In this section, you will get the detailed explanation about the copyValueOf(char[] data, int offset, int count) method of String class. We are going to use copyValueOf(char[] data, int offset, int count) method of String class in Java. 

  26. String getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
    In this section, you will get the detailed explanation about the getChars() method of String class. We are going to use getChars() method of String class in Java. 

  27. String intern()
    In this section, you will get the detailed explanation about the intern() method of String class. We are going to use intern() method of String class in Java. The description of the code is given below for the usage of the method.

  28. String Determining a Character's Unicode Block
    In this section, you will get the detailed explanation about the UnicodeBlock() method of String class. We are going to use UnicodeBlock() method of String class in Java. The description of the code is given below for the usage of the method.

 

                         

Facing Programming Problem?
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

1 comments so far (post your own) View All Comments Latest 10 Comments:

along with theory there must be some exasmples

Posted by lalit negi on Monday, 09.10.07 @ 18:20pm | #26597

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

  EAI Articles
  Java Certification
Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2007. All rights reserved.