The String Class and the Integer Class

The String and Integer Classes are very useful to know. Some of their methods (runnable pieces of code) are very useful to everyday coding.

The String Class

substring(start, end) – substring can be use to grab a certain section of a string. It is used by giving it a start and end position. If no end position is given it assumes the end of the string. Also important to note, the end position is actually one more than what is grabbed. You can just use the substring right away or you can save it either over the original or in its own variable. You can see in this example:

Class Eclipse String Example

Read moreThe String Class and the Integer Class

Please follow and like us:
Facebook
Facebook
Google+
Google+
http://aiclarke.com/tag/string-class">
YouTube
LinkedIn
RSS