<?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>Mon, 21 May 2012 23:21:56 +0000</pubDate>
		<generator>bbpress 1.1</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><![CDATA[<p>Buenas,</p>
<p>Como habrás visto en algún otro post, siempre que la duda es del tipo "Tengo que hacer XXX programa, que alguien lo haga para copiar y pegarlo" 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.</p>
<p>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.</p>
<p>Gracias a vosotros por mantener el foro y administrarlo, a mi me viene bien para repasar algunas cosas y aprender muchas nuevas también.</p>
<p>Un saludo
</p>]]></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><![CDATA[<p>@Torres,</p>
<p>Estamos viendo que hay mucha gente que quiere que le hagamos las prácticas. Cosa que no buscamos.</p>
<p>Nuestra idea es más la de servir de ayuda a dudas sobre código trabajado.</p>
<p>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.</p>
<p>Con todo y con eso agradecerte tu activa participación en el foro.
</p>]]></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><![CDATA[<p>Buenas!</p>
<p>Para el número de cifras, basicamente todo número de i cifras es menor que 10^i (diez elevado a i).</p>
<pre class="java" style="font-family:monospace;">&nbsp;
                Scanner scan <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Scanner<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">in</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Número: &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> num <span style="color: #339933;">=</span> scan.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">double</span> cifras<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span>, numero <span style="color: #339933;">=</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adouble+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Double</span></a>.<span style="color: #006633;">parseDouble</span><span style="color: #009900;">&#40;</span>num<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">do</span><span style="color: #009900;">&#123;</span>
			cifras<span style="color: #339933;">++;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span> numero <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amath+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Math</span></a>.<span style="color: #006633;">pow</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span>,cifras<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>cifras<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;</pre>]]></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><![CDATA[<p>Buenas!</p>
<p>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...</p>
<p>Bueno una pequeña ayuda:</p>
<p>- Para los números "cuates".</p>
<p>Supongo que querrás leer los números por consola:<br />
<a href="http://lineadecodigo.com/java/lectura-de-caracteres-por-consola-en-java/" rel="nofollow">http://lineadecodigo.com/java/lectura-de-caracteres-por-consola-en-java/</a></p>
<p>Hay que comprobar si el resultado de la suma esta formado exclusivamente por 0´s y 1´s, es decir que es binario.</p>
<p>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.<br />
Te pondré un ejemplo usando la clase Scanner para leer de la consola.</p>
<pre class="java" style="font-family:monospace;">&nbsp;
    Scanner scan <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Scanner<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">in</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Introduce un número: &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> binario <span style="color: #339933;">=</span> scan.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">try</span>
    <span style="color: #009900;">&#123;</span>
       <span style="color: #000066; font-weight: bold;">int</span> decimal <span style="color: #339933;">=</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ainteger+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Integer</span></a>.<span style="color: #006633;">parseInt</span><span style="color: #009900;">&#40;</span>binary, <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #666666; font-style: italic;">//le indicamos que lo convierta a un</span>
       <span style="color: #666666; font-style: italic;">//número binario, si no lo es, salta la excepcion,</span>
       <span style="color: #666666; font-style: italic;">//si lo es nos devuelve el numero en decimal</span>
       <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Es binario&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000000; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Anumberformatexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">NumberFormatException</span></a> nfe<span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;No es binario&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;</pre>]]></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><![CDATA[<p>Hola, para crear un código que permita calular las cifras de un número entero, gracias por la colaboración
</p>]]></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><![CDATA[<p>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<br />
Gracias!!
</p>]]></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><![CDATA[<p>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 </p>
<p>les agradezco de antemano su ayuda</p>
<p>Cordialmente</p>
<p>cesqui
</p>]]></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><![CDATA[<p>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 </p>
<p>les agradezco de antemano su ayuda</p>
<p>Cordialmente</p>
<p>cesqui
</p>]]></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><![CDATA[<p>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,...
</p>]]></description>
		</item>

	</channel>
</rss>

