<?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: posicion - Recent Topics</title>
		<link>http://www.dudasprogramacion.com/tags/posicion</link>
		<description>Dudas sobre lenguajes y apis de programación</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Feb 2012 03:04:20 +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/posicion/topics" rel="self" type="application/rss+xml" />

		<item>
			<title>saintmauricioxd on "Una duda con arreglos(basico)"</title>
			<link>http://www.dudasprogramacion.com/topic/una-duda-con-arreglosbasico#post-547</link>
			<pubDate>Thu, 22 Jul 2010 23:42:59 +0000</pubDate>
			<dc:creator>saintmauricioxd</dc:creator>
			<guid isPermaLink="false">547@http://www.dudasprogramacion.com/</guid>
			<description><p>Bueno stoy empezando con arreglos y tengo una duda con este codigo:</p>
<pre class="java" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> buscarElem<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> x<span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000066; font-weight: bold;">int</span> res<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000066; font-weight: bold;">int</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000066; font-weight: bold;">boolean</span> enc <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>arreglo.<span style="color: #006633;">length</span> <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">38</span><span style="color: #339933;">;&amp;</span>#<span style="color: #cc66cc;">38</span><span style="color: #339933;">;</span> <span style="color: #339933;">!</span>enc<span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>arreglo<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">==</span>x<span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                enc <span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                res<span style="color: #339933;">=</span>x<span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <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;elemento encontrado:&quot;</span><span style="color: #339933;">+</span> res<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                  enc <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                  <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;elemento no encontrado.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                i<span style="color: #339933;">++;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #009900;">&#125;</span></div></li></ol></pre>
<p>esto busca un elemento en el arreglo y lo devuelve, funciona correctamente pero lo q no logro solucionar esq digamos cuando encuentra un elemento en la posicion 6 me imprime para los indices del 0-4 "elemento no encontrado." y el 5 devuelve el numero, eso quiero q me notifique pero sin que repita tantas veces los indices "elemento no encontrado" al recorrer la lista, alguna sugerencia es bienvenida muchas gracias de antemano.
</p></description>
		</item>
		<item>
			<title>Edmond on "¿Obtener las posición del cursor en un JTextField en Java?"</title>
			<link>http://www.dudasprogramacion.com/topic/%c2%bfobtener-las-posicion-del-cursor-en-un-jtextfield-en-java#post-314</link>
			<pubDate>Tue, 09 Feb 2010 17:47:14 +0000</pubDate>
			<dc:creator>Edmond</dc:creator>
			<guid isPermaLink="false">314@http://www.dudasprogramacion.com/</guid>
			<description><p>Ejemplo:<br />
Suponiendo el cursor sea &#34;&#124;&#34;<br />
En el JTexlField (en ejecución) : &#34;No sé que&#124; todo&#34;<br />
Quisiera sabes que desde un JButton se agrege cualquier text en esa posición, suponiendo que el JButton agregue &#34;OOO&#34;<br />
El JTextField quedaría: &#34;No sé queOOO todo&#34;<br />
Espero su ayuda...<br />
saludos
</p></description>
		</item>
		<item>
			<title>Edmond on "¿Obtener las posición del cursor en un JTextField en Java?"</title>
			<link>http://www.dudasprogramacion.com/topic/%c2%bfobtener-las-posicion-del-cursor-en-un-jtextfield-en-java-1#post-315</link>
			<pubDate>Tue, 09 Feb 2010 17:48:53 +0000</pubDate>
			<dc:creator>Edmond</dc:creator>
			<guid isPermaLink="false">315@http://www.dudasprogramacion.com/</guid>
			<description><p>Ejemplo:<br />
Suponiendo el cursor sea &#34;&#124;&#34;<br />
En el JTexlField (en ejecución) : &#34;No sé que&#124; todo&#34;<br />
Quisiera sabes que desde un JButton se agrege cualquier text en esa posición, suponiendo que el JButton agregue &#34;OOO&#34;<br />
El JTextField quedaría: &#34;No sé queOOO todo&#34;<br />
Espero su ayuda...<br />
saludos
</p></description>
		</item>

	</channel>
</rss>

