<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
>
	<channel>
		<title>Dudas de Programacion &#187; Tag: básico - Recent Posts</title>
		<link>http://www.dudasprogramacion.com/tags/basico</link>
		<description>Dudas sobre lenguajes y apis de programación</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Sep 2010 08:26:38 +0000</pubDate>
		<generator>bbpress 1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.dudasprogramacion.com/search.php</link>
		</textInput>
		<atom:link href="http://www.dudasprogramacion.com/rss/tags/basico" rel="self" type="application/rss+xml" />

		<item>
			<title>Torres on "Bienvenidos al foro Java Básico"</title>
			<link>http://www.dudasprogramacion.com/topic/bienvenidos-al-foro-java-basico#post-597</link>
			<pubDate>Mon, 23 Aug 2010 12:52:38 +0000</pubDate>
			<dc:creator>Torres</dc:creator>
			<guid isPermaLink="false">597@http://www.dudasprogramacion.com/</guid>
			<description>&#60;p&#62;Buenas,&#60;/p&#62;
&#60;p&#62;Como habrás visto en algún otro post, siempre que la duda es del tipo &#34;Tengo que hacer XXX programa, que alguien lo haga para copiar y pegarlo&#34; le he comentado al susodicho que esa no es la manera, aunque después suelo intentar echar una mano, con algún tutorial o una pequeña ayuda en forma de código.&#60;/p&#62;
&#60;p&#62;De hecho para muchas respuestas he hecho una mínima búsqueda por internet y he acabado encontrando el código completo en algún sitio, como siempre solo hay que saber buscar.&#60;/p&#62;
&#60;p&#62;Gracias a vosotros por mantener el foro y administrarlo, a mi me viene bien para repasar algunas cosas y aprender muchas nuevas también.&#60;/p&#62;
&#60;p&#62;Un saludo
&#60;/p&#62;</description>
		</item>
		<item>
			<title>admin on "Bienvenidos al foro Java Básico"</title>
			<link>http://www.dudasprogramacion.com/topic/bienvenidos-al-foro-java-basico#post-594</link>
			<pubDate>Mon, 23 Aug 2010 10:51:34 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">594@http://www.dudasprogramacion.com/</guid>
			<description>&#60;p&#62;@Torres,&#60;/p&#62;
&#60;p&#62;Estamos viendo que hay mucha gente que quiere que le hagamos las prácticas. Cosa que no buscamos.&#60;/p&#62;
&#60;p&#62;Nuestra idea es más la de servir de ayuda a dudas sobre código trabajado.&#60;/p&#62;
&#60;p&#62;Si bien, al final la idea es poder ayudar a la gente. Me parece perfecta tu filosofía de busca primero, documentaté, prueba y si no consigues avanzar te echamos una mano.&#60;/p&#62;
&#60;p&#62;Con todo y con eso agradecerte tu activa participación en el foro.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Torres on "Bienvenidos al foro Java Básico"</title>
			<link>http://www.dudasprogramacion.com/topic/bienvenidos-al-foro-java-basico#post-590</link>
			<pubDate>Fri, 20 Aug 2010 10:49:06 +0000</pubDate>
			<dc:creator>Torres</dc:creator>
			<guid isPermaLink="false">590@http://www.dudasprogramacion.com/</guid>
			<description>&#60;p&#62;Buenas!&#60;/p&#62;
&#60;p&#62;Para el número de cifras, basicamente todo número de i cifras es menor que 10^i (diez elevado a i).&#60;/p&#62;
&#60;pre class=&#34;java&#34; style=&#34;font-family:monospace;&#34;&#62;&#38;nbsp;
                Scanner scan &#60;span style=&#34;color: #339933;&#34;&#62;=&#60;/span&#62; &#60;span style=&#34;color: #000000; font-weight: bold;&#34;&#62;new&#60;/span&#62; Scanner&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;a href=&#34;http://www.google.com/search?hl=en&#38;amp;q=allinurl%3Asystem+java.sun.com&#38;amp;btnI=I%27m%20Feeling%20Lucky&#34;&#62;&#60;span style=&#34;color: #003399;&#34;&#62;System&#60;/span&#62;&#60;/a&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;in&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #339933;&#34;&#62;;&#60;/span&#62;
		&#60;a href=&#34;http://www.google.com/search?hl=en&#38;amp;q=allinurl%3Asystem+java.sun.com&#38;amp;btnI=I%27m%20Feeling%20Lucky&#34;&#62;&#60;span style=&#34;color: #003399;&#34;&#62;System&#60;/span&#62;&#60;/a&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;out&#60;/span&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;println&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color: #0000ff;&#34;&#62;&#38;quot;Número: &#38;quot;&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #339933;&#34;&#62;;&#60;/span&#62;
		&#60;a href=&#34;http://www.google.com/search?hl=en&#38;amp;q=allinurl%3Astring+java.sun.com&#38;amp;btnI=I%27m%20Feeling%20Lucky&#34;&#62;&#60;span style=&#34;color: #003399;&#34;&#62;String&#60;/span&#62;&#60;/a&#62; num &#60;span style=&#34;color: #339933;&#34;&#62;=&#60;/span&#62; scan.&#60;span style=&#34;color: #006633;&#34;&#62;next&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #339933;&#34;&#62;;&#60;/span&#62;
&#38;nbsp;
		&#60;span style=&#34;color: #000066; font-weight: bold;&#34;&#62;double&#60;/span&#62; cifras&#60;span style=&#34;color: #339933;&#34;&#62;=&#60;/span&#62;&#60;span style=&#34;color: #cc66cc;&#34;&#62;0&#60;/span&#62;, numero &#60;span style=&#34;color: #339933;&#34;&#62;=&#60;/span&#62; &#60;a href=&#34;http://www.google.com/search?hl=en&#38;amp;q=allinurl%3Adouble+java.sun.com&#38;amp;btnI=I%27m%20Feeling%20Lucky&#34;&#62;&#60;span style=&#34;color: #003399;&#34;&#62;Double&#60;/span&#62;&#60;/a&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;parseDouble&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#40;&#60;/span&#62;num&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #339933;&#34;&#62;;&#60;/span&#62;
		&#60;span style=&#34;color: #000000; font-weight: bold;&#34;&#62;do&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#123;&#60;/span&#62;
			cifras&#60;span style=&#34;color: #339933;&#34;&#62;++;&#60;/span&#62;
		&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#125;&#60;/span&#62;&#60;span style=&#34;color: #000000; font-weight: bold;&#34;&#62;while&#60;/span&#62; &#60;span style=&#34;color: #009900;&#34;&#62;&#38;#40;&#60;/span&#62; numero &#60;span style=&#34;color: #339933;&#34;&#62;&#38;gt;&#60;/span&#62; &#60;a href=&#34;http://www.google.com/search?hl=en&#38;amp;q=allinurl%3Amath+java.sun.com&#38;amp;btnI=I%27m%20Feeling%20Lucky&#34;&#62;&#60;span style=&#34;color: #003399;&#34;&#62;Math&#60;/span&#62;&#60;/a&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;pow&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color: #cc66cc;&#34;&#62;10&#60;/span&#62;,cifras&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #339933;&#34;&#62;;&#60;/span&#62;
&#38;nbsp;
		&#60;a href=&#34;http://www.google.com/search?hl=en&#38;amp;q=allinurl%3Asystem+java.sun.com&#38;amp;btnI=I%27m%20Feeling%20Lucky&#34;&#62;&#60;span style=&#34;color: #003399;&#34;&#62;System&#60;/span&#62;&#60;/a&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;out&#60;/span&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;println&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#40;&#60;/span&#62;cifras&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #339933;&#34;&#62;;&#60;/span&#62;
&#38;nbsp;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Torres on "Bienvenidos al foro Java Básico"</title>
			<link>http://www.dudasprogramacion.com/topic/bienvenidos-al-foro-java-basico#post-589</link>
			<pubDate>Fri, 20 Aug 2010 10:35:04 +0000</pubDate>
			<dc:creator>Torres</dc:creator>
			<guid isPermaLink="false">589@http://www.dudasprogramacion.com/</guid>
			<description>&#60;p&#62;Buenas!&#60;/p&#62;
&#60;p&#62;Me repetiré mucho si vuelvo a decir que es un foro de dudas no un foro de HAZME LAS TAREAS DE PROGRAMACIÓN? igual si...&#60;/p&#62;
&#60;p&#62;Bueno una pequeña ayuda:&#60;/p&#62;
&#60;p&#62;- Para los números &#34;cuates&#34;.&#60;/p&#62;
&#60;p&#62;Supongo que querrás leer los números por consola:&#60;br /&#62;
&#60;a href=&#34;http://lineadecodigo.com/java/lectura-de-caracteres-por-consola-en-java/&#34; rel=&#34;nofollow&#34;&#62;http://lineadecodigo.com/java/lectura-de-caracteres-por-consola-en-java/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Hay que comprobar si el resultado de la suma esta formado exclusivamente por 0´s y 1´s, es decir que es binario.&#60;/p&#62;
&#60;p&#62;Puedes comprobar carácter a carácter o intentar convertir el número a binario, te pongo un ejemplo de la segunda opción, pasarlo a binario.&#60;br /&#62;
Te pondré un ejemplo usando la clase Scanner para leer de la consola.&#60;/p&#62;
&#60;pre class=&#34;java&#34; style=&#34;font-family:monospace;&#34;&#62;&#38;nbsp;
    Scanner scan &#60;span style=&#34;color: #339933;&#34;&#62;=&#60;/span&#62; &#60;span style=&#34;color: #000000; font-weight: bold;&#34;&#62;new&#60;/span&#62; Scanner&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;a href=&#34;http://www.google.com/search?hl=en&#38;amp;q=allinurl%3Asystem+java.sun.com&#38;amp;btnI=I%27m%20Feeling%20Lucky&#34;&#62;&#60;span style=&#34;color: #003399;&#34;&#62;System&#60;/span&#62;&#60;/a&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;in&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #339933;&#34;&#62;;&#60;/span&#62;
    &#60;a href=&#34;http://www.google.com/search?hl=en&#38;amp;q=allinurl%3Asystem+java.sun.com&#38;amp;btnI=I%27m%20Feeling%20Lucky&#34;&#62;&#60;span style=&#34;color: #003399;&#34;&#62;System&#60;/span&#62;&#60;/a&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;out&#60;/span&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;println&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color: #0000ff;&#34;&#62;&#38;quot;Introduce un número: &#38;quot;&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #339933;&#34;&#62;;&#60;/span&#62;
    &#60;a href=&#34;http://www.google.com/search?hl=en&#38;amp;q=allinurl%3Astring+java.sun.com&#38;amp;btnI=I%27m%20Feeling%20Lucky&#34;&#62;&#60;span style=&#34;color: #003399;&#34;&#62;String&#60;/span&#62;&#60;/a&#62; binario &#60;span style=&#34;color: #339933;&#34;&#62;=&#60;/span&#62; scan.&#60;span style=&#34;color: #006633;&#34;&#62;next&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #339933;&#34;&#62;;&#60;/span&#62;
&#38;nbsp;
    &#60;span style=&#34;color: #000000; font-weight: bold;&#34;&#62;try&#60;/span&#62;
    &#60;span style=&#34;color: #009900;&#34;&#62;&#38;#123;&#60;/span&#62;
       &#60;span style=&#34;color: #000066; font-weight: bold;&#34;&#62;int&#60;/span&#62; decimal &#60;span style=&#34;color: #339933;&#34;&#62;=&#60;/span&#62; &#60;a href=&#34;http://www.google.com/search?hl=en&#38;amp;q=allinurl%3Ainteger+java.sun.com&#38;amp;btnI=I%27m%20Feeling%20Lucky&#34;&#62;&#60;span style=&#34;color: #003399;&#34;&#62;Integer&#60;/span&#62;&#60;/a&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;parseInt&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#40;&#60;/span&#62;binary, &#60;span style=&#34;color: #cc66cc;&#34;&#62;2&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #339933;&#34;&#62;;&#60;/span&#62;
       &#60;span style=&#34;color: #666666; font-style: italic;&#34;&#62;//le indicamos que lo convierta a un&#60;/span&#62;
       &#60;span style=&#34;color: #666666; font-style: italic;&#34;&#62;//número binario, si no lo es, salta la excepcion,&#60;/span&#62;
       &#60;span style=&#34;color: #666666; font-style: italic;&#34;&#62;//si lo es nos devuelve el numero en decimal&#60;/span&#62;
       &#60;a href=&#34;http://www.google.com/search?hl=en&#38;amp;q=allinurl%3Asystem+java.sun.com&#38;amp;btnI=I%27m%20Feeling%20Lucky&#34;&#62;&#60;span style=&#34;color: #003399;&#34;&#62;System&#60;/span&#62;&#60;/a&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;out&#60;/span&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;println&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color: #0000ff;&#34;&#62;&#38;quot;Es binario&#38;quot;&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #339933;&#34;&#62;;&#60;/span&#62;
    &#60;span style=&#34;color: #009900;&#34;&#62;&#38;#125;&#60;/span&#62;
    &#60;span style=&#34;color: #000000; font-weight: bold;&#34;&#62;catch&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;a href=&#34;http://www.google.com/search?hl=en&#38;amp;q=allinurl%3Anumberformatexception+java.sun.com&#38;amp;btnI=I%27m%20Feeling%20Lucky&#34;&#62;&#60;span style=&#34;color: #003399;&#34;&#62;NumberFormatException&#60;/span&#62;&#60;/a&#62; nfe&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#41;&#60;/span&#62;
    &#60;span style=&#34;color: #009900;&#34;&#62;&#38;#123;&#60;/span&#62;
      &#60;a href=&#34;http://www.google.com/search?hl=en&#38;amp;q=allinurl%3Asystem+java.sun.com&#38;amp;btnI=I%27m%20Feeling%20Lucky&#34;&#62;&#60;span style=&#34;color: #003399;&#34;&#62;System&#60;/span&#62;&#60;/a&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;out&#60;/span&#62;.&#60;span style=&#34;color: #006633;&#34;&#62;println&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color: #0000ff;&#34;&#62;&#38;quot;No es binario&#38;quot;&#60;/span&#62;&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #339933;&#34;&#62;;&#60;/span&#62;
    &#60;span style=&#34;color: #009900;&#34;&#62;&#38;#125;&#60;/span&#62;
&#60;span style=&#34;color: #009900;&#34;&#62;&#38;#125;&#60;/span&#62;
&#38;nbsp;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>diarmo2 on "Bienvenidos al foro Java Básico"</title>
			<link>http://www.dudasprogramacion.com/topic/bienvenidos-al-foro-java-basico#post-588</link>
			<pubDate>Fri, 20 Aug 2010 02:56:23 +0000</pubDate>
			<dc:creator>diarmo2</dc:creator>
			<guid isPermaLink="false">588@http://www.dudasprogramacion.com/</guid>
			<description>&#60;p&#62;Hola, para crear un código que permita calular las cifras de un número entero, gracias por la colaboración
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ycordero on "Bienvenidos al foro Java Básico"</title>
			<link>http://www.dudasprogramacion.com/topic/bienvenidos-al-foro-java-basico#post-242</link>
			<pubDate>Tue, 20 Oct 2009 21:07:57 +0000</pubDate>
			<dc:creator>ycordero</dc:creator>
			<guid isPermaLink="false">242@http://www.dudasprogramacion.com/</guid>
			<description>&#60;p&#62;Buenas, para crear un código que me diga si dos números son o no cuates. Explicación: dos enteros positivos m y n se llaman números cuates si m+n tiene solamentecifras 0 ó 1 de su expresión decimal. Ejemplo 9423+678=10101&#60;br /&#62;
Gracias!!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cesqui on "Inicio"</title>
			<link>http://www.dudasprogramacion.com/topic/inicio-1#post-120</link>
			<pubDate>Sun, 24 May 2009 04:31:27 +0000</pubDate>
			<dc:creator>cesqui</dc:creator>
			<guid isPermaLink="false">120@http://www.dudasprogramacion.com/</guid>
			<description>&#60;p&#62;Me estoy iniciando en la programación con java y quiero conocer los conceptos generales de esta aplicación para poder desarrollar unos buenos programas, como cual es el mejor programas para desarrollar en java, estructuras, secuencias, instrucciones y  otros conceptos para este lenguaje &#60;/p&#62;
&#60;p&#62;les agradezco de antemano su ayuda&#60;/p&#62;
&#60;p&#62;Cordialmente&#60;/p&#62;
&#60;p&#62;cesqui
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cesqui on "Inicio"</title>
			<link>http://www.dudasprogramacion.com/topic/inicio#post-119</link>
			<pubDate>Sun, 24 May 2009 04:29:57 +0000</pubDate>
			<dc:creator>cesqui</dc:creator>
			<guid isPermaLink="false">119@http://www.dudasprogramacion.com/</guid>
			<description>&#60;p&#62;Me estoy iniciando en la programación con java y quiero conocer los conceptos generales de esta aplicación para poder desarrollar unos buenos programas, como cual es el mejor programas para desarrollar en java, estructuras, secuencias, instrucciones y  otros conceptos para este lenguaje &#60;/p&#62;
&#60;p&#62;les agradezco de antemano su ayuda&#60;/p&#62;
&#60;p&#62;Cordialmente&#60;/p&#62;
&#60;p&#62;cesqui
&#60;/p&#62;</description>
		</item>
		<item>
			<title>admin on "Bienvenidos al foro Java Básico"</title>
			<link>http://www.dudasprogramacion.com/topic/bienvenidos-al-foro-java-basico#post-10</link>
			<pubDate>Wed, 04 Mar 2009 00:07:21 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">10@http://www.dudasprogramacion.com/</guid>
			<description>&#60;p&#62;Daros la bienvenida al foro sobre dudas básicas de programación en Java. Uso de estructuras de control, estructuras de selección, variables, creación de métodos,...
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
