<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Java Programming &#124; String</title>
	<atom:link href="http://javastring.javaprogramming4u.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://javastring.javaprogramming4u.info</link>
	<description>All about class String in Java</description>
	<lastBuildDate>Sat, 02 Oct 2010 12:49:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>how to modify string’s case</title>
		<link>http://javastring.javaprogramming4u.info/how-to-modify-strings-case/</link>
		<comments>http://javastring.javaprogramming4u.info/how-to-modify-strings-case/#comments</comments>
		<pubDate>Sat, 02 Oct 2010 09:20:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://javastring.javaprogramming4u.info/how-to-modify-strings-case/</guid>
		<description><![CDATA[&#160; This example shows how to change case of whole string: &#160; public void testModifyCase (){ &#160; String lowerCaseString = &#34;how to modify string case?&#34;; &#160; String upperCaseString = lowerCaseString.toUpperCase(); System.out.println(upperCaseString); //output: HOW TO MODIFY STRING CASE? &#160; lowerCaseString = null; lowerCaseString = upperCaseString.toLowerCase(); System.out.println(lowerCaseString); //output: how to modify string case? &#160; } .csharpcode, .csharpcode [...]]]></description>
		<wfw:commentRss>http://javastring.javaprogramming4u.info/how-to-modify-strings-case/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to get position by symbol</title>
		<link>http://javastring.javaprogramming4u.info/how-to-get-position-by-symbol/</link>
		<comments>http://javastring.javaprogramming4u.info/how-to-get-position-by-symbol/#comments</comments>
		<pubDate>Sat, 02 Oct 2010 07:46:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://javastring.javaprogramming4u.info/?p=24</guid>
		<description><![CDATA[&#160; indexOf(String symbolOrMore) method satisfieds our needs. Example: &#160; public void testGetPositionBySymbol(){ &#160; String testString = &#34;get position by symbol&#34;; &#160; //first symbol in java string indexed as 0, second as 1 and so on int index = testString.indexOf(&#34;g&#34;); System.out.println(index); //output: 0 index = testString.indexOf(&#34;s&#34;); System.out.println(index); //output: 6 &#160; index = testString.indexOf(&#34;s&#34;, 10); System.out.println(index); //output: [...]]]></description>
		<wfw:commentRss>http://javastring.javaprogramming4u.info/how-to-get-position-by-symbol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to get symbol by position</title>
		<link>http://javastring.javaprogramming4u.info/how-to-get-symbol-by-position/</link>
		<comments>http://javastring.javaprogramming4u.info/how-to-get-symbol-by-position/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 18:35:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://javastring.javaprogramming4u.info/?p=22</guid>
		<description><![CDATA[&#160; Class&#160;String provides method charAt(int index) that does exactly what needed. Example: &#160; public void testGetSymbolByPosition(){ String testString = &#34;get symbol by position&#34;; //first symbol in java string indexed as 0, second as 1 and so on char symbol = testString.charAt(0); System.out.println(symbol); //output: g &#160; symbol = testString.charAt(11); System.out.println(symbol); //output: b &#160; //this way we [...]]]></description>
		<wfw:commentRss>http://javastring.javaprogramming4u.info/how-to-get-symbol-by-position/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to take part of string</title>
		<link>http://javastring.javaprogramming4u.info/how-to-take-part-of-string/</link>
		<comments>http://javastring.javaprogramming4u.info/how-to-take-part-of-string/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 18:18:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://javastring.javaprogramming4u.info/?p=20</guid>
		<description><![CDATA[&#160; Class&#160;String provides overloaded substring(int startIndex) and substring(int startIndex, int endIndex) methods that allow to take any part of string by start and end position. Example: &#160; &#160; public void testTakePartOfString(){ &#160; String wholeString = &#34;Use substring -- take any part of whole_string&#34;; &#160; String partOfString = wholeString.substring(17); System.out.println(partOfString); //output: take any part of whole_string [...]]]></description>
		<wfw:commentRss>http://javastring.javaprogramming4u.info/how-to-take-part-of-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to split string</title>
		<link>http://javastring.javaprogramming4u.info/how-to-split-string/</link>
		<comments>http://javastring.javaprogramming4u.info/how-to-split-string/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 16:34:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://javastring.javaprogramming4u.info/?p=19</guid>
		<description><![CDATA[&#160; &#160; Very common situation when string need to be split. For example split sentence to words. String class provides split(String regex) method which does exactly what needed. Sample: &#160; public void testSplit (){ String articleTitle = "How to split sentences to words"; String [] words = articleTitle.split("\\s+"); //"\\s+" in regular expression language meaning one [...]]]></description>
		<wfw:commentRss>http://javastring.javaprogramming4u.info/how-to-split-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to remove extra spaces</title>
		<link>http://javastring.javaprogramming4u.info/how-to-remove-extra-spaces/</link>
		<comments>http://javastring.javaprogramming4u.info/how-to-remove-extra-spaces/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 18:24:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://javastring.javaprogramming4u.info/?p=13</guid>
		<description><![CDATA[&#160; String&#160;class provides trim() method which returns a copy of the string, with leading and trailing whitespace omitted. Example: &#160; public void testRemoveExtraSpacesWithTrim(){ &#160; String stringWithSpaces = &#34; abc &#34;; System.out.println(stringWithSpaces); //output: abc &#160; String stringWithNoSpaces = stringWithSpaces.trim(); System.out.println(stringWithNoSpaces); //output: abc } .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, [...]]]></description>
		<wfw:commentRss>http://javastring.javaprogramming4u.info/how-to-remove-extra-spaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to convert objects and primitives to string</title>
		<link>http://javastring.javaprogramming4u.info/how-to-convert-objects-and-primitives-to-string/</link>
		<comments>http://javastring.javaprogramming4u.info/how-to-convert-objects-and-primitives-to-string/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 17:38:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://javastring.javaprogramming4u.info/?p=12</guid>
		<description><![CDATA[&#160; Each Java object has the String toString() inherited from the Object class. This method provides a way to convert objects into Strings. public void testConvertObjectToString(){ //*arrays in Java are Objects int [] array = new int [] {1,2,3,4}; &#160; System.out.println(array.toString()); //output: [I@e48e1b } .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier [...]]]></description>
		<wfw:commentRss>http://javastring.javaprogramming4u.info/how-to-convert-objects-and-primitives-to-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to compare strings</title>
		<link>http://javastring.javaprogramming4u.info/how-to-compare-strings/</link>
		<comments>http://javastring.javaprogramming4u.info/how-to-compare-strings/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 12:06:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://javastring.javaprogramming4u.info/?p=9</guid>
		<description><![CDATA[&#160; String&#160;class contains many methods allow to compare strings or string parts. &#160; compareTo(String anotherString) Compares two strings lexicographically. When two strings are equal method returns 0. Example: .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem [...]]]></description>
		<wfw:commentRss>http://javastring.javaprogramming4u.info/how-to-compare-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to concatenate strings</title>
		<link>http://javastring.javaprogramming4u.info/how-to-concatenate/</link>
		<comments>http://javastring.javaprogramming4u.info/how-to-concatenate/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 04:16:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://javastring.javaprogramming4u.info/?p=7</guid>
		<description><![CDATA[&#160; Strings can be concatenated using “+” operator or concat() method. Just remember that strings are immutable objects and all times string is modified (concatenated) actually new object is created and old is thrown away. 1: public void testStringConcatenation() { 2: String aaa = &#34;aaa&#34;; 3: String bbb = &#34;bbb&#34;; 4: String aaa = aaa [...]]]></description>
		<wfw:commentRss>http://javastring.javaprogramming4u.info/how-to-concatenate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to create new string object</title>
		<link>http://javastring.javaprogramming4u.info/create-new/</link>
		<comments>http://javastring.javaprogramming4u.info/create-new/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 19:39:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://javastring.javaprogramming4u.info/?p=6</guid>
		<description><![CDATA[&#160; String object can be created simply by providing literal in the right side of statement: &#160; 1: String newString = &#34;newString&#34;; .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd [...]]]></description>
		<wfw:commentRss>http://javastring.javaprogramming4u.info/create-new/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

