Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: String length example

In this section, you will learn how to get the length of given string.

Tutorial Details:

The lang package of java provides the facility for getting the length of string. You will see in the following program for getting the length of string by using the length() method that returns integer type value of any given string.

After running this program takes any string in command line and calculates its length.


 

Rate Tutorial:
http://www.roseindia.net/java/beginners/StringLength1.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
String length example

View Tutorial:
String length example

Related Tutorials:

Designing with exceptions - JavaWorld - July 1998
Designing with exceptions - JavaWorld - July 1998
 
Java Tip 39: The trick to using a basic Java 1.1 network and file class loader - JavaWorld -
Java Tip 39: The trick to using a basic Java 1.1 network and file class loader - JavaWorld - October 1997
 
Use a RandomAccessFile to building a low-level database - JavaWorld January 1999
Use a RandomAccessFile to building a low-level database - JavaWorld January 1999
 
Locate services with the Jini lookup service
Locate services with the Jini lookup service
 
Dynamic user interface is only skin deep - JavaWorld May 2000
Dynamic user interface is only skin deep - JavaWorld May 2000
 
Leverage legacy systems with a blend of XML, XSL, and Java - JavaWorld October 2000
Leverage legacy systems with a blend of XML, XSL, and Java - JavaWorld October 2000
 
Mapping XML to Java, Part 2 - JavaWorld October 2000
Mapping XML to Java, Part 2 - JavaWorld October 2000
 
Design for performance, Part 1: Interfaces matter - JavaWorld January 2001
Design for performance, Part 1: Interfaces matter - JavaWorld January 2001
 
Design for performance, Part 2: Reduce object creation - JavaWorld February 2001
Design for performance, Part 2: Reduce object creation - JavaWorld February 2001
 
Device programming with MIDP, Part 3 - JavaWorld July 2001
Device programming with MIDP, Part 3 - JavaWorld July 2001
 
XML documents on the run, Part 2
XML documents on the run, Part 2
 
Navigate data with the Mapper framework
Navigate data with the Mapper framework
 
JavaWorld article
JavaWorld article
 
Java Tip 130: Do you know your data size?
Java Tip 130: Do you know your data size?
 
Java Tip 143: Utilize the Database Schema Browser
Java Tip 143: Utilize the Database Schema Browser
 
Once again, only introduction
Once again, only introduction
 
StelsCSV - JDBC driver for text files
StelsCSV is a CSV JDBC type 4 driver that allows to perform SQL queries and other JDBC operations on text files (comma separated, tab separated, fixed length etc). Using this driver, you can easily create a simple database consisting of plain text files.
 
Reading Request Information
Reading Request Information Reading Request Information When an HTTP client such as web browser sends a request to a wen server, along with the request it also sends some HTTP variables like Remote address, Remote host, Content type etc. In some
 
The Struts ActionForm Class
The Struts ActionForm Class The ActionForm Class In this lesson you will learn about the ActionForm in detail. I will show you a good example of ActionForm. This example will help you understand Struts in detail. We will create user interface to
 
StelsCSV v2.2 - JDBC driver for CSV files
*StelsCSV* is a JDBC driver that allows to perform SQL queries and other JDBC operations on text files (CSV, tab-separated, fixed length etc). Using this driver, you can easily create a simple database consisting of plain text files.
 
Site navigation
 

 

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

Copyright © 2006. All rights reserved.