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

		<item>
			<title>jark on "Problemas java"</title>
			<link>http://www.dudasprogramacion.com/topic/problemas-java#post-1010</link>
			<pubDate>Fri, 23 Dec 2011 10:45:58 +0000</pubDate>
			<dc:creator>jark</dc:creator>
			<guid isPermaLink="false">1010@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola, necesito saber cómo se resuelve esta práctica cuanto antes, disculpad si parece mucho, pero es que no me queda otra opción, no consigo sacar el código.</p>
<p>3)-- Introducir un objeto Tablero en RellenarPorAlumno: Se deberá modificar la clase<br />
RellenarPorAlumno para introducir un tablero de juego. Para ello se deberá:<br />
• Añadir un atributo elTablero: Objeto de tipo Tablero, añadido como atributo a la<br />
clase RellenarPorAlumno. Se deberá inicializar el atributo elTablero en el<br />
método main, para ello dentro del método main de RellenarPorAlumno se crea<br />
un objeto denominado tmp. Deberá inicializarse la variable elTablero del objeto<br />
tmp, creando un nuevo tablero de juego que contenga las siguientes casillas:</p>
<p>(Aquí iría el array de caracteres que ya tengo)</p>
<p>Nota: Deberá inicializarse antes de la llamada al método<br />
establecerCoordenadas que aparece en el código, si no se producirá una<br />
excepción.</p>
<p>-- Modificar el método pintarTablero”: Modificar este método para que en lugar de<br />
pintar casillas aleatorias, pinte el tablero contenido en la variable elTablero.</p>
<p>4) Modificar el método teclaPulsada en RellenarPorAlumno: Se deberá modificar el<br />
método teclaPulsada de la clase RellenarPorAlumno para que si se pulsa cualquiera de<br />
las teclas A,W,D,X se realice lo siguiente:<br />
• Mover el jugador: se realizará el movimiento oportuno sobre elTablero.<br />
• Incrementar el contador de pasos: Sólo si se ha podido realizar el movimiento,<br />
se incrementará el contador de pasos.<br />
• Comprobar si se ha ganado la partida: Si se ha ganado la partida, se finalizará<br />
el programa.</p>
<p>Esos serían los dos apartados a resolver (incluyendo las dos secciones que tiene el punto 3)</p>
<p>El código dónde debo hacer esto es el siguiente:</p>
<pre class="java" style="font-family:monospace;">@SuppressWarnings<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;serial&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> RellenarPorAlumno <span style="color: #000000; font-weight: bold;">extends</span> NoTocarEstaClase <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Método main
     */</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>
    	RellenarPorAlumno tmp <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> RellenarPorAlumno<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    	tmp.<span style="color: #006633;">elTablero</span><span style="color: #009900;">&#40;</span>x, y<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	tmp.<span style="color: #006633;">establecerCoodenadas</span><span style="color: #009900;">&#40;</span>ANCHO, ALTO<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #008000; font-style: italic; font-weight: bold;">/** Enumeración para tipos de casilla */</span>
	<span style="color: #000000; font-weight: bold;">enum</span> TipoCasilla <span style="color: #009900;">&#123;</span>VACIA, CAJA,
		JUGADOR, MURO, DESTINO,
		CAJA_SOBRE_DESTINO, JUGADOR_SOBRE_DESTINO	<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Definición de constantes para dimensiones del tablero</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> <span style="color: #000066; font-weight: bold;">int</span> ANCHO <span style="color: #339933;">=</span> <span style="color: #cc66cc;">19</span><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> <span style="color: #000066; font-weight: bold;">int</span> ALTO <span style="color: #339933;">=</span> <span style="color: #cc66cc;">11</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Método que es invocado cada vez que el usuario pulsa cualquier tecla
     * La implementación que se proporciona sólo responde a la tecla 'q', que
     * hace que finalice la ejecución del programa
     * Si no se pulsa la tecla q, genera casillas aleatorias en el tablero y lo repinta
     * EL CÓDIGO QUE SE PROPORCIONA ES SÓLO UN EJEMPLO, YA QUE ESTE MÉTODO DEBERÁ
     * SER ESCRITO POR COMPLETO POR EL ALUMNO PARA REALIZAR LAS CUESTIONES
     * QUE SE PLANTEAN EN LA PRÁCTICA 3
     * @param tecla La tecla pulsada
     */</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> teclaPulsada<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">char</span> tecla<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    	<span style="color: #666666; font-style: italic;">// En función de la tecla pulsada hace algo</span>
        <span style="color: #000000; font-weight: bold;">switch</span> <span style="color: #009900;">&#40;</span>tecla<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #0000ff;">'q'</span><span style="color: #339933;">:</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #0000ff;">'Q'</span><span style="color: #339933;">:</span>
                <span style="color: #666666; font-style: italic;">// Si se pulsa la tecla q sale del programa</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;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</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: #000000; font-weight: bold;">default</span><span style="color: #339933;">:</span>
                <span style="color: #666666; font-style: italic;">// Por defecto no hace nada</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Método para pintar el tablero de juego.
     * Deberá hacer uso del método pintarCuadradoTablero para pintarlo
     * EL CÓDIGO QUE SE PROPORCIONA ES SÓLO UN EJEMPLO, YA QUE ESTE MÉTODO DEBERÁ
     * SER ESCRITO POR COMPLETO POR EL ALUMNO PARA REALIZAR LAS CUESTIONES
     * QUE SE PLANTEAN EN LA PRÁCTICA 3
     */</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> pintarTablero<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #666666; font-style: italic;">// Ejemplo que rellena cada cuadrado del tablero con un tipo de casilla aleatoria</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> ALTO<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: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> j<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> j<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>ANCHO<span style="color: #339933;">;</span> j<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                TipoCasilla tipoCasilla <span style="color: #339933;">=</span> obtenerTipoCasillaAleatoria<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                pintarCuadradoTablero<span style="color: #009900;">&#40;</span>j, i, tipoCasilla<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// Ejemplo que incrementa los pasos un valor de 10</span>
        <span style="color: #000066; font-weight: bold;">int</span> pasos <span style="color: #339933;">=</span> obtenerPasos<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        pasos <span style="color: #339933;">+=</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span>
        establecerPasos<span style="color: #009900;">&#40;</span>pasos<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Método auxiliar de ejemplo para obtener un tipo de casilla aleatoria
     * ESTE MÉTODO PUEDE SER ELIMINADO POR EL ALUMNO, ES SÓLO UN EJEMPLO
     */</span>
    <span style="color: #000000; font-weight: bold;">private</span> TipoCasilla obtenerTipoCasillaAleatoria<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    	<span style="color: #666666; font-style: italic;">// Genera un número aleatorio entre 0 y 6</span>
        <span style="color: #000066; font-weight: bold;">int</span> tipoCasilla <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amath+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Math</span></a>.<span style="color: #006633;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        TipoCasilla t<span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">switch</span><span style="color: #009900;">&#40;</span>tipoCasilla<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">:</span>
                t <span style="color: #339933;">=</span> TipoCasilla.<span style="color: #006633;">VACIA</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span>
            	t <span style="color: #339933;">=</span> TipoCasilla.<span style="color: #006633;">CAJA</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span>
            	t <span style="color: #339933;">=</span> TipoCasilla.<span style="color: #006633;">JUGADOR</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span>
            	t <span style="color: #339933;">=</span> TipoCasilla.<span style="color: #006633;">MURO</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span>
            	t <span style="color: #339933;">=</span> TipoCasilla.<span style="color: #006633;">DESTINO</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span>
            	t <span style="color: #339933;">=</span> TipoCasilla.<span style="color: #006633;">CAJA_SOBRE_DESTINO</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">default</span><span style="color: #339933;">:</span>
            	t <span style="color: #339933;">=</span> TipoCasilla.<span style="color: #006633;">JUGADOR_SOBRE_DESTINO</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">return</span> t<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>
<p>________________________________________________________________________________________</p>
<p>Gracias.</p>
<p>Saludos.
</p></description>
		</item>
		<item>
			<title>Torres on "Duda Mysql"</title>
			<link>http://www.dudasprogramacion.com/topic/duda-mysql#post-1002</link>
			<pubDate>Mon, 12 Dec 2011 08:42:44 +0000</pubDate>
			<dc:creator>Torres</dc:creator>
			<guid isPermaLink="false">1002@http://www.dudasprogramacion.com/</guid>
			<description><p>Buenas,</p>
<p>Si lo que quieres que se haga al insertar una nueva Celda es algo relacionado con Base de Datos, deberías de utilizar un Trigger. </p>
<p><a href="http://es.wikipedia.org/wiki/Trigger_(base_de_datos)" rel="nofollow">http://es.wikipedia.org/wiki/Trigger_(base_de_datos)</a></p>
<p>Si no, siempre puede ejecutar ese código tras la inserción en BD, si todo ha ido correctamente, o la inserción en Base de Datos no la gestionas desde código?</p>
<p>Un saludo
</p></description>
		</item>
		<item>
			<title>gowLuis on "Duda Mysql"</title>
			<link>http://www.dudasprogramacion.com/topic/duda-mysql#post-1001</link>
			<pubDate>Fri, 09 Dec 2011 20:34:50 +0000</pubDate>
			<dc:creator>gowLuis</dc:creator>
			<guid isPermaLink="false">1001@http://www.dudasprogramacion.com/</guid>
			<description><p>Bueno es la primera vez que comento una pregunta pero no he conseguido la solución a mi problema, les comentare.</p>
<p>La verdad es que no se si se pueda pero segun yo si, ya que para mi todo en la programación se puede.</p>
<p>Alguien sabe de alguna forma para que se este ejecutando un codigo (o metodo) en java cuando ocurra algún cambio en la base de datos? por así decirlo cada vez que se inserte una nueva Celda a una tabla que este mande una notificación y ejecute otro codigo para hacer X cosa?
</p></description>
		</item>
		<item>
			<title>webdamage on "time clock Keico fingerpass mod fpc-301"</title>
			<link>http://www.dudasprogramacion.com/topic/time-clock-keico-fingerpass-mod-fpc-301#post-992</link>
			<pubDate>Tue, 15 Nov 2011 13:13:57 +0000</pubDate>
			<dc:creator>webdamage</dc:creator>
			<guid isPermaLink="false">992@http://www.dudasprogramacion.com/</guid>
			<description><p>hello<br />
I have a problem with a biometric time clock<br />
Keico brand fingerpass mod fpc-301, I have to develop a java application that communicates with the clock by a com-server and I have the SDK for biometric clock model,<br />
if someone can help me thanks<br />
all suggestions are coming<br />
from already thank you very much
</p></description>
		</item>
		<item>
			<title>lineadecodigo on "Creacion de aplicacion en java"</title>
			<link>http://www.dudasprogramacion.com/topic/creacion-de-aplicacion-en-java#post-988</link>
			<pubDate>Mon, 07 Nov 2011 15:29:49 +0000</pubDate>
			<dc:creator>lineadecodigo</dc:creator>
			<guid isPermaLink="false">988@http://www.dudasprogramacion.com/</guid>
			<description><p>@pequis23,</p>
<p>Buenas, te adjunto un par de ejemplos para ordenar Vectores que espero te sirvan.</p>
<p><a href="http://lineadecodigo.com/java/ordenar-un-vector-de-string-en-java/" rel="nofollow">http://lineadecodigo.com/java/ordenar-un-vector-de-string-en-java/</a><br />
<a href="http://lineadecodigo.com/java/ordenar-un-vector-de-forma-alfabetica-con-java/" rel="nofollow">http://lineadecodigo.com/java/ordenar-un-vector-de-forma-alfabetica-con-java/</a>
</p></description>
		</item>
		<item>
			<title>pequis23 on "Creacion de aplicacion en java"</title>
			<link>http://www.dudasprogramacion.com/topic/creacion-de-aplicacion-en-java#post-981</link>
			<pubDate>Mon, 24 Oct 2011 21:35:16 +0000</pubDate>
			<dc:creator>pequis23</dc:creator>
			<guid isPermaLink="false">981@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola, buenas tardes tengo una duda sobre la creacion de una aplicacion en java dada la siguiente matriz para ordenar las filas en funcion de los apellidos, agradeceria mucho su ayuda sobre este tema,..<br />
0758963214	Jose	Burneo<br />
1785479632	Maria	Abad<br />
1754821647	Juan	Rivas<br />
1106987951	Diego	Castillo</p>
<p>Es decir debo ejecutar el algoritmo de ordenamiento de la matriz y debería quedar asi,..</p>
<p>1785479632	Maria	Abad<br />
0758963214	Jose	Burneo<br />
1106987951	Diego	Castillo<br />
1754821647	Juan	Rivas
</p></description>
		</item>
		<item>
			<title>durasno on "warning usando f.show()"</title>
			<link>http://www.dudasprogramacion.com/topic/warning-usando-fshow#post-950</link>
			<pubDate>Wed, 08 Jun 2011 19:47:18 +0000</pubDate>
			<dc:creator>durasno</dc:creator>
			<guid isPermaLink="false">950@http://www.dudasprogramacion.com/</guid>
			<description><p>hola! hace poco empece con java y compilando unos ejemplos me encontre con uno que utiliza f.show al final del codigo. Lo que hace la aplicacion es imprimir "hola desde java" en una ventana. Bueno mi problema con el f.show() es que este fue censurado y se deberia usar otro pero no se por cual reemplazarlo, me prodrian decir por cual reemplazarlo?? asi al compilar me deja de tirar warning.. les dejo el codigo<br />
Saludos</p>
<p>import java.awt.*;<br />
import java.awt.event.*;</p>
<p>class AppFrame extends Frame {<br />
	public void paint(Graphics g)<br />
	{<br />
		g.drawString("Hola desde Java", 60, 100);<br />
	}<br />
}<br />
public class ventana {<br />
	public static void main (String[] args) {<br />
		AppFrame f = new AppFrame();<br />
		f.setSize(200, 200);<br />
		f.addWindowListener(new WindowAdapter() {public void<br />
			windowClosing(WindowEvent e) {System.exit(0);}});</p>
<p>			f.show();<br />
			}<br />
}
</p></description>
		</item>
		<item>
			<title>domialex on "Ayuda con arreglo en Java"</title>
			<link>http://www.dudasprogramacion.com/topic/ayuda-con-arreglo-en-java#post-948</link>
			<pubDate>Sat, 04 Jun 2011 02:55:25 +0000</pubDate>
			<dc:creator>domialex</dc:creator>
			<guid isPermaLink="false">948@http://www.dudasprogramacion.com/</guid>
			<description><p>Buenas noches, necesito que al seleccionar ASCENDENTE se muestre el vector ordenado y al seleccionar DESCENDENTE cambie a ese orden pero no se como colocar los metodos de la burbuja para que se muestren en el TextTarea.</p>
<p>Codigo:</p>
<pre class="java" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.event.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.applet.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.*</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> Taller1 <span style="color: #000000; font-weight: bold;">extends</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aapplet+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Applet</span></a> <span style="color: #000000; font-weight: bold;">implements</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aactionlistener+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">ActionListener</span></a><span style="color: #009900;">&#123;</span>
&nbsp;
	<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ajbutton+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JButton</span></a>		ba,bm<span style="color: #339933;">;</span>
	<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Alabel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Label</span></a>		l1,lv1<span style="color: #339933;">;</span>
	<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Atextfield+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">TextField</span></a>	t1<span style="color: #339933;">;</span>
	<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Atextarea+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">TextArea</span></a>	ta<span style="color: #339933;">;</span>
	<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Apanel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Panel</span></a>		p1, p2, p3,p4,p5<span style="color: #339933;">;</span>
	<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Achoice+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Choice</span></a> Selector<span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">int</span> a<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <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;">3</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</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>
	<span style="color: #000066; font-weight: bold;">int</span> contba <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">int</span> buffer<span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">int</span> a1<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">int</span> j<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> burbuja<span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> Taller1<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
		setLayout<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aflowlayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">FlowLayout</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		p1	<span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Apanel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Panel</span></a><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Agridlayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">GridLayout</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">10</span>,<span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		p2	<span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Apanel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Panel</span></a><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Agridlayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">GridLayout</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">2</span>,<span style="color: #cc66cc;">10</span>,<span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		p3  <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Apanel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Panel</span></a><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Agridlayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">GridLayout</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">10</span>,<span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		p4  <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Apanel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Panel</span></a><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aborderlayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">BorderLayout</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		p5  <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Apanel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Panel</span></a><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aborderlayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">BorderLayout</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		ba	<span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ajbutton+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JButton</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;AGREGAR&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		bm	<span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ajbutton+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JButton</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;MOSTRAR&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		Selector	<span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Achoice+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Choice</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        Selector.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;ORDEN&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        Selector.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;ASCENDENTE&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        Selector.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;DESCENDENTE&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		lv1 <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Alabel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Label</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		t1  <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Atextfield+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">TextField</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		ta	<span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Atextarea+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">TextArea</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		ta.<span style="color: #006633;">setEditable</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		l1  <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Alabel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Label</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Numero&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		p1.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>l1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		p1.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>t1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		p2.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>lv1,<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aborderlayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">BorderLayout</span></a>.<span style="color: #006633;">NORTH</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		p2.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>p1,<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aborderlayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">BorderLayout</span></a>.<span style="color: #006633;">CENTER</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		p2.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>Selector,<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aborderlayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">BorderLayout</span></a>.<span style="color: #006633;">SOUTH</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		p3.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>ba<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		p3.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>bm<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		p4.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>ta,<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aborderlayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">BorderLayout</span></a>.<span style="color: #006633;">NORTH</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		p4.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>p3,<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aborderlayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">BorderLayout</span></a>.<span style="color: #006633;">SOUTH</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		p5.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>p2,<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aborderlayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">BorderLayout</span></a>.<span style="color: #006633;">NORTH</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		p5.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>p4,<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aborderlayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">BorderLayout</span></a>.<span style="color: #006633;">SOUTH</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		add<span style="color: #009900;">&#40;</span>p5<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		ba.<span style="color: #006633;">addActionListener</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		bm.<span style="color: #006633;">addActionListener</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<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> actionPerformed<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aactionevent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">ActionEvent</span></a> evento<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>evento.<span style="color: #006633;">getSource</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> ba<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">try</span><span style="color: #009900;">&#123;</span>
				a<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ainteger+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Integer</span></a>.<span style="color: #006633;">parseInt</span><span style="color: #009900;">&#40;</span>t1.<span style="color: #006633;">getText</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				contba<span style="color: #339933;">++;</span>
				t1.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</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: #000000; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Anumberformatexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">NumberFormatException</span></a> nfe<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<a href="http://www.google.com/search?hl=en&amp;q=allinurl%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;DEBE INGRESAR NUMEROS&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				i<span style="color: #339933;">--;</span>
				t1.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</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: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>contba<span style="color: #339933;">==</span><span style="color: #cc66cc;">3</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;NO SE PUEDE INGRESAR MAS DATOS&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                t1.<span style="color: #006633;">setEnabled</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                ba.<span style="color: #006633;">setEnabled</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>evento.<span style="color: #006633;">getSource</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span>bm<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		ta.<span style="color: #006633;">setText</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: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> k<span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> k <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> a.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> k<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				ta.<span style="color: #006633;">append</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;    &quot;</span><span style="color: #339933;">+</span>a<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</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: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</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> a.<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>
	<span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>j <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> j <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> i<span style="color: #339933;">;</span> j<span style="color: #339933;">++</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>a<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> a<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	buffer <span style="color: #339933;">=</span> a<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	a<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> a<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	a<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> buffer<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>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">boolean</span> action<span style="color: #009900;">&#40;</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aevent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Event</span></a> evt,<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> obj <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> evt.<span style="color: #006633;">target</span> <span style="color: #000000; font-weight: bold;">instanceof</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Achoice+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Choice</span></a> <span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#123;</span>
            burbuja <span style="color: #339933;">=</span> <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;">&#41;</span>obj<span style="color: #339933;">;</span>
&nbsp;
            repaint<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> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></description>
		</item>
		<item>
			<title>lineadecodigo on "Palabras que mas se repiten en un texto txt"</title>
			<link>http://www.dudasprogramacion.com/topic/palabras-que-mas-se-repiten-en-un-texto-txt#post-943</link>
			<pubDate>Thu, 26 May 2011 00:26:08 +0000</pubDate>
			<dc:creator>lineadecodigo</dc:creator>
			<guid isPermaLink="false">943@http://www.dudasprogramacion.com/</guid>
			<description><p>@NAEDH,</p>
<p>El código para encontrar la palabra más larga de una frase lo tienes en<br />
<a href="http://lineadecodigo.com/java/java-y-la-palabra-mas-larga-de-una-frase/" rel="nofollow">http://lineadecodigo.com/java/java-y-la-palabra-mas-larga-de-una-frase/</a></p>
<p>Y para un contador de ocurrencias de una frase en<br />
<a href="http://lineadecodigo.com/java/contador-de-ocurrencias-en-java/" rel="nofollow">http://lineadecodigo.com/java/contador-de-ocurrencias-en-java/</a></p>
<p>Espero que puedan orientarte.
</p></description>
		</item>
		<item>
			<title>NAEDH on "Palabras que mas se repiten en un texto txt"</title>
			<link>http://www.dudasprogramacion.com/topic/palabras-que-mas-se-repiten-en-un-texto-txt#post-938</link>
			<pubDate>Wed, 25 May 2011 06:01:27 +0000</pubDate>
			<dc:creator>NAEDH</dc:creator>
			<guid isPermaLink="false">938@http://www.dudasprogramacion.com/</guid>
			<description><p>buenas noches , usuarios del foro.<br />
Porfavor ayuda<br />
Deseo saber como hago que me imprima en el panel  la palabra que más se repite, y a su vez que menos se repite<br />
Esta es la captura de pantalla en donde deberia sali el resultado<br />
despues de dar clip en el boton<br />
<a href="http://s3.subirimagenes.com:81/otros/previo/thump_6446135javaa.jpg" rel="nofollow">http://s3.subirimagenes.com:81/otros/previo/thump_6446135javaa.jpg</a><br />
y este es el codigo que tengo con el cual me sale el numero de palabaras de letras y la palabra mas corta y laraga<br />
lo que me hace falata es la palabara que mas se repite como la que menos se repite<br />
ayuda porfavor</p>
<pre class="java" style="font-family:monospace;">&nbsp;
   <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">jTextField1</span>.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span>AVISUALApp.<span style="color: #006633;">titulo2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> texto<span style="color: #339933;">=</span>AVISUALApp.<span style="color: #006633;">texto</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">int</span> npalabras<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">int</span> nletras<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
        nletras<span style="color: #339933;">=</span>texto.<span style="color: #006633;">length</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%3Astringtokenizer+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">StringTokenizer</span></a> st <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astringtokenizer+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">StringTokenizer</span></a><span style="color: #009900;">&#40;</span>texto<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        npalabras<span style="color: #339933;">=</span>st.<span style="color: #006633;">countTokens</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%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> palabra,maslarga,mayor<span style="color: #339933;">;</span>
        maslarga<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
        mayor<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>st.<span style="color: #006633;">hasMoreTokens</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>
		   palabra<span style="color: #339933;">=</span>st.<span style="color: #006633;">nextToken</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>palabra.<span style="color: #006633;">length</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</span>maslarga.<span style="color: #006633;">length</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>
                            maslarga<span style="color: #339933;">=</span> palabra<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>palabra.<span style="color: #006633;">compareTo</span><span style="color: #009900;">&#40;</span>mayor<span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                       mayor<span style="color: #339933;">=</span> palabra<span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
        Map<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>String,Integer<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">62</span><span style="color: #339933;">;</span> palabrasYOcurrencias <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ahashmap+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">HashMap</span></a><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>st.<span style="color: #006633;">hasMoreTokens</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>
            palabra <span style="color: #339933;">=</span> st.<span style="color: #006633;">nextToken</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">int</span> ocurrencias <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>palabrasYOcurrencias.<span style="color: #006633;">containsKey</span><span style="color: #009900;">&#40;</span>palabra<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                ocurrencias <span style="color: #339933;">=</span> palabrasYOcurrencias.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>palabra<span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            palabrasYOcurrencias.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span>palabra,ocurrencias<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000066; font-weight: bold;">int</span> val1<span style="color: #339933;">=</span>palabrasYOcurrencias.<span style="color: #006633;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #666666; font-style: italic;">//String masrepetida=palabrasYOcurrencias.</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">jTextField2</span>.<span style="color: #006633;">setText</span><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: #006633;">valueOf</span><span style="color: #009900;">&#40;</span>npalabras<span style="color: #009900;">&#41;</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;">jTextField3</span>.<span style="color: #006633;">setText</span><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: #006633;">valueOf</span><span style="color: #009900;">&#40;</span>nletras<span style="color: #009900;">&#41;</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;">jTextField4</span>.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span>maslarga<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">jTextField5</span>.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span>mayor<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>                                    
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
    * @param args the command line arguments
    */</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> args<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        java.<span style="color: #006633;">awt</span>.<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aeventqueue+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">EventQueue</span></a>.<span style="color: #006633;">invokeLater</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Arunnable+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Runnable</span></a><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;">public</span> <span style="color: #000066; font-weight: bold;">void</span> run<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;">new</span> ESTADISTICAS<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">setVisible</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">true</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;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span></pre></description>
		</item>
		<item>
			<title>imirizaldu on "Ayuda con un problema de la univerisad"</title>
			<link>http://www.dudasprogramacion.com/topic/ayuda-con-un-problema-de-la-univerisad#post-898</link>
			<pubDate>Thu, 10 Mar 2011 19:37:28 +0000</pubDate>
			<dc:creator>imirizaldu</dc:creator>
			<guid isPermaLink="false">898@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola, empece este cuatrimeste la asignatura de programacion y no sy mui bueno y tal vez me puedan ayudar a resolver este ejercicio, mas o menos e echo lagunas preguntas pero la ultima no la consigo hacer<br />
PREGUNTA: Realiza un método que cambie al azar la posición en la que se encuentra el móvil a un punto de coordenadas enteras entre 0 y 9.<br />
les enseño lo que tengo echo y basen se en eso</p>
<p>/**<br />
 *<br />
 * @author ()<br />
 * @version ()<br />
 */</p>
<p>public class Movil<br />
{<br />
    /** Coordenada x del móvil*/<br />
    private double x;</p>
<p>    /** Coordenada y del móvil*/<br />
    private double y;</p>
<p>    /**Coordenada x del vector de velocidad*/<br />
    private double vx;</p>
<p>    /**Coordenada y del vector de velocidad*/<br />
    private double vy;</p>
<p>    /**<br />
     * Constructor por defecto de Movil.<br />
     * El móvil se sitúa en el origen de coordenadas y el<br />
     * vector de velocidad es el (1,1)<br />
     */<br />
    public Movil()<br />
    {<br />
        x = 0;<br />
        y = 0;<br />
        vx = 1;<br />
        vy = 1;<br />
    }<br />
    /**<br />
     * Constructor que tiene como argumento dos reales con cordenadas (x,y)<br />
     * del móvil. El vector velocidad tendrá el valor de (1,1)<br />
     */<br />
    public Movil(double x, double y)<br />
    {<br />
       vx = 1;<br />
       vy = 1;<br />
    }<br />
    /**<br />
     * Constructor con cuatro argumentos de tipo real. Los dos primeros representa<br />
     * la posición del móvil y los dos segundos su vector velocidad.<br />
     */<br />
    public Movil(double a, double b, double va, double vb)<br />
    {<br />
    }<br />
     /**<br />
     * Modifica la coordenada x del vector velocidad.<br />
     * @param nvx nueva coordenada x del vector velocidad<br />
     */<br />
    public void setVx(double nvx)<br />
    {<br />
        vx = nvx;<br />
    }</p>
<p>    /**<br />
     * Modifica la coordenada y del vector velocidad.<br />
     * @param nvy nueva coordenada y del vector velocidad<br />
     */<br />
    public void setVy(double nvy)<br />
    {<br />
        vy = nvy;<br />
    }</p>
<p>    /**<br />
     * Mueve el móvil según el sentido de la velocidad<br />
     */<br />
    public void mover()<br />
    {<br />
        x += vx;<br />
        y += vy;<br />
    }</p>
<p>    /**<br />
     * Retorna cierto si el móvil está parado, esto es, si el vector<br />
     * de velocidad es nulo.<br />
     * @return cierto si el vector de velocidad es nulo.<br />
     */<br />
    public boolean estaParado()<br />
    {<br />
        if ((vx == 0) &#38;&#38; (vy == 0)) {<br />
            return true;<br />
        } else {<br />
            return false;<br />
        }<br />
    }</p>
<p>    /**<br />
     * Modifica el vector velocidad 90 grados.<br />
     */<br />
    public void girar90()<br />
    {<br />
        double avx = vx;<br />
        double avy = vy;<br />
        vy = avx;<br />
        vx = -avy;<br />
    }</p>
<p>    /**<br />
     * Modifica el vector velocidad 180 grados.<br />
     */<br />
    public void girar180()<br />
    {<br />
        girar90();<br />
        girar90();<br />
    }</p>
<p>     /**<br />
     * Retorna cierto si el móvil se encuentra en un<br />
     * rectángulo de dimensiones ancho x alto<br />
     * cuya esquina superior izquierda esta en (xr,yr).<br />
     * @return cierto si está en el rectángulo.<br />
     */<br />
    public boolean estaDentroRectangulo(double xr, double yr,<br />
                                            double ancho, double alto)<br />
    {<br />
        if ((xr &#60; x) &#38;&#38; (x &#60; xr + ancho) &#38;&#38; (yr &#62; y) &#38;&#38; (y &#62; yr -alto)) {<br />
            return true;<br />
        } else {<br />
            return false;<br />
        }<br />
    }<br />
     /**<br />
     * Retorna cierto si el móvil se encuentra en un<br />
     * cuadrado de dimensiones lado x lado<br />
     * cuya esquina superior izquierda esta en (xr,yr).<br />
     * @return cierto si está en el cuadrado.<br />
     */<br />
    public boolean estaDentroCuadrado(double xr, double yr,<br />
                                            double lado)<br />
    {<br />
        boolean esta = estaDentroRectangulo(xr, yr, lado, lado);<br />
        return esta;<br />
    }<br />
    /**<br />
     * Retorna la distancia del móvil al punto (xr,yr)<br />
     */<br />
   public double hallarDistancia(double xr, double yr)<br />
   {<br />
       double distancia = Math.hypot(x - xr, y = yr);<br />
       return distancia;<br />
    }<br />
   /**<br />
     * método que cambia al azar la posición en la que se encuentra el móvil a<br />
     * un punto de coordenadas enteras entre 0 y 9.<br />
    */
</p></description>
		</item>
		<item>
			<title>rick_korn on "Spring y java Swing"</title>
			<link>http://www.dudasprogramacion.com/topic/spring-y-java-swing#post-882</link>
			<pubDate>Mon, 21 Feb 2011 20:21:30 +0000</pubDate>
			<dc:creator>rick_korn</dc:creator>
			<guid isPermaLink="false">882@http://www.dudasprogramacion.com/</guid>
			<description><p>he amigos encontre un blog, donde configura el framework spring con java swing<br />
aqui esta la direccion<br />
<a href="http://mpdeveloper.blogspot.com/2011/02/swing-y-spring-dao.html" rel="nofollow">http://mpdeveloper.blogspot.com/2011/02/swing-y-spring-dao.html</a>
</p></description>
		</item>
		<item>
			<title>Torres on "Escribir por pantalla en columnas.(Java)"</title>
			<link>http://www.dudasprogramacion.com/topic/escribir-por-pantalla-en-columnasjava#post-859</link>
			<pubDate>Mon, 24 Jan 2011 10:03:06 +0000</pubDate>
			<dc:creator>Torres</dc:creator>
			<guid isPermaLink="false">859@http://www.dudasprogramacion.com/</guid>
			<description><p>Buenas,</p>
<p>Formateando la salida con printf conseguirás lo que buscas creo yo:</p>
<p><a href="http://www.java2s.com/Tutorial/Java/0120__Development/printftocommandlinesummary.htm" rel="nofollow">http://www.java2s.com/Tutorial/Java/0120__Development/printftocommandlinesummary.htm</a></p>
<pre class="java" style="font-family:monospace;">&nbsp;
&nbsp;
		<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> titulo <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Leyendas de España&quot;</span><span style="color: #339933;">;</span>
		<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> nombre <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;AUGUSTO GALLEGO BERNARDEZ&quot;</span><span style="color: #339933;">;</span>
		<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> fecha <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;09/12/2010&quot;</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;">printf</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;%-30s<span style="color: #000099; font-weight: bold;">\t</span>  %-30s<span style="color: #000099; font-weight: bold;">\t</span>  %-10s<span style="color: #000099; font-weight: bold;">\t</span>%n&quot;</span>, titulo, nombre, fecha  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		titulo <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;La balada del café triste&quot;</span><span style="color: #339933;">;</span>
		nombre <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;JUAN IGNACIO SISAMON OLIVITO&quot;</span><span style="color: #339933;">;</span>
		fecha <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;10/12/2010&quot;</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;">printf</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;%-30s<span style="color: #000099; font-weight: bold;">\t</span>  %-30s<span style="color: #000099; font-weight: bold;">\t</span>  %-10s<span style="color: #000099; font-weight: bold;">\t</span>%n&quot;</span>, titulo, nombre, fecha  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;</pre>
<p>Un saludo
</p></description>
		</item>
		<item>
			<title>elseine on "Escribir por pantalla en columnas.(Java)"</title>
			<link>http://www.dudasprogramacion.com/topic/escribir-por-pantalla-en-columnasjava#post-858</link>
			<pubDate>Fri, 21 Jan 2011 10:56:32 +0000</pubDate>
			<dc:creator>elseine</dc:creator>
			<guid isPermaLink="false">858@http://www.dudasprogramacion.com/</guid>
			<description><p>Buenas. Queria preguntaros una cosa, vereis: estoy trabajando con ficheros de texto y binarios, y he hecho un metodo de mostrar la informacion en pantalla, pero solo el nombre y el codigo de cada objeto del texto. Mi duda es:¿Como puedo hacer que ambos me salgan en dos columnas rectas? Es que ahora lo hago, y me lo escribe por pantalla, pero como cada nombre tiene longitud diferente, el codigo que viene despues me lo escribe a unos espacios determinados, pero no coinciden con el siguiente, mirad.</p>
<p>Leyendas de España          AUGUSTO GALLEGO BERNARDEZ           9/12/2010<br />
La balada del café triste       JUAN IGNACIO SISAMON OLIVITO          10/12/2010</p>
<p>Eso es lo que me pasa, y yo quiero que quedwe asi:<br />
Leyendas de España              AUGUSTO GALLEGO BERNARDEZ             9/12/2010<br />
La balada del café triste       JUAN IGNACIO SISAMON OLIVITO          10/12/2010</p>
<p>Si sabeis como, os lo agradeceria^^<br />
PD: vale, no me lo ha puesto como yo queria, pero lo que yo quiero es que ambas lineas empiezen en el mismo sitio, no una antes y otra mas tarde.
</p></description>
		</item>
		<item>
			<title>j0se on "ayuda con sudoku para java"</title>
			<link>http://www.dudasprogramacion.com/topic/ayuda-con-sudoku-para-java#post-832</link>
			<pubDate>Tue, 14 Dec 2010 17:48:10 +0000</pubDate>
			<dc:creator>j0se</dc:creator>
			<guid isPermaLink="false">832@http://www.dudasprogramacion.com/</guid>
			<description><p>Perfecto eso era lo q estaba buscando ,gracias Torres y perdona por la explicacion q ya se q me lie un poco
</p></description>
		</item>

	</channel>
</rss>

