What is a split() function?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is a split() function?

Rating:

A split() function was added to Java 1.4. It belongs to the String class. It simplifies the task of breaking (splitting) a string into substrings or tokens. As an argument to split(), a character (or a blank space) is passed where the string is split. The signature of a split function is as follows:

public String [] split(String regex) , or
public String [] split(String regex, int limit)

where, regex is a regular expression to be split.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.