Sunday, March 4, 2007

Methods of String class

Useful methods for text file processing

length()
indexOf(int ch)
indexOf(String str, int fromIndex)
lastIndexOf( )

charAt(int index)

substring(int beginindex)
substring(int begin, int end)

toUpperCase()
toLowerCase()

trim()

valueOf( ) 주어진 기본형과 객체를 문자열로 전환

No comments:

Post a Comment