<?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>cs_review &#8211; CS@Worcester</title>
	<atom:link href="https://cs.worcester.edu/category/cs_review/feed/" rel="self" type="application/rss+xml" />
	<link>https://cs.worcester.edu</link>
	<description>Worcester State University Computer Science Department</description>
	<lastBuildDate>Mon, 21 Mar 2016 16:14:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
<site xmlns="com-wordpress:feed-additions:1">236835116</site>	<item>
		<title>CS Review: Strings</title>
		<link>https://shatos.wordpress.com/2016/03/21/cs-review-strings/</link>
		
		<dc:creator><![CDATA[shatos]]></dc:creator>
		<pubDate>Mon, 21 Mar 2016 16:14:47 +0000</pubDate>
				<category><![CDATA[cs_review]]></category>
		<guid isPermaLink="false">http://shatos.wordpress.com/?p=177</guid>

					<description><![CDATA[Tokenizers: StringTokenizer tokenizer = new StringTokenizer(&#8220;Example String Here&#8221;, delimiter (blank if space)); while(tokenizer.hasMoreElements()){ &#160; &#160; &#160; &#160; Integer i = Integer.parseInt(tokenizer.nextElement().toString()); } Substring: String full = &#8220;Full Text&#8221;; String sub = full.substring(5,9); System.out.println(&#8220;Will print the word &#8216;Text&#8217;: &#160;&#8221; + sub); Split: String full = &#8220;This is the full text&#8221;; String[] = full.split(&#8221; &#8220;); //or regular &#8230; <a href="https://shatos.wordpress.com/2016/03/21/cs-review-strings/">Continue reading <span>CS Review: Strings</span> <span>&#8594;</span></a><img alt="" border="0" src="https://pixel.wp.com/b.gif?host=shatos.wordpress.com&#38;blog=83470487&#38;post=177&#38;subd=shatos&#38;ref=&#38;feed=1" width="1" height="1">]]></description>
										<content:encoded><![CDATA[<p>Tokenizers:</p>
<ol>
<li>StringTokenizer tokenizer = new StringTokenizer(&#8220;Example String Here&#8221;, delimiter (blank if space));</li>
<li>while(tokenizer.hasMoreElements()){</li>
<li>        Integer i = Integer.parseInt(tokenizer.nextElement().toString());</li>
<li>}</li>
</ol>
<p>Substring:</p>
<ol>
<li>String full = &#8220;Full Text&#8221;;</li>
<li>String sub = full.substring(5,9);</li>
<li>System.out.println(&#8220;Will print the word &#8216;Text&#8217;:  &#8221; + sub);</li>
</ol>
<p>Split:</p>
<ol>
<li>String full = &#8220;This is the full text&#8221;;</li>
<li>String[] = full.split(&#8221; &#8220;); //or regular expression</li>
<li>string.trim();</li>
</ol>
<p>Character At:</p>
<ol>
<li>char c = string.charAt(7);</li>
</ol>
<p>Replace:</p>
<ol>
<li>String s = &#8220;Hello&#8221;;</li>
<li>s.replace(&#8216;H&#8217;, &#8216;J&#8217;);//turns Hello to Jello</li>
<li>s = &#8220;Hello&#8221;;</li>
<li>s.replace(&#8220;Hello&#8221;, &#8220;Jello&#8221;);//also turns to Jello</li>
</ol>
<p>Character Array:</p>
<ol>
<li>char[] cha =  new char[str.length()];</li>
<li>for(int i=0;i&lt;str.length();i++){</li>
<li>        cha[i] = str.charAt(i);</li>
<li>}</li>
<li>//toString for printout</li>
</ol>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shatos.wordpress.com/177/"><img decoding="async" alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shatos.wordpress.com/177/" /></a> <img data-recalc-dims="1" decoding="async" alt="" border="0" src="https://i0.wp.com/pixel.wp.com/b.gif?resize=1%2C1&#038;ssl=1" width="1" height="1" /></p>

<p class="syndicated-attribution"><em>From the blog <a href="https://shatos.wordpress.com">shatos</a> by <a href="https://cs.worcester.edu/author/0/" title="Read other posts by shatos">shatos</a></em> and used with permission of the author. All other rights reserved by the author.</p>]]></content:encoded>
					
		
		<enclosure url="https://1.gravatar.com/avatar/798eb40b0a73b10963b1ddd9f1e1d917?s=96&#038;d=identicon&#038;r=G" length="0" type="" />

		<post-id xmlns="com-wordpress:feed-additions:1">4180</post-id>	</item>
		<item>
		<title>CS Review: Strings</title>
		<link>https://shatos.wordpress.com/2016/03/21/cs-review-strings/</link>
		
		<dc:creator><![CDATA[shatos]]></dc:creator>
		<pubDate>Mon, 21 Mar 2016 16:14:47 +0000</pubDate>
				<category><![CDATA[cs_review]]></category>
		<guid isPermaLink="false">https://shatos.wordpress.com/?p=177</guid>

					<description><![CDATA[Tokenizers: StringTokenizer tokenizer = new StringTokenizer(“Example String Here”, delimiter (blank if space)); while(tokenizer.hasMoreElements()){         Integer i = Integer.parseInt(tokenizer.nextElement().toString()); } Substring: String full = “Full Text”; String sub = full.substring(5,9); System.out.println(“Will print the word ‘Text’:  ” + sub); Split: String full = “This is the full text”; String[] = full.split(” “); //or regular … <a href="https://shatos.wordpress.com/2016/03/21/cs-review-strings/" class="more-link">Continue reading <span class="screen-reader-text">CS Review: Strings</span> <span class="meta-nav">→</span></a>]]></description>
										<content:encoded><![CDATA[<p>Tokenizers:</p>
<ol>
<li>StringTokenizer tokenizer = new StringTokenizer(&#8220;Example String Here&#8221;, delimiter (blank if space));</li>
<li>while(tokenizer.hasMoreElements()){</li>
<li>        Integer i = Integer.parseInt(tokenizer.nextElement().toString());</li>
<li>}</li>
</ol>
<p>Substring:</p>
<ol>
<li>String full = &#8220;Full Text&#8221;;</li>
<li>String sub = full.substring(5,9);</li>
<li>System.out.println(&#8220;Will print the word &#8216;Text&#8217;:  &#8221; + sub);</li>
</ol>
<p>Split:</p>
<ol>
<li>String full = &#8220;This is the full text&#8221;;</li>
<li>String[] = full.split(&#8221; &#8220;); //or regular expression</li>
<li>string.trim();</li>
</ol>
<p>Character At:</p>
<ol>
<li>char c = string.charAt(7);</li>
</ol>
<p>Replace:</p>
<ol>
<li>String s = &#8220;Hello&#8221;;</li>
<li>s.replace(&#8216;H&#8217;, &#8216;J&#8217;);//turns Hello to Jello</li>
<li>s = &#8220;Hello&#8221;;</li>
<li>s.replace(&#8220;Hello&#8221;, &#8220;Jello&#8221;);//also turns to Jello</li>
</ol>
<p>Character Array:</p>
<ol>
<li>char[] cha =  new char[str.length()];</li>
<li>for(int i=0;i&lt;str.length();i++){</li>
<li>        cha[i] = str.charAt(i);</li>
<li>}</li>
<li>//toString for printout</li>
</ol>
<p>&nbsp;</p>
<p>&nbsp;</p>

<p class="syndicated-attribution"><em>From the blog <a href="https://shatos.wordpress.com">shatos</a> by <a href="https://cs.worcester.edu/author/0/" title="Read other posts by shatos">shatos</a></em> and used with permission of the author. All other rights reserved by the author.</p>]]></content:encoded>
					
		
		<enclosure url="https://1.gravatar.com/avatar/798eb40b0a73b10963b1ddd9f1e1d917?s=96&#038;d=identicon&#038;r=G" length="0" type="" />

		<post-id xmlns="com-wordpress:feed-additions:1">15709</post-id>	</item>
		<item>
		<title>CS Review: Input/Output</title>
		<link>https://shatos.wordpress.com/2016/03/21/cs-review-inputoutput/</link>
		
		<dc:creator><![CDATA[shatos]]></dc:creator>
		<pubDate>Mon, 21 Mar 2016 15:37:31 +0000</pubDate>
				<category><![CDATA[cs_review]]></category>
		<guid isPermaLink="false">http://shatos.wordpress.com/?p=133</guid>

					<description><![CDATA[There are a few basic types of input/output sources that are usually used. Buffered File In: String file = &#8220;file.txt&#8221;; FileReader fReader = new FileReader(file); BufferedReader bReader= new BufferedReader(fReader); String s = bReader.readLine(); bReader.close(); Buffered File Out: String fileOut = &#8220;fileOut.txt&#8221;); FileWriter fWrite = new FileWriter(fileOut); BufferedWriter bWrite = new BufferedWriter(fWrite); bWrite.write(&#8220;Anything&#8221;, offset, length); bWrite.close(); &#8230; <a href="https://shatos.wordpress.com/2016/03/21/cs-review-inputoutput/">Continue reading <span>CS Review: Input/Output</span> <span>&#8594;</span></a><img alt="" border="0" src="https://pixel.wp.com/b.gif?host=shatos.wordpress.com&#38;blog=83470487&#38;post=133&#38;subd=shatos&#38;ref=&#38;feed=1" width="1" height="1">]]></description>
										<content:encoded><![CDATA[<p>There are a few basic types of input/output sources that are usually used.</p>
<p>Buffered File In:</p>
<ol>
<li>
<ol>
<li>String file = &#8220;file.txt&#8221;;</li>
<li>FileReader fReader = new FileReader(file);</li>
<li>BufferedReader bReader= new BufferedReader(fReader);</li>
<li>String s = bReader.readLine();</li>
<li>bReader.close();</li>
</ol>
</li>
</ol>
<p>Buffered File Out:</p>
<ol>
<li>
<ol>
<li>String fileOut = &#8220;fileOut.txt&#8221;);</li>
<li>FileWriter fWrite = new FileWriter(fileOut);</li>
<li>BufferedWriter bWrite = new BufferedWriter(fWrite);</li>
<li>bWrite.write(&#8220;Anything&#8221;, offset, length);</li>
<li>bWrite.close();</li>
</ol>
</li>
</ol>
<p>Standard In (Usually a Keyboard):</p>
<ol>
<li>
<ol>
<li> InputStreamReader cin = new InputStreamReader(Sytem.in);</li>
<li> char c = (char) cin.read();</li>
</ol>
</li>
</ol>
<p>Standard Out (Console):</p>
<ol>
<li>
<ol>
<li>System.out.print(&#8220;System.out is already setup&#8221;);</li>
</ol>
</li>
</ol>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shatos.wordpress.com/133/"><img decoding="async" alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shatos.wordpress.com/133/" /></a> <img data-recalc-dims="1" decoding="async" alt="" border="0" src="https://i0.wp.com/pixel.wp.com/b.gif?resize=1%2C1&#038;ssl=1" width="1" height="1" /></p>

<p class="syndicated-attribution"><em>From the blog <a href="https://shatos.wordpress.com">shatos</a> by <a href="https://cs.worcester.edu/author/0/" title="Read other posts by shatos">shatos</a></em> and used with permission of the author. All other rights reserved by the author.</p>]]></content:encoded>
					
		
		<enclosure url="https://1.gravatar.com/avatar/798eb40b0a73b10963b1ddd9f1e1d917?s=96&#038;d=identicon&#038;r=G" length="0" type="" />

		<post-id xmlns="com-wordpress:feed-additions:1">4178</post-id>	</item>
		<item>
		<title>CS Review: Input/Output</title>
		<link>https://shatos.wordpress.com/2016/03/21/cs-review-inputoutput/</link>
		
		<dc:creator><![CDATA[shatos]]></dc:creator>
		<pubDate>Mon, 21 Mar 2016 15:37:31 +0000</pubDate>
				<category><![CDATA[cs_review]]></category>
		<guid isPermaLink="false">https://shatos.wordpress.com/?p=133</guid>

					<description><![CDATA[There are a few basic types of input/output sources that are usually used. Buffered File In: String file = “file.txt”; FileReader fReader = new FileReader(file); BufferedReader bReader= new BufferedReader(fReader); String s = bReader.readLine(); bReader.close(); Buffered File Out: String fileOut = “fileOut.txt”); FileWriter fWrite = new FileWriter(fileOut); BufferedWriter bWrite = new BufferedWriter(fWrite); bWrite.write(“Anything”, offset, length); bWrite.close(); … <a href="https://shatos.wordpress.com/2016/03/21/cs-review-inputoutput/" class="more-link">Continue reading <span class="screen-reader-text">CS Review: Input/Output</span> <span class="meta-nav">→</span></a>]]></description>
										<content:encoded><![CDATA[<p>There are a few basic types of input/output sources that are usually used.</p>
<p>Buffered File In:</p>
<ol>
<li>
<ol>
<li>String file = &#8220;file.txt&#8221;;</li>
<li>FileReader fReader = new FileReader(file);</li>
<li>BufferedReader bReader= new BufferedReader(fReader);</li>
<li>String s = bReader.readLine();</li>
<li>bReader.close();</li>
</ol>
</li>
</ol>
<p>Buffered File Out:</p>
<ol>
<li>
<ol>
<li>String fileOut = &#8220;fileOut.txt&#8221;);</li>
<li>FileWriter fWrite = new FileWriter(fileOut);</li>
<li>BufferedWriter bWrite = new BufferedWriter(fWrite);</li>
<li>bWrite.write(&#8220;Anything&#8221;, offset, length);</li>
<li>bWrite.close();</li>
</ol>
</li>
</ol>
<p>Standard In (Usually a Keyboard):</p>
<ol>
<li>
<ol>
<li> InputStreamReader cin = new InputStreamReader(Sytem.in);</li>
<li> char c = (char) cin.read();</li>
</ol>
</li>
</ol>
<p>Standard Out (Console):</p>
<ol>
<li>
<ol>
<li>System.out.print(&#8220;System.out is already setup&#8221;);</li>
</ol>
</li>
</ol>
<p>Scanners:</p>
<ol>
<li>Scanner in = new Scanner(System.in);</li>
<li>int i = in.nextInt();</li>
<li></li>
</ol>
<p>&nbsp;</p>
<p>&nbsp;</p>

<p class="syndicated-attribution"><em>From the blog <a href="https://shatos.wordpress.com">shatos</a> by <a href="https://cs.worcester.edu/author/0/" title="Read other posts by shatos">shatos</a></em> and used with permission of the author. All other rights reserved by the author.</p>]]></content:encoded>
					
		
		<enclosure url="https://1.gravatar.com/avatar/798eb40b0a73b10963b1ddd9f1e1d917?s=96&#038;d=identicon&#038;r=G" length="0" type="" />

		<post-id xmlns="com-wordpress:feed-additions:1">15711</post-id>	</item>
	</channel>
</rss>
