<?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; Recent Posts</title>
		<link>http://www.dudasprogramacion.com/</link>
		<description>Dudas sobre lenguajes y apis de programación</description>
		<language>en-US</language>
		<pubDate>Sat, 19 May 2012 02:51:48 +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/" rel="self" type="application/rss+xml" />

		<item>
			<title>eldavan on "Bienvenidos al foro jQuery"</title>
			<link>http://www.dudasprogramacion.com/topic/bienvenidos-al-foro-jquery#post-1201</link>
			<pubDate>Wed, 16 May 2012 17:03:29 +0000</pubDate>
			<dc:creator>eldavan</dc:creator>
			<guid isPermaLink="false">1201@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>append JQuery volver a enlazar elementos</p>
<p>Buenas tardes.<br />
tengo una tabla con tres filas originales y  al hacerle click  en una de ellas ( id="prueba") se agregar una nueva fila.<br />
Hasta ahora todo ok, pero lo que quiero es que al acer click en las filas creadas también pueda ejecutar algún evento, por ejemplo si hago clik en la fila &#60;span class="calse"&#62;copias1&#60;/span&#62; me sale una alerta con su html pero si quiero hacer click en la fila que se creo con JQuery  ya no me funciona.<br />
Por que????[b] AYUDA POR FAVOR[/b]</p>
<pre class="lenguaje" style="font-family:monospace;">&nbsp;
&amp;#60;table id=&quot;tabla&quot; &amp;#62;
    &amp;#60;tr id=&quot;prueba&quot;&amp;#62;&amp;#60;td&amp;#62;&amp;#60;span&amp;#62;original&amp;#60;/span&amp;#62; &amp;#60;/td&amp;#62;&amp;#60;/tr&amp;#62;
    &amp;#60;tr&amp;#62;&amp;#60;td&amp;#62;&amp;#60;span class=&quot;calse&quot;&amp;#62;copias1&amp;#60;/span&amp;#62; &amp;#60;/td&amp;#62;&amp;#60;/tr&amp;#62;
     &amp;#60;tr&amp;#62;&amp;#60;td&amp;#62;&amp;#60;span class=&quot;calse&quot;&amp;#62;copias2&amp;#60;/span&amp;#62; &amp;#60;/td&amp;#62;&amp;#60;/tr&amp;#62;
&amp;#60;/table&amp;#62;
&nbsp;
&amp;#60;script type=&quot;text/javascript&quot; src=&quot;recursos/js_css/jQuery.js&quot;&amp;#62;&amp;#60;/script&amp;#62;
&amp;#60;script type=&quot;text/javascript&quot;&amp;#62;
   $(document).ready(function() {
   var u=2;
$(&quot;#prueba&quot;).click(function(){
    u+=1;
   $(&quot;#tabla&quot;).append('&amp;#60;tr&amp;#62;&amp;#60;td&amp;#62;&amp;#60;span class=&quot;calse&quot;&amp;#62;copias'+u+'&amp;#60;/span&amp;#62; &amp;#60;/td&amp;#62;&amp;#60;/tr&amp;#62;');
});
&nbsp;
  $(&quot;span[class='calse']&quot;).click(function () {
       alert($(this).html());
     });
&nbsp;
  } );
&amp;#60;/script &amp;#62;
&nbsp;</pre>]]></description>
		</item>
		<item>
			<title>Torres on "Q ue tal compañeros"</title>
			<link>http://www.dudasprogramacion.com/topic/q-ue-tal-companeros#post-1200</link>
			<pubDate>Wed, 16 May 2012 09:34:02 +0000</pubDate>
			<dc:creator>Torres</dc:creator>
			<guid isPermaLink="false">1200@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Supongo que es sobre el tema de ordenación y sobre eso, un gran link es este:</p>
<p><a href="http://www.sorting-algorithms.com/" rel="nofollow">http://www.sorting-algorithms.com/</a></p>
<p>Espero que te sirva
</p>]]></description>
		</item>
		<item>
			<title>adrian on "Q ue tal compañeros"</title>
			<link>http://www.dudasprogramacion.com/topic/q-ue-tal-companeros#post-1199</link>
			<pubDate>Tue, 15 May 2012 19:02:40 +0000</pubDate>
			<dc:creator>adrian</dc:creator>
			<guid isPermaLink="false">1199@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Mi preguna es la siguiente estoy en la materia de estrucura de datos pero he investigado y no he encontrado informacion exacta. recurro a ustedes parasaber si me pueden ayudar miren nada mas me faltan estos dos puntos:<br />
Es ordenamiento externo<br />
*Intercalación de archivos<br />
*Ordenación por mezcla directa<br />
*Ordenación por el método de mezcla equilibrada(natural)</p>
<p>y me falta las ventajas, desventajas y el algoritmo en pseudocodigo de los tres metodos</p>
<p>o bien me pueden pasar un link donde pueda obtener esa informacion
</p>]]></description>
		</item>
		<item>
			<title>narcisolive on "Amigos no se por que el registro se guarde erroneo"</title>
			<link>http://www.dudasprogramacion.com/topic/amigos-no-se-por-que-el-registro-se-guarde-erroneo#post-1197</link>
			<pubDate>Sat, 12 May 2012 03:29:02 +0000</pubDate>
			<dc:creator>narcisolive</dc:creator>
			<guid isPermaLink="false">1197@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<pre class="cpp" style="font-family:monospace;">include <span style="color: #000040;">&amp;</span><span style="color: #339900;">#60;iostream&amp;#62;</span>
<span style="color: #0000ff;">using</span> std<span style="color: #008080;">::</span><span style="color: #0000dd;">cout</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">using</span> std<span style="color: #008080;">::</span><span style="color: #0000dd;">cin</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">using</span> std<span style="color: #008080;">::</span><span style="color: #007788;">ios</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">using</span> std<span style="color: #008080;">::</span><span style="color: #0000dd;">cerr</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">using</span> std<span style="color: #008080;">::</span><span style="color: #007788;">endl</span><span style="color: #008080;">;</span>
&nbsp;
<span style="color: #339900;">#include &amp;#60;fstream&amp;#62;</span>
&nbsp;
<span style="color: #0000ff;">using</span> std<span style="color: #008080;">::</span><span style="color: #007788;">ofstream</span><span style="color: #008080;">;</span>
<span style="color: #339900;">#include&amp;#60;cstdlib&amp;#62; //prototipo de exit</span>
<span style="color: #0000ff;">int</span> main<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #666666;">// el contructor de ofstream abre el archivo</span>
    ofstream  miAgendaSalida<span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;clientesx.dat&quot;</span> ,ios<span style="color: #008080;">::</span><span style="color: #007788;">out</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
    <span style="color: #666666;">// salir del programa si no se puede salir del archivo</span>
    <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #000040;">!</span> miAgendaSalida<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#123;</span> <span style="color: #666666;">//operador ! de sobre carga</span>
   <span style="color: #0000dd;">cerr</span><span style="color: #000040;">&amp;</span><span style="color: #339900;">#60;&amp;#60; &quot;no se pudo abrir el archivo&quot;&amp;#60;&amp;#60;endl;</span>
   <span style="color: #0000dd;">exit</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
<span style="color: #008000;">&#125;</span><span style="color: #666666;">// fin de la intruccion if</span>
&nbsp;
 <span style="color: #0000dd;">cout</span> <span style="color: #000040;">&amp;</span><span style="color: #339900;">#60;&amp;#60; &quot;Escriba el numero de idNum, nombre, Apellido, numTelfCasa, numMovil&quot;</span>
    <span style="color: #000040;">&amp;</span><span style="color: #339900;">#60;&amp;#60; &quot;Escriba fin de archivo para terminar la entrada&quot; &amp;#60;&amp;#60; endl;</span>
 <span style="color: #0000ff;">int</span> idNum<span style="color: #008080;">;</span>
     <span style="color: #0000ff;">char</span> nombre<span style="color: #008000;">&#91;</span><span style="color: #0000dd;">15</span><span style="color: #008000;">&#93;</span><span style="color: #008080;">;</span>
     <span style="color: #0000ff;">char</span> apellido<span style="color: #008000;">&#91;</span><span style="color: #0000dd;">20</span><span style="color: #008000;">&#93;</span><span style="color: #008080;">;</span>
     <span style="color: #0000ff;">int</span> numTelfCasa<span style="color: #008080;">;</span>
     <span style="color: #0000ff;">int</span> numTelfMovil<span style="color: #008080;">;</span>
&nbsp;
<span style="color: #666666;">//leer cuenta, nombre y saldo de cin en el archivo</span>
&nbsp;
<span style="color: #0000ff;">while</span> <span style="color: #008000;">&#40;</span> <span style="color: #0000dd;">cin</span> <span style="color: #000040;">&amp;</span><span style="color: #339900;">#62;&amp;#62; idNum &amp;#62;&amp;#62; nombre &amp;#62;&amp;#62; apellido &amp;#62;&amp;#62; numTelfCasa &amp;#62;&amp;#62; numTelfMovil){</span>
                    miAgendaSalida <span style="color: #000040;">&amp;</span><span style="color: #339900;">#60;&amp;#60; idNum &amp;#60;&amp;#60; 'int' &amp;#60;&amp;#60; nombre &amp;#60;&amp;#60; 'char'&amp;#60;&amp;#60; apellido &amp;#60;&amp;#60;'char' &amp;#60;&amp;#60; numTelfCasa &amp;#60;&amp;#60; 'int'&amp;#60;&amp;#60; numTelfMovil &amp;#60;&amp;#60;'int'</span>
                    <span style="color: #000040;">&amp;</span><span style="color: #339900;">#60;&amp;#60;endl;</span>
          <span style="color: #0000dd;">cout</span> <span style="color: #000040;">&amp;</span><span style="color: #339900;">#60;&amp;#60; &quot;fin&quot;;</span>
          <span style="color: #008000;">&#125;</span>                    <span style="color: #666666;">// fin de instruccion while</span>
       <span style="color: #666666;">// fin de la instruccion while</span>
       <span style="color: #0000ff;">return</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
       <span style="color: #008000;">&#125;</span>
       <span style="color: #666666;">//el destructorofstream cierra el archivo</span></pre>]]></description>
		</item>
		<item>
			<title>Cata on "como crear un formulario en java con myql"</title>
			<link>http://www.dudasprogramacion.com/topic/como-crear-un-formulario-en-java-con-myql#post-1191</link>
			<pubDate>Fri, 04 May 2012 18:24:28 +0000</pubDate>
			<dc:creator>Cata</dc:creator>
			<guid isPermaLink="false">1191@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Espero te sirva :)<br />
<a href="http://apdaza-poo.blogspot.com/2007/09/conectar-java-con-mysql.html" rel="nofollow">http://apdaza-poo.blogspot.com/2007/09/conectar-java-con-mysql.html</a>
</p>]]></description>
		</item>
		<item>
			<title>jeremias10 on "Validar email en formulario php :/"</title>
			<link>http://www.dudasprogramacion.com/topic/validar-email-en-formulario-php#post-1190</link>
			<pubDate>Thu, 03 May 2012 16:12:28 +0000</pubDate>
			<dc:creator>jeremias10</dc:creator>
			<guid isPermaLink="false">1190@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>puedes usar jquery para validar el correo, solo jala el archivo .js a tu pagina donde tienes el formulario y listo el hace el resto
</p>]]></description>
		</item>
		<item>
			<title>jeremias10 on "como crear un formulario en java con myql"</title>
			<link>http://www.dudasprogramacion.com/topic/como-crear-un-formulario-en-java-con-myql#post-1189</link>
			<pubDate>Thu, 03 May 2012 15:56:19 +0000</pubDate>
			<dc:creator>jeremias10</dc:creator>
			<guid isPermaLink="false">1189@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>hola saludos alguien sabe como crear un formulario en java conectado a mysql, que me pueda insertar, eliminar, actualizar datos desde un pequeño formulario en java
</p>]]></description>
		</item>
		<item>
			<title>Torres on "SelectOneListBox en jsf"</title>
			<link>http://www.dudasprogramacion.com/topic/selectonelistbox-en-jsf-1#post-1188</link>
			<pubDate>Thu, 03 May 2012 08:19:55 +0000</pubDate>
			<dc:creator>Torres</dc:creator>
			<guid isPermaLink="false">1188@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Buenas!</p>
<p>El problema es que al componente le está llegando directamente el objeto cliente. Cuando es un selectItems se usan objetos Java, el uso debería ser algo parecido a:</p>
<pre class="java" style="font-family:monospace;"><span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>h<span style="color: #339933;">:</span>selectOneListbox size<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;escape02&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#{select05NoSelection.initialCollectionValues}&quot;</span><span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</span>
      <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>f<span style="color: #339933;">:</span>selectItems value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#{select05NoSelection.hobbitList}&quot;</span>
                     var<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;n&quot;</span>
                     itemValue<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#{n}&quot;</span>
                     itemLabel<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#{n.bio}&quot;</span>
                     itemDescription<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#{n.description}&quot;</span>
                     itemDisabled<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#{n.disabled}&quot;</span>
                     itemLabelEscaped<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;true&quot;</span>
                     noSelectionValue<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#{select05NoSelection.hobbitList[0]}&quot;</span><span style="color: #339933;">/&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</span>
    <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;/</span>h<span style="color: #339933;">:</span>selectOneListbox<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</span> </pre>
<p>El "value" debe de apuntar a la lista, y en itemvalue e itemLabel es donde debes de apuntar a las propiedades que quieras, como por ejemplo "nombre_cliente"</p>
<p><a href="http://docs.oracle.com/javaee/6/javaserverfaces/2.0/docs/pdldocs/facelets/f/selectItems.html" rel="nofollow">http://docs.oracle.com/javaee/6/javaserverfaces/2.0/docs/pdldocs/facelets/f/selectItems.html</a>
</p>]]></description>
		</item>
		<item>
			<title>Cata on "SelectOneListBox en jsf"</title>
			<link>http://www.dudasprogramacion.com/topic/selectonelistbox-en-jsf-1#post-1185</link>
			<pubDate>Wed, 02 May 2012 03:18:58 +0000</pubDate>
			<dc:creator>Cata</dc:creator>
			<guid isPermaLink="false">1185@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Tengo que traer los datos de una base de datos en mysql a un SelectOneListBox. En consola con un sysout se que la funcion esta trayendo los valores que necesito que es una lista con los nombres de unos clientes,pero tengo el siguiente error:</p>
<p>Exception while calling encodeEnd on component : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /presentacion/error.jsp][Class: javax.faces.component.html.HtmlForm,Id: j_id_jsp_45943319_1][Class: javax.faces.component.html.HtmlSelectOneListbox,Id: uno]}</p>
<p>Caused by:<br />
java.lang.IllegalArgumentException - Value is no String (class=java.util.ArrayList, value=[logica.Cliente@c4cee, logica.Cliente@18ec029]) and component j_id_jsp_45943319_1:unowith path: {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /presentacion/error.jsp][Class: javax.faces.component.html.HtmlForm,Id: j_id_jsp_45943319_1][Class: javax.faces.component.html.HtmlSelectOneListbox,Id: uno]} does not have a Converter</p>
<p>Aqui estoy implementando el h:selectOneListbox en el formulario .jsp<br />
&#60;h:selectOneListbox id="uno" value="#{cliente.nombre_cliente}" &#62;<br />
			&#60;f:selectItems id="dos" value="#{cliente.nombre_cliente}"/&#62;<br />
			&#60;/h:selectOneListbox&#62;</p>
<p>Y esta es mi clase cliente:</p>
<pre class="java" style="font-family:monospace;">Código Fuente
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Cliente <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">long</span> id<span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</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> zona<span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</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> nombre<span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</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> direccion<span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</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> telefono<span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">boolean</span> editar<span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</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> ACCION_EXITOSA <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;success&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> ArrayList<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>Cliente<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</span> clientes<span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> ArrayList<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>SelectItem<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</span> nombre_cliente<span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> Cliente<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">long</span> id, <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> zona, <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> nombre, <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> direccion,
			<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> telefono, <span style="color: #000066; font-weight: bold;">boolean</span> editar<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">super</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">id</span> <span style="color: #339933;">=</span> id<span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">zona</span> <span style="color: #339933;">=</span> zona<span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">nombre</span> <span style="color: #339933;">=</span> nombre<span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">direccion</span> <span style="color: #339933;">=</span> direccion<span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">telefono</span> <span style="color: #339933;">=</span> telefono<span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">editar</span> <span style="color: #339933;">=</span> editar<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> Cliente<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">super</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> Cliente<span style="color: #009900;">&#40;</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> nombre<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">super</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">nombre</span> <span style="color: #339933;">=</span> nombre<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setClientes<span style="color: #009900;">&#40;</span>ArrayList<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>Cliente<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</span> clientes<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">clientes</span> <span style="color: #339933;">=</span> clientes<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> ArrayList<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>SelectItem<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</span> getNombre_cliente<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		nombre_cliente <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ArrayList<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>SelectItem<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</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>
&nbsp;
			Conexion con <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Conexion<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			ClienteDAO clienteDAO <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ClienteDAO<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">nombre</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aresultset+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">ResultSet</span></a> resultado <span style="color: #339933;">=</span> con.<span style="color: #006633;">consultar</span><span style="color: #009900;">&#40;</span>clienteDAO.<span style="color: #006633;">consultarNombres</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			nombre_cliente.<span style="color: #006633;">clear</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>resultado.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
				<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">nombre</span> <span style="color: #339933;">=</span> resultado.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;nombre&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				Cliente c<span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Cliente<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">nombre</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				nombre_cliente.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> SelectItem<span style="color: #009900;">&#40;</span>c, c.<span style="color: #006633;">getNombre</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</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;clientes:&quot;</span><span style="color: #339933;">+</span>c.<span style="color: #006633;">getNombre</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #009900;">&#125;</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;------------&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%3Asqlexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">SQLException</span></a> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			e.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">return</span> nombre_cliente<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setNombre_cliente<span style="color: #009900;">&#40;</span>ArrayList<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>SelectItem<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</span> nombre_cliente<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">nombre_cliente</span> <span style="color: #339933;">=</span> nombre_cliente<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;</pre>]]></description>
		</item>
		<item>
			<title>Torres on "Estructuración en clases"</title>
			<link>http://www.dudasprogramacion.com/topic/estructuracion-en-clases#post-1180</link>
			<pubDate>Wed, 25 Apr 2012 10:10:44 +0000</pubDate>
			<dc:creator>Torres</dc:creator>
			<guid isPermaLink="false">1180@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Buenas @sodrix, </p>
<p>Te refieres a que tenga tantas estructuras como idiomas? una para para las palabras y otra para la definición? IMHO no es muy cómodo tenerlo en estructuras separadas, porque luego si se quiere manejar la información (búsquedas, ordenación, etc) habrá que hacer el trabajo repetido, tantas veces como estructuras creadas.</p>
<p>Yo haría lo que comentaba mas arriba, o un mapa &#60;key, value&#62; con clave: la palabra y valor: clase con atributos definición y traducciones.</p>
<p>O directamente una clase con la palabra, la definición y las traducción y todo guardado en una lista o una array.
</p>]]></description>
		</item>
		<item>
			<title>Torres on "Problema hasmap comparar String"</title>
			<link>http://www.dudasprogramacion.com/topic/problema-hasmap-comparar-string#post-1179</link>
			<pubDate>Wed, 25 Apr 2012 09:33:23 +0000</pubDate>
			<dc:creator>Torres</dc:creator>
			<guid isPermaLink="false">1179@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Buenas,</p>
<p>Varias cosas:</p>
<p>- Para formatear bien el código: &#60; pre lang='java'&#62;Codigo&#60; /pre&#62; elimina este  y deja solo el del final.</p>
<p>- Porque la clase Persona tiene un HashMap con los alumnos?</p>
<p>- Porque la clase Persona tiene un método de buscar? Puedes ponerme el código en el que usas esta clase para buscar?
</p>]]></description>
		</item>
		<item>
			<title>vitoco01 on "Problema hasmap comparar String"</title>
			<link>http://www.dudasprogramacion.com/topic/problema-hasmap-comparar-string#post-1178</link>
			<pubDate>Wed, 25 Apr 2012 04:27:07 +0000</pubDate>
			<dc:creator>vitoco01</dc:creator>
			<guid isPermaLink="false">1178@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Hola tengo el siguiente problema tengo un hasmap de tipo Integer que su key es un entero<br />
pero ademas varios values, como nombre y rut mi problema es que quiero comparar entre el nombre y el value que se guardo en el hashmap como nombre y no me funciona.<br />
con la key no tengo problemas porque ocupo la propiedad .containsKey(key) y no hay problema ni para eliminar o mostrar una busqueda , pero cuando quiero consultar en una condicon por el nombre o rut siempre me aparece esto:</p>
<pre>(Exception in thread "main" java.lang.NullPointerException
	at java.lang.String$CaseInsensitiveComparator.compare(String.java:1217)
	at java.lang.String$CaseInsensitiveComparator.compare(String.java:1211)
	at java.lang.String.compareToIgnoreCase(String.java:1258)
	at Persona.BuscarPorNombre(Persona.java:62)
	at AppAlumno.main(AppAlumno.java:84))</pre>
<pre class="java" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//este es el codigo</span>
<span style="color: #666666; font-style: italic;">//solo de la clase persona.</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.*</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Persona <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">private</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> nombre<span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">private</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> apellido<span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">private</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> run<span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">int</span> edad<span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">public</span>  HashMap<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>Integer,Alumno<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</span>hashalum<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> HashMap<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>Integer,Alumno<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</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;">public</span> Persona<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> Persona<span style="color: #009900;">&#40;</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> nombre, <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> apellido, <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> run, <span style="color: #000066; font-weight: bold;">int</span> edad<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">nombre</span> <span style="color: #339933;">=</span> nombre<span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">apellido</span> <span style="color: #339933;">=</span> apellido<span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">run</span> <span style="color: #339933;">=</span> run<span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">edad</span> <span style="color: #339933;">=</span> edad<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setNombre<span style="color: #009900;">&#40;</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> nombre<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">nombre</span> <span style="color: #339933;">=</span> nombre<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setApellido<span style="color: #009900;">&#40;</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> apellido<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">apellido</span> <span style="color: #339933;">=</span> apellido<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setRun<span style="color: #009900;">&#40;</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> run<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">run</span> <span style="color: #339933;">=</span> run<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setEdad<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> edad<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">edad</span> <span style="color: #339933;">=</span> edad<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</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> getNombre<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">nombre</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</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> getApellido<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">apellido</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</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> getRun<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">run</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">int</span> getEdad<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">edad</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
      <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> BuscarPorNombre<span style="color: #009900;">&#40;</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> nombre<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;ingrese el nombre a buscar&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     	nombre<span style="color: #339933;">=</span>Leer.<span style="color: #006633;">dato</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     	<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>nombre.<span style="color: #006633;">compareToIgnoreCase</span><span style="color: #009900;">&#40;</span>getNombre<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #666666; font-style: italic;">//aqui esta el problema.</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>hashalum.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>nombre<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">else</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;el alumno no existe&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
     <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> <span style="color: #339933;">/</span>pre<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</span></pre>]]></description>
		</item>
		<item>
			<title>yenired on "como puedo armar prueba de caja blanca con estructura de grafos"</title>
			<link>http://www.dudasprogramacion.com/topic/como-puedo-armar-prueba-de-caja-blanca-con-estructura-de-grafos#post-1177</link>
			<pubDate>Tue, 24 Apr 2012 00:34:36 +0000</pubDate>
			<dc:creator>yenired</dc:creator>
			<guid isPermaLink="false">1177@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>PUBLIC SUB guardar_Click()<br />
DIM codepar AS String<br />
DIM hres AS Result<br />
DIM RESP AS String<br />
DIM query AS String<br />
DIM Clave AS String<br />
DIM res AS result </p>
<p>RESP = Message.Question("¿Desea guardar los datos introducidos?", "Guardar", "No Guardar")<br />
IF RESP = 1<br />
    conexion.ConectarBase()<br />
    conexion.hconn.begin<br />
    hres = conexion.hconn.CREATE("expedientes")<br />
    hres!cedula_alu = cedula.Text<br />
    hres!pnombre_alu = nombre.Text<br />
    hres!snombre_alu = snombre.Text<br />
    hres!papellido_alu = apellido.text<br />
    hres!sapellido_alu = sapellido.text<br />
    hres!fecha_nac_alu = fechanac.Text<br />
    IF femenino.Value = TRUE THEN hres!sexo_alu = "F"<br />
    IF masculino.Value = TRUE THEN hres!sexo_alu = "M"<br />
    hres!urbanizacion_alu = urbanizacion.Text<br />
    hres!municipio_alu = municipio.Text<br />
    hres!estado_alu = estado.Text<br />
    hres!telefono_alu = telefono.Text<br />
    hres!celular_alu = celular.Text<br />
    hres!correo_alu = correo.Text<br />
    hres!carrera_alu = variables.codcar<br />
    hres!cohorte_alu = periodo_cohorte.Text &#38; "-" &#38; ano_cohorte.Text<br />
    IF activo.Value = TRUE THEN hres!condicion_alu = TRUE<br />
    IF inactivo.Value = TRUE THEN hres!condicion_alu = FALSE<br />
    hres!cod_archivador = variables.codar<br />
    hres!gaveta_num = gaveta.Text</p>
<p>    IF fotos.Value = TRUE THEN hres!fotos = TRUE<br />
    IF ccedula.Value = TRUE THEN hres!ccedula = TRUE<br />
    IF partida.Value = TRUE THEN hres!partida = TRUE<br />
    IF cnotas.Value = TRUE THEN hres!cnotas = TRUE<br />
    IF ctitulo.Value = TRUE THEN hres!ctitulo = TRUE<br />
    IF fondonegro.Value = TRUE THEN hres!fondonegro = TRUE<br />
    IF examenpsicologico.Value = TRUE THEN hres!examenpsicologico = TRUE<br />
    IF certificadosalud.Value = TRUE THEN hres!certificadosalud = TRUE<br />
    IF cinscripcionmilitar.Value = TRUE THEN hres!inscripcionmilitar = TRUE<br />
    IF inscripcionrusnies.Value = TRUE THEN hres!registrorusnies = TRUE<br />
    IF asignacionopsu.Value = TRUE THEN hres!asignacionopsu = TRUE<br />
    IF inscripcionunefa.Value = TRUE THEN hres!webunefa = TRUE<br />
    hres.update<br />
    Message.Info("Datos guardados con éxito")<br />
ELSE<br />
	otro_Click()<br />
ENDIF
</p>]]></description>
		</item>
		<item>
			<title>yenired on "como puedo armar prueba de caja blanca con estructura de grafos"</title>
			<link>http://www.dudasprogramacion.com/topic/como-puedo-armar-prueba-de-caja-blanca-con-estructura-de-grafos#post-1176</link>
			<pubDate>Tue, 24 Apr 2012 00:29:48 +0000</pubDate>
			<dc:creator>yenired</dc:creator>
			<guid isPermaLink="false">1176@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>quien me podra ayudar :(
</p>]]></description>
		</item>
		<item>
			<title>yenired on "como puedo armar prueba de caja blanca con estructura de grafos"</title>
			<link>http://www.dudasprogramacion.com/topic/como-puedo-armar-prueba-de-caja-blanca-con-estructura-de-grafos#post-1175</link>
			<pubDate>Tue, 24 Apr 2012 00:29:15 +0000</pubDate>
			<dc:creator>yenired</dc:creator>
			<guid isPermaLink="false">1175@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>necesito sacar la prueba de caja blanca de un modulo de mi proyecto
</p>]]></description>
		</item>
		<item>
			<title>Jessica on "Validar email en formulario php :/"</title>
			<link>http://www.dudasprogramacion.com/topic/validar-email-en-formulario-php#post-1174</link>
			<pubDate>Mon, 23 Apr 2012 15:06:47 +0000</pubDate>
			<dc:creator>Jessica</dc:creator>
			<guid isPermaLink="false">1174@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Si, como dice Torres es mas facil usar expresiones regulares para cualquier validación en PHP o javascript, pero se usan de manera diferente en ambas... pero antes de usar expresiones te recomiendo que leas un poco sobre que 'significan' solo así podrás después usar las tuyas sin necesidad de copy/paste.</p>
<p>Existen diferentes formas de validar, ya sea sensible a mayusculas o minisculas o no</p>
<p>un ejemplo:</p>
<p>preg_match('/'.$patron.'/', $cadena_texto);</p>
<p>donde: $patron es la expresion regular<br />
y $cadena_texto es la queda a evaluar</p>
<pre class="php" style="font-family:monospace;">&nbsp;
&nbsp;
<span style="color: #000088;">$email</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email.email@gmail.com&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/preg_match"><span style="color: #990000;">preg_match</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/'</span><span style="color: #339933;">,</span><span style="color: #000088;">$email</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Bien!&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;mal :(&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;</pre>
<p>donde ^ es el inicio de la cadena<br />
[a-zA-Z0-9_]+ donde puede haber letras desde a-z A-Z y numeros de 0-9 tambien un _ en el primer puesto el sigo + significa 1 o mas veces<br />
 Vemos ([.][a-zA-Z0-9_]+)*<br />
donde: ( ) implican otro segmento a validar el * significa 0 o mas veces que puede existir o no.<br />
vemos que esta un [.]  esto es que si se va poner este segmento tiene que empezar por . después tenemos el mismo formato de a-z... es lo mismo</p>
<p>despues [@] que no tiene ni + ni * lo cual significa que es obligatorio 1 sola vez.</p>
<p>despues [a-zA-Z0-9_]+ q es lo mismo que ya vimos, quiere decir que despues del arroba puede haber 1 o + veces lo siguiente si no queires que aparezca un _ quitalo, y ya :)</p>
<p>ahora<br />
([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}<br />
vemos que [.] es similar al arroba, tiene que estar obligatorio 1 vez<br />
después tiene que seguir el mismo formato que ya analizamos [a-zA-Z0-9_]+ 1 o mas veces<br />
luego todo esto encerrado por * ósea, que puede o no ester 0 o mas veces por aquellos corres que son <a href="mailto:aaa@hola.oh.com">aaa@hola.oh.com</a></p>
<p>después tenemos un . obligatorio y cualquier letra de la a-zA-z de 2 a 4 veces osea que solo puede estar <a href="mailto:asdf@hola.ho.com">asdf@hola.ho.com</a> si pones<br />
<a href="mailto:asdf@hola.ho">asdf@hola.ho</a>.c marcara error tambien con <a href="mailto:asdf@hola.ho.comas">asdf@hola.ho.comas</a><br />
por que vemos que este ultimo supera el rango mencionado en {2,4} de 2  a 4, si lo quieres ampliar le pones mas al al segundo valor y ya :)</p>
<p>ah y el $ significa terminacion :p</p>
<p>Espero que a alguien le sirva, saludos
</p>]]></description>
		</item>
		<item>
			<title>sodrix on "Estructuración en clases"</title>
			<link>http://www.dudasprogramacion.com/topic/estructuracion-en-clases#post-1173</link>
			<pubDate>Mon, 23 Apr 2012 15:02:58 +0000</pubDate>
			<dc:creator>sodrix</dc:creator>
			<guid isPermaLink="false">1173@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>yo soy novato pero creo que podrías hacer algo asi.<br />
si la palabra pez es la numero 3 del diccionaro almacenar el 3 en la variable int n;<br />
System.out.print "definicion: "+definicion[n];<br />
System.out.print "inglés: "+ingles[n];<br />
System.out.print "aleman: "+aleman[n];<br />
perdona que me explique tan mal pero he usado poco java y lo de buscar palabras no me acuerdo como se hacía pero la técnica que te digo es como la que se usa para los juegos 2d
</p>]]></description>
		</item>
		<item>
			<title>diegofra on "Visualizacion en Internet Explorer"</title>
			<link>http://www.dudasprogramacion.com/topic/visualizacion-en-internet-explorer#post-1172</link>
			<pubDate>Mon, 23 Apr 2012 14:39:02 +0000</pubDate>
			<dc:creator>diegofra</dc:creator>
			<guid isPermaLink="false">1172@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Buen dia, soy nuevo en el foro y quisiera buscar su ayuda en un problema que estoy teniendo en un desarrollo que estoy realizando y a punto de entregar. </p>
<p>El gran problema surge en la visualización del sitio en Internet Explorer, dado que en otros navegadores la veo perfecta la web. </p>
<p>1º Me arroja un mensaje de error: "Stack overflow at line: 561". Estuve tratando de chequear alguna solucion pero no logre encontrarla. </p>
<p>Ademas, la web levanta distintos archivos XML a traves de rssinclude.com, pero en este navegador no los toma de manera correcta</p>
<p>Pueden ingresar a la web desde aqui: segurosparausa.com.ar</p>
<p>Quedo a la espera de su pronta ayuda.</p>
<p>Abrazo!
</p>]]></description>
		</item>
		<item>
			<title>Jessica on "generar pdf"</title>
			<link>http://www.dudasprogramacion.com/topic/generar-pdf#post-1171</link>
			<pubDate>Mon, 23 Apr 2012 14:25:34 +0000</pubDate>
			<dc:creator>Jessica</dc:creator>
			<guid isPermaLink="false">1171@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Yo utilizo siempre R&#38;OS: pdf class</p>
<p>Funciona muy bien y generalmente esta muy facil de entender! las librerías vienen con un tutorial que te explica cada una de las funciones, ahi puedes descargar los archivos, te comento que funcionan muy bien! :)
</p>]]></description>
		</item>
		<item>
			<title>lineadecodigo on "duda agregar campo dinamico"</title>
			<link>http://www.dudasprogramacion.com/topic/duda-agregar-campo-dinamico#post-1170</link>
			<pubDate>Fri, 20 Apr 2012 10:44:13 +0000</pubDate>
			<dc:creator>lineadecodigo</dc:creator>
			<guid isPermaLink="false">1170@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>@ptirapeg, me alegro que te haya servido. :-D
</p>]]></description>
		</item>
		<item>
			<title>ptirapeg on "duda agregar campo dinamico"</title>
			<link>http://www.dudasprogramacion.com/topic/duda-agregar-campo-dinamico#post-1169</link>
			<pubDate>Fri, 20 Apr 2012 03:24:32 +0000</pubDate>
			<dc:creator>ptirapeg</dc:creator>
			<guid isPermaLink="false">1169@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>se agradece la ayuda!
</p>]]></description>
		</item>
		<item>
			<title>admin on "Solicito programadores en Monterrey, Mexico"</title>
			<link>http://www.dudasprogramacion.com/topic/solicito-programadores-en-monterrey-mexico#post-1168</link>
			<pubDate>Thu, 19 Apr 2012 18:01:57 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">1168@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>@vcmanzo02,</p>
<p>Gracias por publicar tu oferta. Hemos creado una nueva categoría para ofrecer ofertas dirigidas a programadores.</p>
<p><a href="http://www.dudasprogramacion.com/forum/ofertas-de-trabajo" rel="nofollow">http://www.dudasprogramacion.com/forum/ofertas-de-trabajo</a>
</p>]]></description>
		</item>
		<item>
			<title>vcmanzo02 on "Solicito programadores en Monterrey, Mexico"</title>
			<link>http://www.dudasprogramacion.com/topic/solicito-programadores-en-monterrey-mexico#post-1167</link>
			<pubDate>Thu, 19 Apr 2012 16:55:23 +0000</pubDate>
			<dc:creator>vcmanzo02</dc:creator>
			<guid isPermaLink="false">1167@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Hola a Todos,</p>
<p>Somos una empresa de rápida expansión en Monterrey, NL, México y estamos requiriendo programadores con distintas habilidades y en distintos esquemas.</p>
<p>Desde freelancers hasta puestos mensuales.</p>
<p>Solicitamos programadores en: </p>
<p>.NET<br />
Lenguaje C<br />
Protocolos de Comunicación<br />
Java<br />
Python<br />
Metastorm<br />
Lotus Notes</p>
<p>Si te interesa o sabes de alguien que pueda estar interesado por favor contáctanos enviando tu CV a <a href="mailto:vcantu@altregy.com">vcantu@altregy.com</a></p>
<p>Reciban un cordial saludo!
</p>]]></description>
		</item>
		<item>
			<title>Torres on "Problemas con arreglos Ayuda"</title>
			<link>http://www.dudasprogramacion.com/topic/problemas-con-arreglos-ayuda#post-1166</link>
			<pubDate>Thu, 19 Apr 2012 16:37:20 +0000</pubDate>
			<dc:creator>Torres</dc:creator>
			<guid isPermaLink="false">1166@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Buenas,</p>
<p>Quiero entender lo de un Array para llevar la cuenta de una reserva de asientos, pero me pierdo en lo del HashMap y en los trozos de código que pones con esa identación, tampoco ayudan mucho...
</p>]]></description>
		</item>
		<item>
			<title>lineadecodigo on "Problemas con arreglos Ayuda"</title>
			<link>http://www.dudasprogramacion.com/topic/problemas-con-arreglos-ayuda#post-1165</link>
			<pubDate>Thu, 19 Apr 2012 14:59:35 +0000</pubDate>
			<dc:creator>lineadecodigo</dc:creator>
			<guid isPermaLink="false">1165@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>@Torres, A mi me pasaba lo mismo. Y yo que pensaba que estaba espeso.<br />
@vitoco01, puedes volver a formular tu pregunta.
</p>]]></description>
		</item>
		<item>
			<title>Torres on "Problemas con arreglos Ayuda"</title>
			<link>http://www.dudasprogramacion.com/topic/problemas-con-arreglos-ayuda#post-1164</link>
			<pubDate>Thu, 19 Apr 2012 14:36:50 +0000</pubDate>
			<dc:creator>Torres</dc:creator>
			<guid isPermaLink="false">1164@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Buenas,</p>
<p>He leído un par de veces tu duda y sinceramente no he entendido nada, ni de lo que quieres hacer ni del problema que te encuentras y sobre todo por lineas como estas:</p>
<p>System.out.print("&#124;"+(i++)+"&#124;"+(i*1)+"&#124;x&#124;");</p>
<p>i*1? para que quieres i*1?
</p>]]></description>
		</item>
		<item>
			<title>adrian on "listas"</title>
			<link>http://www.dudasprogramacion.com/topic/listas#post-1163</link>
			<pubDate>Thu, 19 Apr 2012 05:59:14 +0000</pubDate>
			<dc:creator>adrian</dc:creator>
			<guid isPermaLink="false">1163@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Que tal entonces quedaria de la siguiente manera?</p>
<pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Listas<span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main <span style="color: #009900;">&#40;</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> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      Lista <span style="color: #cc66cc;">1</span><span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> lista <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><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> i<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
            <span style="color: #cc66cc;">1</span>.<span style="color: #006633;">insertarcabeza</span> <span style="color: #009900;">&#40;</span>i<span style="color: #339933;">+</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>   <span style="color: #cc66cc;">1</span>.<span style="color: #006633;">visualizar</span><span style="color: #009900;">&#40;</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: #009900;">&#41;</span><span style="color: #339933;">;</span>
        nodo1<span style="color: #339933;">=</span>l.<span style="color: #006633;">buscar</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</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>n.<span style="color: #006633;">dato</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        l.<span style="color: #006633;">insertar</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span>,n<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        l.<span style="color: #006633;">visualizar</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span></pre>]]></description>
		</item>
		<item>
			<title>lineadecodigo on "listas"</title>
			<link>http://www.dudasprogramacion.com/topic/listas#post-1162</link>
			<pubDate>Wed, 18 Apr 2012 10:46:55 +0000</pubDate>
			<dc:creator>lineadecodigo</dc:creator>
			<guid isPermaLink="false">1162@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>@adrian,</p>
<p>Revisa tu método main. ¿Dónde tienes definida la clase lista?
</p>]]></description>
		</item>
		<item>
			<title>lineadecodigo on "duda agregar campo dinamico"</title>
			<link>http://www.dudasprogramacion.com/topic/duda-agregar-campo-dinamico#post-1161</link>
			<pubDate>Wed, 18 Apr 2012 10:37:20 +0000</pubDate>
			<dc:creator>lineadecodigo</dc:creator>
			<guid isPermaLink="false">1161@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>@ptirapeg,</p>
<p>Puedes darles un atributo name a los elementos con el método .createAttribute() o bien acceder a los pinputs mediante el .getElementByTagName().
</p>]]></description>
		</item>
		<item>
			<title>adrian on "listas"</title>
			<link>http://www.dudasprogramacion.com/topic/listas#post-1160</link>
			<pubDate>Wed, 18 Apr 2012 05:22:48 +0000</pubDate>
			<dc:creator>adrian</dc:creator>
			<guid isPermaLink="false">1160@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Que tal servidores de la red de programacion estoy tratando de entender este codigo de una lista simplemente enlazada pero al momento de ejecutar el programa me dice que me falta el metodo main.<br />
Comprendo que el metodo main es el que realiza la llamada de los metodos pero al momento de ingresarle este me marca errores le podrian hechar un vistazo...</p>
<p>Gracias Saludos... </p>
<pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.JOptionPane</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Listas <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">private</span> Nodo primero<span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">private</span> Nodo ultimo<span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">int</span> tamano<span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">public</span> Listas<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">primero</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">ultimo</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">tamano</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">//Metodo utilizado para denotar que la lista se encuentra vacia.</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">boolean</span> siVacio<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">primero</span> <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">//Metodo para agregar al final de la lista.</span>
    <span style="color: #000000; font-weight: bold;">public</span> Listas addLast<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> dato<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>siVacio<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            Nodo nuevo <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Nodo<span style="color: #009900;">&#40;</span>dato<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            primero <span style="color: #339933;">=</span> nuevo<span style="color: #339933;">;</span>
            ultimo <span style="color: #339933;">=</span> nuevo<span style="color: #339933;">;</span>
            nuevo.<span style="color: #006633;">nodoDer</span> <span style="color: #339933;">=</span> nuevo<span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
            Nodo nuevo <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Nodo<span style="color: #009900;">&#40;</span>dato<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            nuevo.<span style="color: #006633;">nodoDer</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
            ultimo.<span style="color: #006633;">nodoDer</span> <span style="color: #339933;">=</span> nuevo<span style="color: #339933;">;</span>
            ultimo <span style="color: #339933;">=</span> nuevo<span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">tamano</span><span style="color: #339933;">++;</span>
        <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000000; font-weight: bold;">this</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">//Metodo para borrar al final de la lista.</span>
    <span style="color: #000000; font-weight: bold;">public</span> Nodo deleteLast<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        Nodo eliminar <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>siVacio<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ajoptionpane+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JOptionPane</span></a>.<span style="color: #006633;">showMessageDialog</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">null</span>, <span style="color: #0000ff;">&quot;La lista se encuentra vacia&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>primero <span style="color: #339933;">==</span> ultimo<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            primero <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
            ultimo <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
            Nodo actual <span style="color: #339933;">=</span> primero<span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>actual.<span style="color: #006633;">nodoDer</span> <span style="color: #339933;">!=</span> ultimo<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                actual <span style="color: #339933;">=</span> actual.<span style="color: #006633;">nodoDer</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            eliminar <span style="color: #339933;">=</span> actual.<span style="color: #006633;">nodoDer</span><span style="color: #339933;">;</span>
            actual.<span style="color: #006633;">nodoDer</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
            ultimo <span style="color: #339933;">=</span> actual<span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">tamano</span><span style="color: #339933;">--;</span>
        <span style="color: #000000; font-weight: bold;">return</span> eliminar<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">//Metodo que imprime el tamaño de la lista.</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> tamano<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ajoptionpane+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JOptionPane</span></a>.<span style="color: #006633;">showMessageDialog</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">null</span>, <span style="color: #0000ff;">&quot;El tamaño es:<span style="color: #000099; font-weight: bold;">\n</span> &quot;</span> <span style="color: #339933;">+</span> <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">tamano</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">//Metodo que imprime la lista y los valores ingresados.</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> imprimir<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>tamano <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            Nodo temp <span style="color: #339933;">=</span> primero<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> str <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><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> i <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">tamano</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                str <span style="color: #339933;">=</span> str <span style="color: #339933;">+</span> temp.<span style="color: #006633;">dato</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
                temp <span style="color: #339933;">=</span> temp.<span style="color: #006633;">nodoDer</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ajoptionpane+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JOptionPane</span></a>.<span style="color: #006633;">showMessageDialog</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">null</span>, str<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Nodo <span style="color: #009900;">&#123;</span>
    Nodo nodoDer<span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">int</span> dato<span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">public</span> Nodo<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> dato<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">dato</span> <span style="color: #339933;">=</span> dato<span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">nodoDer</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main <span style="color: #009900;">&#40;</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> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        lista <span style="color: #cc66cc;">1</span><span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> lista <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><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> i<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
            <span style="color: #cc66cc;">1</span>.<span style="color: #006633;">insertarcabeza</span> <span style="color: #009900;">&#40;</span>i<span style="color: #339933;">+</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>   <span style="color: #cc66cc;">1</span>.<span style="color: #006633;">visualizar</span><span style="color: #009900;">&#40;</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: #009900;">&#41;</span><span style="color: #339933;">;</span>
        nodo1<span style="color: #339933;">=</span>l.<span style="color: #006633;">buscar</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</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>n.<span style="color: #006633;">dato</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        l.<span style="color: #006633;">insertar</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span>,n<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        l.<span style="color: #006633;">visualizar</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>]]></description>
		</item>
		<item>
			<title>ptirapeg on "duda agregar campo dinamico"</title>
			<link>http://www.dudasprogramacion.com/topic/duda-agregar-campo-dinamico#post-1152</link>
			<pubDate>Mon, 16 Apr 2012 15:26:41 +0000</pubDate>
			<dc:creator>ptirapeg</dc:creator>
			<guid isPermaLink="false">1152@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>tengo el siguiente codigo javascript<br />
---------------------------------------------------&#62;</p>
<pre class="javascript" style="font-family:monospace;">&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> agrega_celda<span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #003366; font-weight: bold;">var</span> tbody <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span>
<span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;TBODY&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> row <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;TR&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #003366; font-weight: bold;">var</span> td1 <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;TD&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #003366; font-weight: bold;">var</span> td2 <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;TD&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #003366; font-weight: bold;">var</span> td3 <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;TD&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #003366; font-weight: bold;">var</span> td4 <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;TD&quot;</span><span style="color: #009900;">&#41;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> text <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;INPUT&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #003366; font-weight: bold;">var</span> text1 <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;INPUT&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #003366; font-weight: bold;">var</span> text2 <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;INPUT&quot;</span><span style="color: #009900;">&#41;</span>
&nbsp;
td1.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">createTextNode</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Desde&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
td2.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">createTextNode</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Hasta&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
td3.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">createTextNode</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&amp;#60;b&amp;#62;Otro &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
td4.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">createTextNode</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Lugar&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
&nbsp;
row.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>td3<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
row.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>td1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
row.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>text<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
row.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>td2<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
row.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>text1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
row.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>td4<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
row.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>text2<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
tbody.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>row<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;</pre>
<p>&#60;-------------------------------------------</p>
<p>lo que quiero saber es como puedo obtener el name de los input creados para asi asignarlos y guardarlos en una variable en php y asi mismo mostrarlos en un .php
</p>]]></description>
		</item>
		<item>
			<title>asereje19 on "como llenar combos con datos de mysql"</title>
			<link>http://www.dudasprogramacion.com/topic/como-llenar-combos-con-datos-de-mysql#post-1151</link>
			<pubDate>Mon, 16 Apr 2012 02:33:38 +0000</pubDate>
			<dc:creator>asereje19</dc:creator>
			<guid isPermaLink="false">1151@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>hola a tod@s en el foro...soy principiante en programacion con java y tengo problemas para llenar combos en JSP estoy utilizando jstl y en el select coloco lo siguiente</p>
<pre lang="java">&#60;select id="cbo_aud" name="cbo_aud" class="form"&#62;					&#60;c:forEach items="${beans}" var="Auditor"&#62;
	&#60;option&#62;&#60;c:out value="${auditor.nombre}"/&#62;&#60;/option&#62;
	&#60;/c:forEach&#62;
&#60;/select&#62;</pre>
<p>Estoy utilizando MVC, DAO y servlets.... la verdad no se que se tiene que agregar y en que parte para que funcione el llenado de combos , si me pudieran ayudar se los agradezco...
</p>]]></description>
		</item>
		<item>
			<title>vitoco01 on "Problemas con arreglos Ayuda"</title>
			<link>http://www.dudasprogramacion.com/topic/problemas-con-arreglos-ayuda#post-1150</link>
			<pubDate>Fri, 13 Apr 2012 16:37:59 +0000</pubDate>
			<dc:creator>vitoco01</dc:creator>
			<guid isPermaLink="false">1150@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Hola tengo el siguiente problema con los arreglos</p>
<pre class="java" style="font-family:monospace;">&nbsp;
<span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span>asientos <span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">50</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//lo recorro con</span>
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><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> i<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>asiento.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><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;ingrese asiento &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                asiento<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span>Leer.<span style="color: #006633;">datoInt</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//se sale de ciclo for</span>
                <span style="color: #009900;">&#125;</span>
&nbsp;</pre>
<p>eso luego se guarda en hashmap que tengo declarado.<br />
y lo muestro</p>
<pre class="java" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><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> i<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>asiento.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><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;asiento = &quot;</span> <span style="color: #339933;">+</span>asiento<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>break<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
&nbsp;</pre>
<p>el problema es que siempre me muestra el ultimo arreglo y necesito que lo muestre por separado.<br />
el ejemplo es que son 50 ventas de asientos. y cuando muestro la información de mis comprados o reservados todos me aprecen con el ultimo arreglo que se ingreso<br />
También como puedo hacer la comparación para saber si el asiento ya esta ocupado.<br />
LO ULTIMO<br />
ESTE ES MI CODIGO QUE MUESTRA LOS ASIENTOS</p>
<pre class="java" style="font-family:monospace;">&nbsp;
<span style="color: #666666; font-style: italic;">//esto imprime una corrida de asientos de 50 quiero por ejemplo me muestre los asientos //comprados con un C Y LO RESERVADOS CON UNA R.lo e visto en otro ejercicio y funciona.</span>
&nbsp;
bajo<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//no me saturará la pantalla hacia el lado</span>
&nbsp;
       <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>asiento.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
       <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>asiento<span style="color: #009900;">&#91;</span>posicion<span style="color: #009900;">&#93;</span><span style="color: #339933;">!=</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</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;">print</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;#124;C&amp;#124;&quot;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&amp;#124;&quot;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&amp;#124;C&amp;#124;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
 <span style="color: #000000; font-weight: bold;">else</span>
    <span style="color: #009900;">&#123;</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;">print</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;#124;&quot;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&amp;#124;&quot;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">*</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&amp;#124;x&amp;#124;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
     <span style="color: #009900;">&#125;</span>
&nbsp;
							bajo<span style="color: #339933;">++;</span>
	<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>bajo<span style="color: #339933;">==</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//evita la //saturación al contar cuatro lineas de asientos recorridos</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: #009900;">&#41;</span><span style="color: #339933;">;</span>
	bajo<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</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;">print</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;#124;ba&quot;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&amp;#124;&quot;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;ño&quot;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&amp;#124;x&amp;#124;&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%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;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;</pre>
<p>Gracias por la  ayuda
</p>]]></description>
		</item>
		<item>
			<title>lineadecodigo on "juego de cartas 21 ayuda"</title>
			<link>http://www.dudasprogramacion.com/topic/juego-de-cartas-21-ayuda#post-1149</link>
			<pubDate>Thu, 12 Apr 2012 16:14:24 +0000</pubDate>
			<dc:creator>lineadecodigo</dc:creator>
			<guid isPermaLink="false">1149@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>@redm23,</p>
<p>Lo que @Torres te intenta decir es que se te puede ayudar. Pero con cosas cosas concretas, con un problema,... Seguro que así avanzas. </p>
<p>Pero primero dale un poco a la cabeza. ;-)</p>
<p>Pd. @Torres, muy buena la URL.
</p>]]></description>
		</item>
		<item>
			<title>Torres on "juego de cartas 21 ayuda"</title>
			<link>http://www.dudasprogramacion.com/topic/juego-de-cartas-21-ayuda#post-1148</link>
			<pubDate>Thu, 12 Apr 2012 12:11:51 +0000</pubDate>
			<dc:creator>Torres</dc:creator>
			<guid isPermaLink="false">1148@http://www.dudasprogramacion.com/</guid>
			<description><![CDATA[<p>Buenas,</p>
<p>Cual es la duda exactamente? cual es el problema de programación que te has encontrado? cuál es el error que no te posible solucionar? o simplemente te han mandado un práctica de programación, copias y pegas aquí el enunciado y esperar que alguien te haga TU trabajo?</p>
<p>Si es alguna de la primeras preguntas, precisa un poco mas, si es la última, te has equivocado de foro...prueba esto:</p>
<p><a href="http://lmgtfy.com/?q=blackjack+java" rel="nofollow">http://lmgtfy.com/?q=blackjack+java</a>
</p>]]></description>
		</item>

	</channel>
</rss>

