<?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>web development helpdesk &#187; string</title>
	<atom:link href="http://helpdesk.objects.com.au/tag/string/feed" rel="self" type="application/rss+xml" />
	<link>http://helpdesk.objects.com.au</link>
	<description>objects quality - the visible difference</description>
	<lastBuildDate>Sun, 17 Jul 2011 12:27:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>How to pad a Java String</title>
		<link>http://helpdesk.objects.com.au/java/how-to-pad-a-java-string?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-pad-a-java-string</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-pad-a-java-string#comments</comments>
		<pubDate>Sat, 05 Mar 2011 02:43:05 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[fill]]></category>
		<category><![CDATA[Formatter]]></category>
		<category><![CDATA[pad]]></category>
		<category><![CDATA[printf]]></category>
		<category><![CDATA[space]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1791</guid>
		<description><![CDATA[Often we need to left or right pad a string, for example when you need a set of strings to be all the same length. Java introduced Formatter class in 1.5 to provide printf style formatting. We can use this formatting to pad our Strings with spaces. The String class provides a utility format() method [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-pad-a-java-string/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to convert unicode string to ascii</title>
		<link>http://helpdesk.objects.com.au/java/how-to-convert-unicode-string-to-ascii?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-convert-unicode-string-to-ascii</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-convert-unicode-string-to-ascii#comments</comments>
		<pubDate>Tue, 22 Feb 2011 01:34:53 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[ascii]]></category>
		<category><![CDATA[decomposition]]></category>
		<category><![CDATA[Normalizer]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[unicode]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1772</guid>
		<description><![CDATA[Unicode string can contain lots lots of characters we don&#8217;t always want to deal with. If you know specifically what characters you want to get rid of then you can use replaceAll() to get rid of them. But for a more general solution Java provides the java.text.Normalizer class. The Normalizer class transforms Unicode text into [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-convert-unicode-string-to-ascii/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to split a Java string into sentences</title>
		<link>http://helpdesk.objects.com.au/java/how-to-split-a-java-string-into-sentences?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-split-a-java-string-into-sentences</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-split-a-java-string-into-sentences#comments</comments>
		<pubDate>Fri, 03 Dec 2010 01:08:08 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[BreakIterator]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[sentence]]></category>
		<category><![CDATA[split]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1715</guid>
		<description><![CDATA[We often need to parse text and have vaious classes at our disposal to help us. For example String.split() is often used to break up a string on a given delimiter. But what if we want to break up a paragraph of text into sentences. We could split on the period (.) character but this [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-split-a-java-string-into-sentences/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create MD5 Sum string from binary data</title>
		<link>http://helpdesk.objects.com.au/java/create-md5-sum-string-from-binary-data?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=create-md5-sum-string-from-binary-data</link>
		<comments>http://helpdesk.objects.com.au/java/create-md5-sum-string-from-binary-data#comments</comments>
		<pubDate>Mon, 23 Aug 2010 23:04:03 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[BigInteger]]></category>
		<category><![CDATA[md5]]></category>
		<category><![CDATA[MessageDigest]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1561</guid>
		<description><![CDATA[We&#8217;ve previously shown how to create an MD5 sum for a file. If you don&#8217;t have a file and instead just need an MD5 sum for a byte array then you can achieve it using the following code. // Data is the byte array we need an MD5 sum for byte[] data = getDataFromWhereever(); // [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/create-md5-sum-string-from-binary-data/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Split a String into equal sized chunks</title>
		<link>http://helpdesk.objects.com.au/java/split-a-string-into-equal-sized-chunks?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=split-a-string-into-equal-sized-chunks</link>
		<comments>http://helpdesk.objects.com.au/java/split-a-string-into-equal-sized-chunks#comments</comments>
		<pubDate>Fri, 30 Jul 2010 00:21:31 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[regexp]]></category>
		<category><![CDATA[split]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[substring]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1542</guid>
		<description><![CDATA[The following code will split the string into chunks, each of length &#8216;nchars&#8217; (except potentially the last chunk) int len = string.length(); for (int i=0; i&#60;len; i+=nchars) { String part = string.substring(i, Math.min(len, i + nchars))); } Another more exotic option uses regular expression and the spit() method. The number of dots in the regexp [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/split-a-string-into-equal-sized-chunks/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to remove all spaces from a Java string</title>
		<link>http://helpdesk.objects.com.au/java/how-to-remove-all-spaces-from-a-java-string?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-remove-all-spaces-from-a-java-string</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-remove-all-spaces-from-a-java-string#comments</comments>
		<pubDate>Wed, 28 Jul 2010 10:00:43 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[regexp]]></category>
		<category><![CDATA[spaces]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1530</guid>
		<description><![CDATA[Java 1.5 added a replace() method that could be used to replace all occurrences of a string wiuth another string s = s.replace(&#34; &#34;, &#34;&#34;); Prior to 1.5 you can use a regular expression with the replaceAll() method to achieve that. s = s.replaceAll(&#34; &#34;, &#34;&#34;); // Or to replace all whitespace s = s.replaceAll(&#34;\\s&#34;, [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-remove-all-spaces-from-a-java-string/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to zero pad a value</title>
		<link>http://helpdesk.objects.com.au/java/how-to-zero-pad-a-value?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-zero-pad-a-value</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-zero-pad-a-value#comments</comments>
		<pubDate>Thu, 15 Apr 2010 00:21:25 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[int]]></category>
		<category><![CDATA[pad]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1454</guid>
		<description><![CDATA[public static String zeroPad(int value, int width) { return String.format(&#34;%0&#34;+width+&#34;d&#34;, value); } Related posts: How to pad a Java String Often we need to left or right pad a string,... How do I format a Date as a String? Either use the format() method of the SimpleDateFormat class, or... How to format value as a [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-zero-pad-a-value/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to tokenize a string and preserve quoted tokens</title>
		<link>http://helpdesk.objects.com.au/java/how-to-tokenize-a-string-and-preserve-quoted-tokens?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-tokenize-a-string-and-preserve-quoted-tokens</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-tokenize-a-string-and-preserve-quoted-tokens#comments</comments>
		<pubDate>Tue, 25 Aug 2009 01:14:01 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[split]]></category>
		<category><![CDATA[StreamTokenizer]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[StringTokenizer]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1147</guid>
		<description><![CDATA[Typically String.split() or StringTokenizer class is user to break up a string into tokens. Problem with these methods is that they do not handle quoted text as you may require. For example, consider the following string: The mans name was "Big Fred" Using split() or StringTokenizer on this would give us 6 tokens: (The) (mans) [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-tokenize-a-string-and-preserve-quoted-tokens/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to reverse a String?</title>
		<link>http://helpdesk.objects.com.au/java/how-to-reverse-a-string?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-reverse-a-string</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-reverse-a-string#comments</comments>
		<pubDate>Sat, 02 May 2009 15:49:57 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[reverse]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[StringBuilder]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=938</guid>
		<description><![CDATA[Java Strings are immutable (cannot be changed) so reversing a String requires creating a new String. A loop can be used to build the reversed string by adding the characters from original string in reverse order, but the StringBuilder class provides a reverse() method to do it for us. The following example shows its usage. [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-reverse-a-string/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to convert an array to a String?</title>
		<link>http://helpdesk.objects.com.au/java/how-to-convert-an-array-to-a-string?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-convert-an-array-to-a-string</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-convert-an-array-to-a-string#comments</comments>
		<pubDate>Thu, 05 Feb 2009 02:38:49 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[arrays]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=758</guid>
		<description><![CDATA[The Arrays class has a set of helper toString methods for converting an array to a string representation. String representation = Arrays.toString(array); This will work for all array types. For Objects it uses the toString() method of the type to convert array elements. If you need more control how the array is represented then you [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-convert-an-array-to-a-string/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

