<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Fernando Joel Rauber</title>
	<atom:link href="http://ferrauber.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ferrauber.wordpress.com</link>
	<description>Bacharel em Ciência da Computação - Analista e Desenvolvedor de Sistemas</description>
	<lastBuildDate>Wed, 20 Jul 2011 19:13:28 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ferrauber.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/5be4252ed0a3dba3b49741cd692ee321?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Fernando Joel Rauber</title>
		<link>http://ferrauber.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ferrauber.wordpress.com/osd.xml" title="Fernando Joel Rauber" />
	<atom:link rel='hub' href='http://ferrauber.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Validar dígito verificador CNPJ</title>
		<link>http://ferrauber.wordpress.com/2011/07/20/validar-digito-verificador-cnpj/</link>
		<comments>http://ferrauber.wordpress.com/2011/07/20/validar-digito-verificador-cnpj/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 19:12:55 +0000</pubDate>
		<dc:creator>ferrauber</dc:creator>
				<category><![CDATA[Métodos - formatações]]></category>

		<guid isPermaLink="false">http://ferrauber.wordpress.com/?p=272</guid>
		<description><![CDATA[JAVA – Framework TotalCross: 1º &#8211; Chamada ao método e conferência: 2º &#8211; Método que calcula o dígito verificador do CNPJ: 3º &#8211; Remoção dos caracteres especiais:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=272&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>JAVA – Framework TotalCross:</p>
<p>1º &#8211; Chamada ao método e conferência:</p>
<p><pre class="brush: java;">
// Cnpj passado sem os dois últimos dígitos. No método calcDigVerifCnpj() os caracteres especiais são removidos. Ex:12.345.678/0001-
String digitoVerificador = calcDigVerifCnpj(edtCgcCpf.getText().substring(0, edtCgcCpf.getText().length() - 2));

if(!digitoVerificador.equals(edtCgcCpf.getText().substring(16)))
  System.out.println(&quot;Dígito verificador do CNPJ inválido&quot;);
</pre></p>
<p>2º &#8211; Método que calcula o dígito verificador do CNPJ:</p>
<p><pre class="brush: java;">
public String calcDigVerifCnpj(String cnpj) {  
		
   cnpj = formataRemocaoCaracteresEspeciais(cnpj);
		
   int[] arrNum = new int[]{5,4,3,2,9,8,7,6,5,4,3,2};
		
   int soma = 0, divisao = 11, primDig = 0, segDig = 0;  
   for (int i = 0; i &lt; arrNum.length; i++)
      soma += arrNum[i] * Integer.parseInt(cnpj.substring(i, i+1));
        
   primDig = (soma % divisao);
        
   if(primDig &lt; 2)
      primDig = 0;
   else
      primDig = (11 - primDig);
        	
   cnpj += primDig;
        
   arrNum = new int[]{6,5,4,3,2,9,8,7,6,5,4,3,2};
   soma = 0;
   for (int j = 0; j &lt; arrNum.length; j++)
      soma += arrNum[j] * Integer.parseInt(cnpj.substring(j, j+1));
        
   segDig = (soma % divisao);
        
   if(segDig &lt; 2)
      segDig = 0;
   else
      segDig = (11 - segDig);
        
   return &quot;&quot;+primDig + segDig;  
}
</pre></p>
<p>3º &#8211; Remoção dos caracteres especiais:</p>
<p><pre class="brush: java;">
public String formataRemocaoCaracteresEspeciais(String valor){

   if (valor.indexOf(&quot;,&quot;) != -1 || valor.indexOf(&quot;.&quot;) != -1 || valor.indexOf(&quot;-&quot;) != -1 || valor.indexOf(&quot;/&quot;) != -1) {

      StringBuffer valorAux = new StringBuffer();
      for (int i = 0; i &lt; valor.length(); i++)
         if ((valor.charAt(i) != ',') &amp;&amp; (valor.charAt(i) != '.') &amp;&amp; (valor.charAt(i) != '-') &amp;&amp; (valor.charAt(i) != '/'))
            valorAux.append(valor.charAt(i));

      valor = valorAux.toString();
  }      
  return valor;
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ferrauber.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ferrauber.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ferrauber.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ferrauber.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ferrauber.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ferrauber.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ferrauber.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ferrauber.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ferrauber.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ferrauber.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ferrauber.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ferrauber.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ferrauber.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ferrauber.wordpress.com/272/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=272&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ferrauber.wordpress.com/2011/07/20/validar-digito-verificador-cnpj/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b542831d2cba48fabdeb876077282b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ferrauber</media:title>
		</media:content>
	</item>
		<item>
		<title>Validar dígito verificador CPF</title>
		<link>http://ferrauber.wordpress.com/2011/07/20/validar-digito-verificador-cpf/</link>
		<comments>http://ferrauber.wordpress.com/2011/07/20/validar-digito-verificador-cpf/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 19:08:24 +0000</pubDate>
		<dc:creator>ferrauber</dc:creator>
				<category><![CDATA[Métodos - formatações]]></category>

		<guid isPermaLink="false">http://ferrauber.wordpress.com/?p=267</guid>
		<description><![CDATA[JAVA – Framework TotalCross: 1º &#8211; Chamada ao método e conferência: 2º &#8211; Método que calcula o dígito verificador do CPF: 3º &#8211; Remoção dos caracteres especiais:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=267&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>JAVA – Framework TotalCross:</p>
<p>1º &#8211; Chamada ao método e conferência:</p>
<p><pre class="brush: java;">
// Cpf passado sem os dois últimos dígitos. No método calcDigVerifCpf() os caracteres especiais são removidos. Ex:123.456.789-
String digitoVerificador = calcDigVerifCpf(edtCgcCpf.getText().substring(0, edtCgcCpf.getText().length() - 2));

if(!digitoVerificador.equals(edtCgcCpf.getText().substring(12)))
  System.out.println(&quot;Dígito verificador do CPF inválido&quot;);
</pre></p>
<p>2º &#8211; Método que calcula o dígito verificador do CPF:</p>
<p><pre class="brush: java;">
public String calcDigVerifCpf(String cpf) {

   cpf = formataRemocaoCaracteresEspeciais(cpf);

   int soma = 0, divisao = 11, primDig = 0, segDig = 0;
   for (int i = 1; i &lt;= 9; i++)
      soma += i * Integer.parseInt(cpf.substring(i-1, i));

   primDig = (soma % divisao);

   if(primDig == 10)
      primDig = 0;

   cpf += primDig;

   soma = 0;
   for (int j = 0; j &lt;= 9; j++)
      soma += j * Integer.parseInt(cpf.substring(j, j+1));

   segDig = (soma % divisao);

   if(segDig == 10)
      segDig = 0;

   return &quot;&quot;+primDig + segDig;
}
</pre></p>
<p>3º &#8211; Remoção dos caracteres especiais:</p>
<p><pre class="brush: java;">
public String formataRemocaoCaracteresEspeciais(String valor){

   if (valor.indexOf(&quot;,&quot;) != -1 || valor.indexOf(&quot;.&quot;) != -1 || valor.indexOf(&quot;-&quot;) != -1 || valor.indexOf(&quot;/&quot;) != -1) {

      StringBuffer valorAux = new StringBuffer();
      for (int i = 0; i &lt; valor.length(); i++)
         if ((valor.charAt(i) != ',') &amp;&amp; (valor.charAt(i) != '.') &amp;&amp; (valor.charAt(i) != '-') &amp;&amp; (valor.charAt(i) != '/'))
            valorAux.append(valor.charAt(i));

      valor = valorAux.toString();
  }      
  return valor;
}

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ferrauber.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ferrauber.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ferrauber.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ferrauber.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ferrauber.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ferrauber.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ferrauber.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ferrauber.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ferrauber.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ferrauber.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ferrauber.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ferrauber.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ferrauber.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ferrauber.wordpress.com/267/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=267&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ferrauber.wordpress.com/2011/07/20/validar-digito-verificador-cpf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b542831d2cba48fabdeb876077282b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ferrauber</media:title>
		</media:content>
	</item>
		<item>
		<title>Carrie, a estranha</title>
		<link>http://ferrauber.wordpress.com/2011/05/11/carrie-a-estranha/</link>
		<comments>http://ferrauber.wordpress.com/2011/05/11/carrie-a-estranha/#comments</comments>
		<pubDate>Wed, 11 May 2011 13:03:18 +0000</pubDate>
		<dc:creator>ferrauber</dc:creator>
				<category><![CDATA[Carrie a estranha]]></category>
		<category><![CDATA[suspense]]></category>
		<category><![CDATA[terror]]></category>

		<guid isPermaLink="false">http://ferrauber.wordpress.com/?p=263</guid>
		<description><![CDATA[É um livro de terror que de praxe agrega cenas de suspense.  Uma menina que sofre descriminação de seus amigos devido à forma como se comporta e se veste. Ela guarda um grande rancor pela vida que leva, tanto de sua família pela forma que a tratam quanto das pessoas que a cercam. Conforme os [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=263&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">É um livro de terror que de praxe agrega cenas de suspense.  Uma menina que sofre descriminação de seus amigos devido à forma como se comporta e se veste. Ela guarda um grande rancor pela vida que leva, tanto de sua família pela forma que a tratam quanto das pessoas que a cercam. Conforme os anos passam, ela percebe ter poderes que se fortalecem a cada dia. Poderes como movimentar objetos, controlar energia elétrica, dentre outros. A vingança de Carrie começa a ter inicio quando convidada para uma grande festa do colegial.  Particularmente não me agradou este livro. Não recomendo.</p>
<p style="text-align:justify;">Autor: <strong>Stephen King</strong>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ferrauber.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ferrauber.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ferrauber.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ferrauber.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ferrauber.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ferrauber.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ferrauber.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ferrauber.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ferrauber.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ferrauber.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ferrauber.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ferrauber.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ferrauber.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ferrauber.wordpress.com/263/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=263&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ferrauber.wordpress.com/2011/05/11/carrie-a-estranha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b542831d2cba48fabdeb876077282b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ferrauber</media:title>
		</media:content>
	</item>
		<item>
		<title>O condenado</title>
		<link>http://ferrauber.wordpress.com/2011/05/06/o-condenado/</link>
		<comments>http://ferrauber.wordpress.com/2011/05/06/o-condenado/#comments</comments>
		<pubDate>Fri, 06 May 2011 20:18:32 +0000</pubDate>
		<dc:creator>ferrauber</dc:creator>
				<category><![CDATA[O condenado]]></category>

		<guid isPermaLink="false">http://ferrauber.wordpress.com/?p=238</guid>
		<description><![CDATA[Livro investigativo. Várias aventuras e muita ação. Contexto de fácil leitura e bem abordado. Descreve sobre um assassinato ocorrido em Londres, na qual todas as provas indicam uma única pessoa, já presa, cuja sentença será a forca. Para garantir provas mais detalhadas, a corte contrata um investigador, um antigo capitão que participou da guerra de [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=238&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Livro investigativo. Várias aventuras e muita ação. Contexto de fácil leitura e bem abordado. Descreve sobre um assassinato ocorrido em Londres, na qual todas as provas indicam uma única pessoa, já presa, cuja sentença será a forca. Para garantir provas mais detalhadas, a corte contrata um investigador, um antigo capitão que participou da guerra de Waterloo. Pessoa experiente e determinada. A trama começa a ganhar novos rumos quando as provas apontam para outro culpado. O capitão terá grandes desafios quando descobre o envolvimento de pessoas influentes socialmente, como se isto não bastasse terá de lutar contra o tempo para evitar que uma pessoa inocente seja sacrificada. É um bom livro, uma boa opção.</p>
<p style="text-align:justify;">Autor: <strong>Bernard Cornwell</strong>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ferrauber.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ferrauber.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ferrauber.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ferrauber.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ferrauber.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ferrauber.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ferrauber.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ferrauber.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ferrauber.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ferrauber.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ferrauber.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ferrauber.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ferrauber.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ferrauber.wordpress.com/238/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=238&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ferrauber.wordpress.com/2011/05/06/o-condenado/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b542831d2cba48fabdeb876077282b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ferrauber</media:title>
		</media:content>
	</item>
		<item>
		<title>O caçador de pipas</title>
		<link>http://ferrauber.wordpress.com/2011/05/06/o-cacador-de-pipas/</link>
		<comments>http://ferrauber.wordpress.com/2011/05/06/o-cacador-de-pipas/#comments</comments>
		<pubDate>Fri, 06 May 2011 14:49:57 +0000</pubDate>
		<dc:creator>ferrauber</dc:creator>
				<category><![CDATA[O caçador de pipas]]></category>

		<guid isPermaLink="false">http://ferrauber.wordpress.com/?p=235</guid>
		<description><![CDATA[Grande livro. Ao iniciar a leitura achei ser algo cansativo e sem graça, mas aos poucos percebi que estava enganado, o livro é excelente. A história narrada exprime a realidade do povo Afegão. As diferentes classes sociais e as dificuldades pela qual o povo transpôs, mas que de certa forma perdura até os dias atuais. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=235&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Grande livro. Ao iniciar a leitura achei ser algo cansativo e sem graça, mas aos poucos percebi que estava enganado, o livro é excelente. A história narrada exprime a realidade do povo Afegão. As diferentes classes sociais e as dificuldades pela qual o povo transpôs, mas que de certa forma perdura até os dias atuais. Um livro que aborda a honra, lealdade, coragem, covardia&#8230; dentre inúmeras outras qualidades e defeitos que retratam a personalidade dos personagens vivenciados. Um livro que choca com a “realidade” dos fatos narrados, deixando indignação, mas mesmo diante destes, o tempo para lazer e divertimento. No contexto apresentam-se as tradições e costumes e junto um belo romance. Se ainda não leu, estas perdendo uma excelente leitura. Recomendadíssimo.</p>
<p style="text-align:justify;">Autor: <strong>Hosseini, Khaled</strong>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ferrauber.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ferrauber.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ferrauber.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ferrauber.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ferrauber.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ferrauber.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ferrauber.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ferrauber.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ferrauber.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ferrauber.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ferrauber.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ferrauber.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ferrauber.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ferrauber.wordpress.com/235/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=235&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ferrauber.wordpress.com/2011/05/06/o-cacador-de-pipas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b542831d2cba48fabdeb876077282b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ferrauber</media:title>
		</media:content>
	</item>
		<item>
		<title>Rangers ordem dos arqueiros: Ponte em Chamas &#8211; Volume 2</title>
		<link>http://ferrauber.wordpress.com/2011/05/06/rangers-ordem-dos-arqueiros-ponte-em-chamas-%e2%80%93-vol-2/</link>
		<comments>http://ferrauber.wordpress.com/2011/05/06/rangers-ordem-dos-arqueiros-ponte-em-chamas-%e2%80%93-vol-2/#comments</comments>
		<pubDate>Fri, 06 May 2011 13:19:40 +0000</pubDate>
		<dc:creator>ferrauber</dc:creator>
				<category><![CDATA[Rangers ordem dos arqueiros]]></category>

		<guid isPermaLink="false">http://ferrauber.wordpress.com/?p=224</guid>
		<description><![CDATA[É uma boa leitura. Livro envolvente, cheio de ação instiga a imaginação. Tem um contexto interessante, de fácil leitura. Descreve sobre uma aldeia na qual esta prestes a ser invadida por criaturas comandadas por um mestre denominado senhor da chuva e da noite. A invasão foi planejada de forma sigilosa, mas durante a ocupação do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=224&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">É uma boa leitura. Livro envolvente, cheio de ação instiga a imaginação. Tem um contexto interessante, de fácil leitura. Descreve sobre uma aldeia na qual esta prestes a ser invadida por criaturas comandadas por um mestre denominado senhor da chuva e da noite. A invasão foi planejada de forma sigilosa, mas durante a ocupação do terreno que estava inicialmente sendo feita de forma parcial, acaba sendo descoberta por membros da aldeia. Como o exército liderado pelo mestre possui um número significativo de soldados a aldeia fica ciente do massacre e resolve aderir ao confronto enviando o arqueiro e mais dois membros com intuito de bloquear a passagem por completo do exército. É uma boa opção de leitura, recomendo. Existem vários livros da série na qual pretendo ler, caso vocês se agradem desta leitura, saibam que ainda existem outros.</p>
<p style="text-align:justify;">Autor: <strong>John Flanagan.</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ferrauber.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ferrauber.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ferrauber.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ferrauber.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ferrauber.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ferrauber.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ferrauber.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ferrauber.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ferrauber.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ferrauber.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ferrauber.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ferrauber.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ferrauber.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ferrauber.wordpress.com/224/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=224&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ferrauber.wordpress.com/2011/05/06/rangers-ordem-dos-arqueiros-ponte-em-chamas-%e2%80%93-vol-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b542831d2cba48fabdeb876077282b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ferrauber</media:title>
		</media:content>
	</item>
		<item>
		<title>A estrada da noite</title>
		<link>http://ferrauber.wordpress.com/2011/04/29/a-estrada-da-noite/</link>
		<comments>http://ferrauber.wordpress.com/2011/04/29/a-estrada-da-noite/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 18:46:45 +0000</pubDate>
		<dc:creator>ferrauber</dc:creator>
				<category><![CDATA[A estrada da noite]]></category>
		<category><![CDATA[suspense]]></category>
		<category><![CDATA[terror]]></category>

		<guid isPermaLink="false">http://ferrauber.wordpress.com/?p=219</guid>
		<description><![CDATA[É um livro para quem curte espiritismo. Sinceramente não gostei muito do livro, como tudo que começo costumo finalizar, continuei a leitura até o término. O livro conta a história de um astro do rock que curte garotas góticas, e que não costuma levar os relacionamentos muito a sério pondo ponto final neles a partir [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=219&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">É um livro para quem curte espiritismo. Sinceramente não gostei muito do livro, como tudo que começo costumo finalizar, continuei a leitura até o término. O livro conta a história de um astro do rock que curte garotas góticas, e que não costuma levar os relacionamentos muito a sério pondo ponto final neles a partir do momento que dão mais incômodos que prazeres. Ao abandonar uma destas garotas, que estava numa fase complicada da vida, depressiva, a mesma acaba cometendo suicido. Então parte de sua família, culpam o cara e resolvem fazer “uma macumba, fudu”, sei lá mais o que&#8230; e acabam enviando um paletó do seu falecido padrasto através de um leilão na internet. Com o desenrolar da trama percebe que a única saída é aventurar-se pela “estrada da noite” em busca da solução dos seus problemas. Não pretendo estragar sua leitura&#8230; portanto .. paro por aqui, faça sua opção de leitura. A minha não atendeu as expectativas.</p>
<p style="text-align:justify;">Autor: <strong>Joe Hill.</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ferrauber.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ferrauber.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ferrauber.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ferrauber.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ferrauber.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ferrauber.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ferrauber.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ferrauber.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ferrauber.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ferrauber.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ferrauber.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ferrauber.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ferrauber.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ferrauber.wordpress.com/219/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=219&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ferrauber.wordpress.com/2011/04/29/a-estrada-da-noite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b542831d2cba48fabdeb876077282b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ferrauber</media:title>
		</media:content>
	</item>
		<item>
		<title>Formatar moeda real</title>
		<link>http://ferrauber.wordpress.com/2011/04/15/formatar-moeda-real/</link>
		<comments>http://ferrauber.wordpress.com/2011/04/15/formatar-moeda-real/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 20:01:50 +0000</pubDate>
		<dc:creator>ferrauber</dc:creator>
				<category><![CDATA[Métodos - formatações]]></category>

		<guid isPermaLink="false">http://ferrauber.wordpress.com/?p=215</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=215&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: java;">
// Converte um valor string sem pontuações para moeda real
public String formataMoeda(String valor){
  try {
    BigDecimal bigValor = new BigDecimal(valor).setScale(2, BigDecimal.ROUND_HALF_DOWN);
			
    int pos = -1;
    if((pos = bigValor.toString().indexOf(&quot;.&quot;)) &gt; 0)
      bigValor = new BigDecimal( bigValor.toString().substring(0, pos) + bigValor.toString().substring(pos + 1));
      //bigValor = new BigDecimal(bigValor.toString().replace(&quot;.&quot;, &quot;&quot;));
			
    String vlrConvert = bigValor.toString();
			
    // Valor negativo. Remove o sinal e atribui ao final
    String antes = &quot;&quot;;
    if (vlrConvert.charAt(0) == '-'){
      antes = &quot;-&quot;;
      vlrConvert = vlrConvert.substring(1);
    }
		
    if(vlrConvert.length() &lt; 3)
      vlrConvert = preencheString(vlrConvert, 3, '0', true);
		
    String centavos = vlrConvert.substring(vlrConvert.length() - 2);
    vlrConvert = vlrConvert.substring(0, vlrConvert.length() - 2);
			
    String aux = &quot;&quot;;
    while (vlrConvert.length() &gt; 0){
      if(vlrConvert.length() &gt; 3){
        aux = &quot;.&quot;+vlrConvert.substring(vlrConvert.length() -3) + aux;
	vlrConvert = vlrConvert.substring(0, vlrConvert.length() -3);
      }else{
	aux = vlrConvert + aux;
	vlrConvert = &quot;&quot;;
      }
    }
			
    return antes + aux + &quot;,&quot; + centavos;
  } catch (InvalidNumberException e) {
    return &quot;&quot;;
  }
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ferrauber.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ferrauber.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ferrauber.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ferrauber.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ferrauber.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ferrauber.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ferrauber.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ferrauber.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ferrauber.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ferrauber.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ferrauber.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ferrauber.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ferrauber.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ferrauber.wordpress.com/215/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=215&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ferrauber.wordpress.com/2011/04/15/formatar-moeda-real/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b542831d2cba48fabdeb876077282b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ferrauber</media:title>
		</media:content>
	</item>
		<item>
		<title>Preenchimento de string</title>
		<link>http://ferrauber.wordpress.com/2011/04/15/preenchimento-de-string/</link>
		<comments>http://ferrauber.wordpress.com/2011/04/15/preenchimento-de-string/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 19:12:16 +0000</pubDate>
		<dc:creator>ferrauber</dc:creator>
				<category><![CDATA[Métodos - formatações]]></category>

		<guid isPermaLink="false">http://ferrauber.wordpress.com/?p=209</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=209&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: java;">
// Preencher string com tamanho e caracter desejado, antes ou depois do conteúdo existente.
public String preencheString(String text, int size, char caracter, boolean before) {
  if (text == null)
    text = &quot;&quot;;
  else if(text.length() &gt; size )
    return text.substring(0, size);

  StringBuffer strBufferReduzida = new StringBuffer();

  // Completa com o caracter passado a string até o tamanho indicado
  while (strBufferReduzida.length() + text.length() &lt; size)
    strBufferReduzida.append(caracter);

    if (before)
      return strBufferReduzida.append(text).toString();
    else
      return text.concat(strBufferReduzida.toString());
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ferrauber.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ferrauber.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ferrauber.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ferrauber.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ferrauber.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ferrauber.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ferrauber.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ferrauber.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ferrauber.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ferrauber.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ferrauber.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ferrauber.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ferrauber.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ferrauber.wordpress.com/209/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=209&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ferrauber.wordpress.com/2011/04/15/preenchimento-de-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b542831d2cba48fabdeb876077282b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ferrauber</media:title>
		</media:content>
	</item>
		<item>
		<title>Formatar CPF / CGC</title>
		<link>http://ferrauber.wordpress.com/2011/04/15/formatar-cpf-cgc/</link>
		<comments>http://ferrauber.wordpress.com/2011/04/15/formatar-cpf-cgc/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 18:50:57 +0000</pubDate>
		<dc:creator>ferrauber</dc:creator>
				<category><![CDATA[Métodos - formatações]]></category>

		<guid isPermaLink="false">http://ferrauber.wordpress.com/?p=192</guid>
		<description><![CDATA[JAVA &#8211; Framework TotalCross:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=192&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>JAVA &#8211; Framework TotalCross:</p>
<p><pre class="brush: java;">
edtCgcCpf.setValidChars(Edit.numbersSet);
edtCgcCpf.addKeyListener(new KeyListener(){
     public void actionkeyPressed(KeyEvent arg0) {
     }
     public void keyPressed(KeyEvent arg0) {
          if (edtCgcCpf.getCursorPos()[0] == -1)
	       edtCgcCpf.setCursorPos(edtCgcCpf.getText().length() + 1, edtCgcCpf.getText().length() + 1);
	  }
     public void specialkeyPressed(KeyEvent arg0) {
          if (edtCgcCpf.getCursorPos()[0] == -1)
	       edtCgcCpf.setCursorPos(edtCgcCpf.getText().length(), edtCgcCpf.getText().length());
	  }
});

EventType.ControlEvent.FOCUS_OUT:{

     if(!edtCgcCpf.getText().equals(&quot;&quot;))
          edtCgcCpf.setText(formataCgcCpf(edtCgcCpf.getText()));

}

public String formataCgcCpf(String cgcCpf){
     cgcCpf = formataRemocaoCaracteresEspeciais(cgcCpf);
     int size = cgcCpf.length();

     String aux = &quot;&quot;;
     int ctrl = 0;
     if(size &gt; 11){
          while(cgcCpf.length() &gt; 0){
	       if(ctrl == 0){
	            aux += cgcCpf.substring(0, 2) + &quot;.&quot;;
		    cgcCpf = cgcCpf.substring(2, cgcCpf.length());
		    ctrl = 1;
	       }else{
	            if(cgcCpf.length() &gt; 3){
		         aux += cgcCpf.substring(0, 3) + &quot;.&quot;;
			 cgcCpf = cgcCpf.substring(3, cgcCpf.length());
		    }else{
		 	 aux += cgcCpf;
			 cgcCpf = &quot;&quot;;
		    }
	       }
	  }
     }else{
          while(cgcCpf.length() &gt; 0){
	       if(cgcCpf.length() &gt; 3){
	            aux += cgcCpf.substring(0, 3) + &quot;.&quot;;
		    cgcCpf = cgcCpf.substring(3, cgcCpf.length());
	       }else{
		    aux += cgcCpf;
		    cgcCpf = &quot;&quot;;
	       }
	  }
     }

     if((size &gt; 10) &amp;&amp; (ctrl == 0))
          return aux.substring(0, 11) + &quot;-&quot; + aux.substring(12);
     else if((size &lt; 12) &amp;&amp; (ctrl == 1))
	  return aux.substring(0, 10) + &quot;/&quot; + aux.substring(11);
     else if((size &lt; 13) &amp;&amp; (ctrl == 1))
          return aux.substring(0, 10) + &quot;/&quot; + aux.substring(11, 14) + aux.substring(15);
     else if((size &gt; 12) &amp;&amp; (ctrl == 1)){
          if(size &gt; 14)
	       return aux.substring(0, 10) + &quot;/&quot; + aux.substring(11, 14) + aux.substring(15, 16) + &quot;-&quot; + aux.substring(16, 18);
	  else
	       return aux.substring(0, 10) + &quot;/&quot; + aux.substring(11, 14) + aux.substring(15, 16) + &quot;-&quot; + aux.substring(16);
     }
     else
          return aux;
}

public String formataRemocaoCaracteresEspeciais(String valor){
     if (valor.indexOf(&quot;,&quot;) != -1 || valor.indexOf(&quot;.&quot;) != -1 || valor.indexOf(&quot;-&quot;) != -1 || valor.indexOf(&quot;/&quot;) != -1) {
          StringBuffer valorAux = new StringBuffer();
	  for (int i = 0; i &lt; valor.length(); i++)
	       if ((valor.charAt(i) != ',') &amp;&amp; (valor.charAt(i) != '.') &amp;&amp; (valor.charAt(i) != '-') &amp;&amp; (valor.charAt(i) != '/'))
	            valorAux.append(valor.charAt(i));

	  valor = valorAux.toString();
     }
     return valor;
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ferrauber.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ferrauber.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ferrauber.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ferrauber.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ferrauber.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ferrauber.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ferrauber.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ferrauber.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ferrauber.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ferrauber.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ferrauber.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ferrauber.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ferrauber.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ferrauber.wordpress.com/192/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ferrauber.wordpress.com&amp;blog=1324770&amp;post=192&amp;subd=ferrauber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ferrauber.wordpress.com/2011/04/15/formatar-cpf-cgc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b542831d2cba48fabdeb876077282b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ferrauber</media:title>
		</media:content>
	</item>
	</channel>
</rss>
