<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4580467758963028053</id><updated>2011-11-28T14:58:59.442-06:00</updated><category term='primer programa'/><category term='Double'/><category term='slp'/><category term='hugs'/><category term='path'/><category term='aprender java'/><category term='java 5'/><category term='parametros'/><category term='coche'/><category term='Integer'/><category term='chevrolet'/><category term='textpad'/><category term='metodos'/><category term='compilar.'/><category term='7'/><category term='magnacharger'/><category term='electrico'/><category term='camaro'/><category term='gm'/><category term='static void main'/><category term='hardy'/><category term='pointers'/><category term='compilador'/><category term='principiantes'/><category term='hibrido'/><category term='haskell'/><category term='windows'/><category term='hardy heron'/><category term='referencia'/><category term='guia'/><category term='instalar'/><category term='compilar java'/><category term='codigo'/><category term='gutsy gibbon'/><category term='wrapper'/><category term='supercargado'/><category term='volt'/><category term='seven'/><category term='java'/><category term='jre'/><category term='jdk'/><category term='paso'/><category term='bumblebee'/><category term='random'/><category term='tutorial'/><category term='heron'/><category term='hybrid'/><category term='transformers'/><category term='2010'/><category term='refresh'/><category term='correr java'/><category term='apuntadores'/><category term='supercharged'/><category term='netbeans'/><category term='como'/><category term='jse'/><category term='curso'/><category term='java 6'/><category term='valor'/><category term='instalacion'/><category term='grand sport'/><category term='Long'/><category term='funciones'/><category term='corvette'/><category term='métodos'/><category term='nuevo'/><category term='que es un metodo'/><category term='referencias'/><category term='street legal performace'/><category term='novatos'/><category term='funciones java'/><category term='parametros.'/><category term='hola mundo'/><category term='ubuntu'/><category term='gustavo villegas'/><title type='text'>GuSitio</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4580467758963028053.post-8203162249887901739</id><published>2011-02-08T18:41:00.000-06:00</published><updated>2011-02-08T18:41:39.661-06:00</updated><title type='text'>Un año diferente</title><content type='html'>Después de un año de un escribir nada en este solitario y abandonado blog, he decidido que lo retomaré, espero que está vez si sea cierto, escribiré lo que sienta lo que piense, o de lo que tenga ganas de publicar.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4580467758963028053-8203162249887901739?l=gusitio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/8203162249887901739/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://gusitio.blogspot.com/2011/02/un-ano-diferente.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/8203162249887901739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/8203162249887901739'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/2011/02/un-ano-diferente.html' title='Un año diferente'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4580467758963028053.post-908230276477634599</id><published>2009-11-18T16:39:00.002-06:00</published><updated>2009-11-18T16:46:00.909-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='seven'/><category scheme='http://www.blogger.com/atom/ns#' term='haskell'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='hugs'/><category scheme='http://www.blogger.com/atom/ns#' term='7'/><title type='text'>¿Cómo Instalar Hugs en Windows Seven?</title><content type='html'>Hace unos días cuándo me disponía a instalar Hugs, un intérprete de Haskell en mi Compu con Windows Seven, me encontré con que al estar corriendo la instalación marcaba un error al ejecutarse el asistente y la instalación no concluía, para resolver esto lo único que tuve que hacer fue dar Click Derecho al Icono del Instalador (el cuál se puede descargar de aquí: &lt;a href="http://cvs.haskell.org/Hugs/pages/downloading.htm"&gt;http://cvs.haskell.org/Hugs/pages/downloading.htm&lt;/a&gt;) Properties y luego en la pestaña de Compatibility, seleccione la opción de Run in Compatibility Mode, y seleccione la opción de Windows XP (Service Pack 2), haces click en OK, y ejecutas de nuevo el asistente y la instalación debe concluir sin ningún problema.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Saludos&lt;/div&gt;&lt;div&gt;Gus&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4580467758963028053-908230276477634599?l=gusitio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/908230276477634599/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://gusitio.blogspot.com/2009/11/como-instalar-hugs-en-windows-seven.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/908230276477634599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/908230276477634599'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/2009/11/como-instalar-hugs-en-windows-seven.html' title='¿Cómo Instalar Hugs en Windows Seven?'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4580467758963028053.post-8948532937548517919</id><published>2009-08-11T19:26:00.003-05:00</published><updated>2009-08-11T20:01:01.453-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hibrido'/><category scheme='http://www.blogger.com/atom/ns#' term='coche'/><category scheme='http://www.blogger.com/atom/ns#' term='volt'/><category scheme='http://www.blogger.com/atom/ns#' term='gm'/><category scheme='http://www.blogger.com/atom/ns#' term='electrico'/><category scheme='http://www.blogger.com/atom/ns#' term='chevrolet'/><category scheme='http://www.blogger.com/atom/ns#' term='hybrid'/><title type='text'>GM: Volt 98 km/litro</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_uO9VG6Lce-s/SoIURBZqY3I/AAAAAAAAAC4/aEpwTFXx5Pc/s1600-h/gm_volt_6.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5368875988445455218" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 400px; CURSOR: hand; HEIGHT: 246px" alt="" src="http://3.bp.blogspot.com/_uO9VG6Lce-s/SoIURBZqY3I/AAAAAAAAAC4/aEpwTFXx5Pc/s400/gm_volt_6.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div align="justify"&gt;Chevrolet recientemente anunció el 11 de Agosto su nuevo modelo, el Chevrolet Volt. El nuevo vehículo eléctrico de GM, según una prueba realizada con las directrices de la EPA, promete dar un rendimiento de 230 mpg (aprox. 98 km/litro, un Chevy 1.4 da alrededor de 18 km/lt), este nuevo vehículo da sin duda un mucho mejor rendimiento de Gasolina que Toyota Prius.&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;El Volt, a pesar de ser un vehículo electrico, no es considerado un Híbrido ya que a diferencia de un coche Híbrido en el cual el motor un motor eléctrico es usado para mover el coche en bajas velocidades y a medida que la velocidad va incrementado un motor de gasolina entra en funcionamiento para mover el Vehículo, el Motor del GM Volt es un Motor Eléctrico que es usado para mover completamente el coche, y de acuerdo a la información brindada por GM, el GM Volt cuenta con 160 Hp y tiene una velocidad límite de 160 km/h. Sin embargo el Volt, cuenta con un Motor de gasolina más pequeño y que no se encuentra conectado a las llantas, sino que su única función es cargar el motor eléctrico cuando este requiera de una carga adicional. La batería del Coche se carga utilizando la corriente elétrica de 128v en un periodo de 6 horas y a pesar de que el recibo eléctrico aumentará, los ingenieros de GM claman que será mucho más barato que un Vehículo de Gasolina.&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;Entre las mayores ventajas del Volt es que permite viajar a más de de 70 km/h sin tener que usar un sólo litro de Gasolina y de acuerdo a un estudio realizado el 78% de la población viaja a en promedio a una velocidad menor a 70km/h. Y en caso de requerir viajar un poco más velocidad el Motor Eléctrico respondera perfectamente ya que provee un buen torque y en caso de que la batería se comience a terminar, el Vehículo cuenta con el Motor de Gasolina que servirá como Generador Eléctrico de Emergencia, permitiendo al Volt viajar y andar por la ciudad perfectamente en bajas velocidades y en caso de requerirlo aumentar la velocidad.&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;Actualmente la GM ha fabricado 30 Volts y se están produciendo 10 a la semana y se espera que el Volt este disponible a finales del año 2010. Y será una gran opción para quienes no quieren gastar en gasolina y además tener un cuidado muy importante por el medio ambiente.&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;Más Información:&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;a href="http://gm-volt.com/about/"&gt;http://gm-volt.com/about/&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;object height="313" width="384"&gt;&lt;param name="movie" value="http://www.youtube.com/v/G7NC0v1qb40&amp;amp;hl=es&amp;amp;fs=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;br /&gt;&lt;embed src="http://www.youtube.com/v/G7NC0v1qb40&amp;hl=es&amp;fs=1" type="application/x-shockwave-flash" width="384" height="313" allowscriptaccess="always" allowfullscreen="true"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4580467758963028053-8948532937548517919?l=gusitio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/8948532937548517919/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://gusitio.blogspot.com/2009/08/gm-volt-98-kmlitro.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/8948532937548517919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/8948532937548517919'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/2009/08/gm-volt-98-kmlitro.html' title='GM: Volt 98 km/litro'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_uO9VG6Lce-s/SoIURBZqY3I/AAAAAAAAAC4/aEpwTFXx5Pc/s72-c/gm_volt_6.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4580467758963028053.post-2978679344613412407</id><published>2009-08-07T01:18:00.013-05:00</published><updated>2009-08-07T02:19:00.452-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='camaro'/><category scheme='http://www.blogger.com/atom/ns#' term='2010'/><category scheme='http://www.blogger.com/atom/ns#' term='slp'/><category scheme='http://www.blogger.com/atom/ns#' term='magnacharger'/><category scheme='http://www.blogger.com/atom/ns#' term='supercharged'/><category scheme='http://www.blogger.com/atom/ns#' term='street legal performace'/><category scheme='http://www.blogger.com/atom/ns#' term='supercargado'/><title type='text'>Camaro 2010 SLP Supercharged</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;img src="http://2.bp.blogspot.com/_uO9VG6Lce-s/SnvNh5YtDqI/AAAAAAAAACw/3A5458ZQYxs/s320/slp2.jpg" style="text-align: justify;float: right; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 10px; cursor: pointer; width: 320px; height: 213px; " border="0" alt="" id="BLOGGER_PHOTO_ID_5367109363165892258" /&gt;&lt;div style="text-align: justify;"&gt;SLP (Street Legal Performance) es una empresa dedicada a la creación de partes que mejoran el desempeño de algunos coches, en particular de los coches "musculosos". Y su ultima &lt;/div&gt;&lt;div style="text-align: justify;"&gt;nueva mejora es un Camaro 2010 Supercargado, el cuál denominaron Camaro 2010 ZL575, que además de contar con un 2300 Series TVS High-Output Supercharger, cuenta con algunos elementos de performance adicionales y aquí les presentó la lista completa:&lt;/div&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;-Un sistema de escape axle-back&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;-Sistema de inducción de aire frio (CAI)&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;-Mejoras en la suspensión, bajándo 1 púlgada adelante y .8 púlgadas atrás&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;-Un cofre estilo Z28, con entrada de aire (Similar al que tiene el Camaro de Transformers)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;-Panel trasero pintado de Negro Mate(Estilo Berger Panel)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;-Emblemas de Z575&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;-Spoiler trasero estilo Camaro 1era generacióon&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;-Emblemas "SS" tradicionales de GM.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;-Rines diferentes con el lip pintado de rojo.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;-Opcional: Cuenta con Clutch ZR1, paso 3.45 y mejora en los frenos brembo.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://4.bp.blogspot.com/_uO9VG6Lce-s/SnvLlp_YX6I/AAAAAAAAACY/XrsdKHhDmvo/s400/slp4.jpg" style="text-align: justify;float: left; margin-top: 0px; margin-right: 10px; margin-bottom: 10px; margin-left: 0px; cursor: pointer; width: 400px; height: 266px; " border="0" alt="" id="BLOGGER_PHOTO_ID_5367107228729368482" /&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Todo esto, generará una potencia de 575 HP, y será una producción limitada realizada por la gente de SLP. Sin duda está es una gran opción para quienes están interesados en un vehículo realmente deportivo, con todas las caracterísicas de un auto americano y será una gran opción para quienes tengan la oportunidad de adquirir este precioso auto.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Más información en:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;a href="http://www.camaro5.com/forums/showthread.php?t=30083"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;http://www.camaro5.com/forums/showthread.php?t=30083&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;a href="http://slpcamaro.com/"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;http://slpcamaro.com/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4580467758963028053-2978679344613412407?l=gusitio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/2978679344613412407/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://gusitio.blogspot.com/2009/08/camaro-2010-slp-supercharged.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/2978679344613412407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/2978679344613412407'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/2009/08/camaro-2010-slp-supercharged.html' title='Camaro 2010 SLP Supercharged'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_uO9VG6Lce-s/SnvNh5YtDqI/AAAAAAAAACw/3A5458ZQYxs/s72-c/slp2.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4580467758963028053.post-2974369720022699518</id><published>2009-08-05T20:05:00.005-05:00</published><updated>2009-08-07T02:18:45.843-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='grand sport'/><category scheme='http://www.blogger.com/atom/ns#' term='2010'/><category scheme='http://www.blogger.com/atom/ns#' term='corvette'/><title type='text'>Corvette 2010 Grand Sport</title><content type='html'>&lt;img src="http://3.bp.blogspot.com/_uO9VG6Lce-s/SnoxpUtl4MI/AAAAAAAAACM/2fBa1DT0dVw/s400/chevrolet-corvette-grand-sport-2010.jpg" style="text-align: justify;float: right; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 10px; cursor: pointer; width: 400px; height: 267px; " border="0" alt="" id="BLOGGER_PHOTO_ID_5366656491969700034" /&gt;&lt;div style="text-align: justify;"&gt;A pesar de que en Chevrolet se vive una gran crisis, no dejan de sacar nuevos modelos, que aunque es muy complicado que los saquen de la crisis por la que están pasando, si sirven para que los fans del American Muscle puedamos seguir disfrutando de más y mejores autos de General Motors.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;El Corvette Grand Sport 2010, contara con un motor LS3 V8, el mismo que fue diseñado para el Corvette 2008 y que es el corazón del nuevo Camaro SS 2010m el motor capaz de generar 430 Caballos al Cigueñal y un torque de 424 lb-ft con un desplazamiento de 376 pulgadas cúbicas (6.2 litros). Además contará con una opción adicional de doble escape el cual agrega unos pocos caballos de potencia y algunas libras adicionales de torque.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;El nuevo modelo del corvette también tiene mejoras en la suspensión, llantas más anchas (285/35/18 adelante y 325/30/19 atrás) así como una carrocería más ancha, la cual le permite curvear mejor que sus predecesores los modelos Z51. Frenos del mismo tamaño que los del Z06 y Calipers de 6 pistones adelante y de 4 pistones atrás. La idea del Corvette Grand Sport es ponerlo un poco más cerca de la versión Z06, pero con las opciones que adicionales como techo desmontable o versiones convertibles.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;El nuevo Corvette, sin duda es un coche espectacular y una gran pieza para quienes disfrutamos de este tipo de vehículos.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4580467758963028053-2974369720022699518?l=gusitio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/2974369720022699518/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://gusitio.blogspot.com/2009/08/corvette-2010-grand-sport.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/2974369720022699518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/2974369720022699518'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/2009/08/corvette-2010-grand-sport.html' title='Corvette 2010 Grand Sport'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_uO9VG6Lce-s/SnoxpUtl4MI/AAAAAAAAACM/2fBa1DT0dVw/s72-c/chevrolet-corvette-grand-sport-2010.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4580467758963028053.post-82277480810564696</id><published>2009-07-25T22:54:00.005-05:00</published><updated>2009-07-25T23:20:10.275-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='camaro'/><category scheme='http://www.blogger.com/atom/ns#' term='transformers'/><category scheme='http://www.blogger.com/atom/ns#' term='2010'/><category scheme='http://www.blogger.com/atom/ns#' term='bumblebee'/><title type='text'>Camaro 2010 Edición Transformers</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 400px; height: 278px;" src="http://1.bp.blogspot.com/_uO9VG6Lce-s/SmvUs5A4RaI/AAAAAAAAAB0/nAFl8Fqh2Eg/s400/camaro_transformers_02.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5362613648998548898" /&gt;&lt;span class="Apple-style-span" style="-webkit-text-decorations-in-effect: none; "&gt;Chevrolet anunció un nuevo paquete edición especial Transformers del nuevo Camaro 2010 el cuál tendrá un costo de 995 dólares e incluye las franjas negras, algunos emblemas de los "Autobots" colocados por debajo de los emblemas de Camaro y uno que otro detalle adicional.&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Aunque el paquete es anunciado como la versión Transformers, para que tengas en casa a "Bumblebee" el paquete dista mucho del camaro en la película,ya que el amarillo es diferente, las franjas negras no llegán hasta la punta de la facia como en el de la película, no cuenta con el cofre con la toma de aire,  la facia es la del Camaro SS 2010 y no la facia con las ranuras negras en los faros de niebla, y los rines también son muy diferentes.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;img src="http://2.bp.blogspot.com/_uO9VG6Lce-s/SmvYFFXkrmI/AAAAAAAAAB8/C3pMWhd3qeY/s200/ChevyCamaro_2010_Bumblebee.jpg" style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 200px; height: 121px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5362617363166703202" /&gt;&lt;div style="text-align: justify;"&gt;A decir verdad este paquete no incluye nada adicional excepto&lt;/div&gt;&lt;div style="text-align: justify;"&gt;unas calcomanías de transformers colocados en el cofre, estribo, algunos emblemas y elementos bordados de los interiores. Está "edición especial" está bastante lejos de ser lo que eran las ediciones especiales como el Camaro 30th o el Camaro SS 35th aniversario, donde además de stickers edición special, emblemas y bordados en los interiores, se incluían rines, cofre, alerón y algún elemento de performance adicional cómo los escapes GMMG.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Pero en fin, finalmente las versiones anteriores del Camaro fracasaron y por eso se detuvo la producción, así que hay que estar agradecidos porque existan este tipo de paquetes porque hacen más famoso a este hermoso auto.&lt;/div&gt;&lt;img src="http://1.bp.blogspot.com/_uO9VG6Lce-s/SmvYdWU6g5I/AAAAAAAAACE/eo85O-Q9hUc/s200/2002CamaroSS35th1500miles.jpg" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5362617780035814290" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4580467758963028053-82277480810564696?l=gusitio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/82277480810564696/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://gusitio.blogspot.com/2009/07/camaro-2010-edicion-transformers.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/82277480810564696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/82277480810564696'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/2009/07/camaro-2010-edicion-transformers.html' title='Camaro 2010 Edición Transformers'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_uO9VG6Lce-s/SmvUs5A4RaI/AAAAAAAAAB0/nAFl8Fqh2Eg/s72-c/camaro_transformers_02.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4580467758963028053.post-3305971835230683389</id><published>2009-07-17T03:07:00.006-05:00</published><updated>2009-07-17T17:10:22.686-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='random'/><category scheme='http://www.blogger.com/atom/ns#' term='gustavo villegas'/><category scheme='http://www.blogger.com/atom/ns#' term='refresh'/><title type='text'>F5</title><content type='html'>&lt;div style="text-align: justify;"&gt;Bueno debido a mi cambio de ánimo respecto a la inserción de mis pensamientos en un blog, he decidido retomar este blog y cambiar un poco la idea inicial, que de cualquier forma la idea inicial no tuvo mucho éxito. Así que ahora utilizaré este blog, para plasmar mis pensamientos respecto a los temas que me gustan, dar opiniones sobre las situaciones de la vida cotidiana y alguna que otra vez poner algo acerca de Java...jaja, digamos que estoy haciendo únicamente un "Refreshment" jajaja.&lt;/div&gt;&lt;br /&gt;Saludos&lt;br /&gt;Gus&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4580467758963028053-3305971835230683389?l=gusitio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/3305971835230683389/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://gusitio.blogspot.com/2009/07/f5.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/3305971835230683389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/3305971835230683389'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/2009/07/f5.html' title='F5'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4580467758963028053.post-2749763779884252227</id><published>2008-10-19T01:41:00.004-05:00</published><updated>2009-07-17T17:16:41.217-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hardy heron'/><category scheme='http://www.blogger.com/atom/ns#' term='netbeans'/><title type='text'>Cómo Instalar NetBeans 6.1 en Ubuntu Hardy Heron</title><content type='html'>Bueno cómo ya sabrán NetBeans se puede instalar facilmente utilizando los repo's de ubuntu utilizando el comando:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;sudo apt-get install netbeans&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Sin embargo, la versión que se instala no es la última versión de NetBeans, además de que no viene con todos los plug-in's para Web Applications, y si ya teníamos previamente instalado Java de alguna forma, cuando instalamos este, también se descargan otros paquetes cómo el Open JDK, además si luego instalas de igual forma el GlassFish V2, tendrás algunos problemas ya que lo instalala en un directorio en el que no se tiene permiso de escritura, por lo que resulta más complicado configurar NetBeans para poder se utilizado con GlassFish.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Entonces resulta que a la hora de la hora, es más fácil descargar el paquete de NetBeans, que instalarlo utilizando los repositorios de Hardy, entonces lo primero que vamos a hacer es descargar el archivo *.bin de la página de NetBeans:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.netbeans.org/downloads/index.html"&gt;http://www.netbeans.org/downloads/index.html&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Luego ya que haya descargado lo que tenemos que hacer es simplemente ejecutar el programa, el cuál ejecutará una especie de Asistente de Instalación a la Windows, tendremos que reiniciar la computadora probablemente para que lo podamos ver en el Menú de Aplicaciones y Listo! NetBeans está configurado y listo para ser usado =D con TomCat y GlassFish V2 incluído =D además de Frameworks como Java Server Faces y Spring.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4580467758963028053-2749763779884252227?l=gusitio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/2749763779884252227/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://gusitio.blogspot.com/2008/10/cmo-instalar-netbeans-61-en-ubuntu.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/2749763779884252227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/2749763779884252227'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/2008/10/cmo-instalar-netbeans-61-en-ubuntu.html' title='Cómo Instalar NetBeans 6.1 en Ubuntu Hardy Heron'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4580467758963028053.post-4139492156871620319</id><published>2008-10-15T09:53:00.005-05:00</published><updated>2008-10-15T10:26:14.860-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hardy heron'/><category scheme='http://www.blogger.com/atom/ns#' term='como'/><category scheme='http://www.blogger.com/atom/ns#' term='heron'/><category scheme='http://www.blogger.com/atom/ns#' term='gutsy gibbon'/><category scheme='http://www.blogger.com/atom/ns#' term='instalacion'/><category scheme='http://www.blogger.com/atom/ns#' term='java 6'/><category scheme='http://www.blogger.com/atom/ns#' term='instalar'/><category scheme='http://www.blogger.com/atom/ns#' term='nuevo'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='hardy'/><title type='text'>Como Instalar Java en Ubuntu Hardy Heron</title><content type='html'>Bueno, cómo ya lo había prometido, aquí va cómo instalar Java, en Ubuntu Hardy Heron y a decir verdad es muy sencillo. Lo único que tienes que hacer es descargar el JDK de la página de Sun&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://java.sun.com/javase/downloads/ea/6u10/6u10rcDownload.jsp#6u10JREs"&gt;http://java.sun.com/javase/downloads/ea/6u10/6u10rcDownload.jsp#6u10JREs&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Y selecciona la versión que es para Linux y que no es el rpm.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  -webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family:Arial;"&gt;&lt;a href="http://www.java.net/download/jdk6/6u10/promoted/b32/binaries/jre-6u10-rc2-bin-b32-linux-i586-12_sep_2008.bin" style="text-decoration: none; color: rgb(62, 107, 138); "&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;jre-6u10-rc2-bin-b32-linux-i586-12_sep_2008.bin&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ya que la hayas descargado abre una consola y muevete hasta el directorio donde lo hayas descargado. Y teclea el comando sudo chmod+X &lt;span class="Apple-style-span"  style="  -webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family:Arial;"&gt;&lt;a href="http://www.java.net/download/jdk6/6u10/promoted/b32/binaries/jre-6u10-rc2-bin-b32-linux-i586-12_sep_2008.bin" style="text-decoration: none; color: rgb(62, 107, 138); "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;jre-6u10-rc2-bin-b32-linux-i586-12_sep_2008.bin&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="  -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-family:Georgia;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; Asegúrate que el nombre del archivo sea el mismo, y no solo copies y pregues.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;cd /home/gustavo/escritorio&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;sudo chmod+X &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; "&gt;&lt;a href="http://www.java.net/download/jdk6/6u10/promoted/b32/binaries/jre-6u10-rc2-bin-b32-linux-i586-12_sep_2008.bin" style="text-decoration: none; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;jre-6u10-rc2-bin-b32-linux-i586-12_sep_2008.bin&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Luego ejecuta el programa:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;./&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; "&gt;&lt;a href="http://www.java.net/download/jdk6/6u10/promoted/b32/binaries/jre-6u10-rc2-bin-b32-linux-i586-12_sep_2008.bin" style="text-decoration: none; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;jre-6u10-rc2-bin-b32-linux-i586-12_sep_2008.bin&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-size: 48px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; "&gt;Y ya tienes Java, ahora sólo tenemos que mover la carpeta de lugar&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;sudo mv java_1.6.0_10_rc /usr/lib/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;(Asegúrate de que si este correcto el nombre de la carpeta).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;Por último sólo falta poner nuestro PATH y nuestro CLASSPATH y JAVA_HOME, para lo que puedes hacer:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;sudo gedit /etc/environmen&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;t&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;y agregas:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;PATH="/usr/lib/java_1.6.0_10_rc /bin/"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;CLASSPATH="."&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;JAVA_HOME="/usr/lib/java_1.6.0_10_rc /"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;Guardas el Archivo y lo cierras, abres una terminal y tecleas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;javac -version&lt;/span&gt; y podrás ver que ya tienes Java Instalado =D&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;Espero te sirva de Guía&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"&gt;Saludos!!&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  -webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;font-family:Arial;font-size:12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  -webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;font-family:Arial;font-size:12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4580467758963028053-4139492156871620319?l=gusitio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/4139492156871620319/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://gusitio.blogspot.com/2008/10/como-instalar-java-en-ubuntu-hardy.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/4139492156871620319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/4139492156871620319'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/2008/10/como-instalar-java-en-ubuntu-hardy.html' title='Como Instalar Java en Ubuntu Hardy Heron'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4580467758963028053.post-6588609518999682917</id><published>2008-10-09T18:53:00.009-05:00</published><updated>2008-10-09T19:54:55.718-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='apuntadores'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='aprender java'/><category scheme='http://www.blogger.com/atom/ns#' term='java 6'/><category scheme='http://www.blogger.com/atom/ns#' term='Integer'/><category scheme='http://www.blogger.com/atom/ns#' term='parametros'/><category scheme='http://www.blogger.com/atom/ns#' term='referencia'/><category scheme='http://www.blogger.com/atom/ns#' term='wrapper'/><category scheme='http://www.blogger.com/atom/ns#' term='referencias'/><category scheme='http://www.blogger.com/atom/ns#' term='Double'/><category scheme='http://www.blogger.com/atom/ns#' term='paso'/><category scheme='http://www.blogger.com/atom/ns#' term='java 5'/><category scheme='http://www.blogger.com/atom/ns#' term='pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Long'/><category scheme='http://www.blogger.com/atom/ns#' term='valor'/><title type='text'>Paso de Parámetros en java: Por Valor</title><content type='html'>&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Parámetros por Valor.&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Se utiliza cuándo se requiere pasar el valor de una variable a una función y que está realize alguna operación sobre ese Valor, la función o método crea una Variable Local y trabaja sobre ella.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;int a=5;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;metodo(a):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;void metodo(int c) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;System.out.println(c);&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;La variable c, es una variable local y que recibe una copia del valor de la variable a, es decir se pasa el parámetro por valor.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Paso por Referencia.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;El paso por referencia en vez de mandar el valor de la variable, se mánda la dirección de memoria en la que se encuentra almacenada, para de está manera modificar el contenido de la variable. Sin embargo este tipo de paso de parámetros en Java no existe pero si lo quisieramos hacer en C++ sería algo así:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;include &amp;lt;iostream&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;using namespace std;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;void funcion(int &amp;amp;a) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;a = 10;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;int main() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;int var = 5;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;funcion(&amp;amp;var);&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;cout &lt;&lt;&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;El resultado de la ejecución sería, 10 ya que la variable 10 se pasa por referencia y la función modifica su valor.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ahora regresando a lo importante &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;¿Cómo pasa los parámetros Java? &lt;/span&gt;En java sólo existe una forma de hacerlo y&lt;span class="Apple-style-span" style="font-weight: bold;"&gt; con el paso de parámetos por valor,&lt;/span&gt; aquí dejo un ejemplo de esto:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;public class PasoPorValor {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;public static void main(String [] args) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;int a = 20;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;metodo(a);&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;System.out.println(a);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;public static void metodo(int c) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;c = 10;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;El valor de la variable a siempre es el mismo. Ahora veamos un ejemplo utilizando objetos, en este caso utilizaré un arreglo, ya que por definición los arreglos son objetos:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;public class PasoPorValor {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;public static void main(String [] args) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;int[] a = new int[1]; //declaramos un arreglo de una posición;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;metodo(a);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;System.out.println(a[0]);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;public static void metodo(int[] c) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;c[0] = 10;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Pero que ocurrió!!! Por qué cambió el valor mi objeto? En realidad esto ocurre por la sencilla razón de que en Java las variables que apuntan a objetos, no son el objeto, sino una referencia al él, es decir en Java cuando hacemos esto:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;int[] a = new int[1];&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Estamos creando una referencia que tiene cómo identificador a y que el tipo de datos al que hace referencia es un arreglo de int y además ahí mismo con el operador new se crea el objeto, y por lo tanto la variable a, hará referencia a la locación de memoria de ese objeto.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Entonces cuándo el método recibe la referencia y lo modifica, estamos modificando el valor del objeto, pero ojo, esto no quiere decir que Java pase parámetros por referencia, sino que &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;PASA EL VALOR DE LA REFERENCIA&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Si Java pasara valores por referencia cuándo hacemos esto:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;public class PasoPorValor {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;public static void main(String [] args) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;String a = "Hola";&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;metodo(a);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;System.out.println(a);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;public static void metodo(String c) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;c = "Nuevo Objeto";&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;El resultado debería ser "Nuevo Objeto" Sin embargo esto no sucede por la simple y sencilla razón de que Java sólo &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;pasa parámetros por valor&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Espero con esto quede un poco más claro cómo pasa los parámetros Java&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Saludos&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4580467758963028053-6588609518999682917?l=gusitio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/6588609518999682917/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://gusitio.blogspot.com/2008/10/paso-de-parmetros-en-java-por-valor.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/6588609518999682917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/6588609518999682917'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/2008/10/paso-de-parmetros-en-java-por-valor.html' title='Paso de Parámetros en java: Por Valor'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4580467758963028053.post-6398744006364079986</id><published>2008-09-23T10:35:00.002-05:00</published><updated>2008-09-23T11:06:45.766-05:00</updated><title type='text'>Tutorial:Variables y Tipos de Datos</title><content type='html'>Bien ya que vimos lo que eran los métodos en Java, ahora analizaremos lo que son las variables y los tipos de datos.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;¿Para que sirven las Variables?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Una variable sirven para guardar información, que esta pueda ser usada posteriormente. Por ejemplo declaro una variable de nombre "var" y le doy un valor inicial de 15:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;int var = 15;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;¿Qué son los tipos de datos y para qué sirven?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Los tipos de datos sirven, para identificar "qué tipo información va a guardar la memoria" es decir si nuestra variable almacenará números, letras, cadenas de letras, si será una matriz. Por lo tanto todas las letras.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;En Java Existen dos tipos diferentes, los tipos primitivos y las referencias.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Primitivos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Los tipos de datos primitivos, son los más básicos y los que fundamentan la construcción de un programa, en Java existen 8 tipos primitivos&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;byte&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;8 bits&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;Enteros&lt;/div&gt;&lt;div&gt;short&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;16 bits&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;Enteros&lt;/div&gt;&lt;div&gt;int&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;32 bits&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;Enteros&lt;/div&gt;&lt;div&gt;long&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;64 bits&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;Enteros&lt;/div&gt;&lt;div&gt;float&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;32 bits&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;Decimales&lt;/div&gt;&lt;div&gt;double&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;64 bits&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;Decimales&lt;/div&gt;&lt;div&gt;char&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;16 bits.&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;Letras&lt;/div&gt;&lt;div&gt;boolean&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;1 bits.&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;Verdadero / Falso&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;int entero;&lt;/div&gt;&lt;div&gt;double decimal;&lt;/div&gt;&lt;div&gt;boolean bandera;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Referencias&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Las variables de tipo referencia son las que guardan la dirección de memoria donde fue almacenado un Objeto, y pueden hacer referencia a cualquier objeto definido en una clase conocida.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Object miObjeto;&lt;/div&gt;&lt;div&gt;Esto lo veremos más adelante.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;¿Cómo se declara una variable?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;En Java, las variables siempre deben estar declaradas antes de poder usares y sólo pueden ser definidas bajo un tipo de datos. Cuando se declare una variable, se debe colocar con la siguiente estructura&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;TIPO_DE_DATOS identificador;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;El identificador es el nombre con que el "identifcaremos" a esa variable. Entonces si queremos indicar una variable que guarde tipo de datos int y que se llame "entero" la declaramos de la siguiente forma:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;int entero;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ahora también puedes declarar muchas variables del mismo tipo de datos en una sola expresión por ejemplo, si quieres declarar 5 variables de tipo "double" lo podemos hacer así:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;double a,b,c,d,e;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Y de está forma ya declaramos 5 variables (a, b, c, d, e) que guardan doubles.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Bien eso es todo por ahora respecto al uso de variables.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Y ya sabes, si tienes alguna duda, no dudes en hacerla!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Saludos&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4580467758963028053-6398744006364079986?l=gusitio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/6398744006364079986/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://gusitio.blogspot.com/2008/09/tutorialvariables-y-tipos-de-datos.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/6398744006364079986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/6398744006364079986'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/2008/09/tutorialvariables-y-tipos-de-datos.html' title='Tutorial:Variables y Tipos de Datos'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4580467758963028053.post-5387720092902236992</id><published>2008-09-20T00:15:00.012-05:00</published><updated>2008-09-20T01:02:41.175-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='funciones'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='aprender java'/><category scheme='http://www.blogger.com/atom/ns#' term='compilar java'/><category scheme='http://www.blogger.com/atom/ns#' term='funciones java'/><category scheme='http://www.blogger.com/atom/ns#' term='métodos'/><category scheme='http://www.blogger.com/atom/ns#' term='parametros.'/><category scheme='http://www.blogger.com/atom/ns#' term='java 5'/><category scheme='http://www.blogger.com/atom/ns#' term='correr java'/><category scheme='http://www.blogger.com/atom/ns#' term='metodos'/><category scheme='http://www.blogger.com/atom/ns#' term='textpad'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='que es un metodo'/><title type='text'>Tutorial: Funciones ó Métodos en Java: Parte 1</title><content type='html'>Debido a que para muchas personas resulta complicado estar compilando las clases en la Consola de Comandos, yo recomiendo descargar TextPad en la versión 4, ya que la 5 por alguna razón a mi no me gusta, creo que tiene varios detallitos por ahí que aún están mal o funcionan diferente y por ello no me agrada. Así que a descargar TextPad! &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.textpad.com/download/"&gt;http://www.textpad.com/download/&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;(Descarga la versión que más te agradé y en el idioma que tú prefieras)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Instala el programa, el cuál no tiene mayor complicación (Siguiente -&gt; Siguiente -&gt; Finalizar). Ahora TextPad será nuestro editor de texto, con lo que haremos las llamadas al compilador y con lo que se harán las llamadas para ejecutar el programa (además de que tiene colorcitos =D ), para no tener que ejecutar el compilador y JVM desde la línea de comandos. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Para compilar un archivo sólo tienes que ir al menú Herramientas -&gt; Compilar Java y para córrerlo, una vez compilado, ve a Herramientas -&gt; Ejecutar Aplicación Java.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Bien ahora que esto ya quedó entendido, vamos ahora sí a nuestro tema central, los métodos!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;¿Qué es un método?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Un método es una función que puede ser llamado y que ejecutará una serie de instrucciones para que nuestro programa sea ejecutado. En Java la mayoría de instrucciones siempre estará dentro de un método, en realidad siempre irán dentro de un método excepto en algunos casos, pero de momento ese no es nuestro tema de estudio.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Recordando nuestro programa HolaMundo recordarás el método Principal:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;public static void main(String[] args) {&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;System.out.println("Hola Mundo!");&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Los métodos en Java siempre estarán escritos con esa estructura:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;modificadores&amp;gt; &amp;lt;tipo&amp;gt; &amp;lt;nombre&amp;gt; (  &amp;lt;parámetros&gt; ) { &lt;/div&gt;&lt;div&gt;&amp;lt;cuerpo&amp;gt;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;MODIFICADORES: Son opciones que indicarán el comportamiento del método al momento de la ejecución.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;TIPO DE RETORNO: Es el tipo de datos que serán obtenidos una vez que la ejecución del método termine.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NOMBRE: Es el identificador y nombre de la función ó método.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;PARÁMETROS: La información que le enviaremos al método para que este haga lo que supuestamente tiene que hacer!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;CUERPO: Las instrucciones que nuestro método va a ejecutar.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Bien ahora sólo para que lo veas con nuestro método principal:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;MODIFICADORES: public static&lt;/div&gt;&lt;div&gt;TIPO DE RETORNO: void (Significa que no regresa ninguna información)&lt;/div&gt;&lt;div&gt;NOMBRE: main&lt;/div&gt;&lt;div&gt;PARÁMETROS: String [] args (Un arreglo de String el cual veremos más adelante)&lt;/div&gt;&lt;div&gt;CUERPO: System.out.println("Hola Mundo!");&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Bien ahora siguiendo esa misma lógica podemos definir un método para sumar dos números decimales (El tipo de datos decimal en Java es &lt;span class="Apple-style-span" style="font-style: italic;"&gt;double&lt;/span&gt;) a y b. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;MODIFICADORES: public static&lt;/div&gt;&lt;div&gt;TIPO DE RETORNO: double (Porque al sumar dos números decimales obtenemos otro número decimal).&lt;/div&gt;&lt;div&gt;NOMBRE: suma&lt;/div&gt;&lt;div&gt;PARÁMETROS: double a, double b (El método recibe dos parámetros, para realizar una función que sume dos números debemos recibir esos dos números...muy fácil no? )&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Entonces nuestro método queda escrito de la siguiente forma y sólo nos falta definir el cuerpo, es decir, cómo es que nuestro método realizará la suma de esos números:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;public static double suma( double a, double b ) {&lt;/div&gt;&lt;div&gt;&lt;cuerpo&gt;&lt;/cuerpo&gt;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;El cuerpo de este método es muy simple ya que sólo tenemos que sumar a + b y regresar el valor de esa suma.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;public static double suma(double a, double b) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;return a + b;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Sencillo no? Tenemos una función de nombre suma, que recibe dos parámetros (a,b) y que una vez que se ejecute obtendremos un valor decimal (&lt;span class="Apple-style-span" style="font-style: italic;"&gt;double&lt;/span&gt;).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Entonces llamemos a nuestro método obtendremos algo más o menos así&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;suma (5 , 6 ) -&gt;  REGRESA: 11&lt;/div&gt;&lt;div&gt;suma (11,12) -&gt; REGRESA: 23&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ahora, para realizar algunas pruebas lo único que tenemos que hacer, cómo ya sabes! es poner todo dentro de una clase, y colocar un método principal, el cuál es el punto de inicio del programa.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;public class Metodos {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;public static void main(String[] args) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;System.out.println( suma(5,6) );&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;System.out.println( suma(11,12) );&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;public static double suma(double a, double b) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;return a + b;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Guarda el archivo con el nombre de Metodos.java, compílalo y córrelo y verás que el resultado es&lt;/div&gt;&lt;div&gt;11.0&lt;/div&gt;&lt;div&gt;23.0&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Muy Fácil no?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Bueno eso es la primera parte de métodos. Espero lo hayas entendido bien.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Saludos y si tienes una pregunta, no dudes en hacerla :D&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4580467758963028053-5387720092902236992?l=gusitio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/5387720092902236992/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://gusitio.blogspot.com/2008/09/funciones-mtodos-en-java-parte-1.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/5387720092902236992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/5387720092902236992'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/2008/09/funciones-mtodos-en-java-parte-1.html' title='Tutorial: Funciones ó Métodos en Java: Parte 1'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4580467758963028053.post-1856729107157157127</id><published>2008-09-08T20:52:00.002-05:00</published><updated>2008-09-20T01:01:02.533-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java 5'/><category scheme='http://www.blogger.com/atom/ns#' term='hola mundo'/><category scheme='http://www.blogger.com/atom/ns#' term='aprender java'/><category scheme='http://www.blogger.com/atom/ns#' term='codigo'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='curso'/><category scheme='http://www.blogger.com/atom/ns#' term='java 6'/><category scheme='http://www.blogger.com/atom/ns#' term='compilar.'/><category scheme='http://www.blogger.com/atom/ns#' term='primer programa'/><title type='text'>Tutorial: Primer programa "Hola Mundo!"</title><content type='html'>&lt;span style=""&gt;&lt;div&gt;Código de tu primer programa:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;public class HolaMundo {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;public static void main(String[] args) {&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;System.out.println("Hola Mundo!");&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Bien, ya que por fin has hecho tu primer programa en Java ahora aquí te explico cómo es que esto funciona:&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;public class HolaMundo {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Este es el nombre de la Clase, Java es un lenguale de programación orientado a objetos y todo se engloba en una clase, de momento es no es importante, por ahora sólo debes recordar que todo se encuentra siempre dentro de una clase, y que siempre que una clase sea declarada public, el archivo se deberá llamar igual ej:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;public class HolaMundo&lt;/span&gt;&lt;/span&gt; Nombre del Archivo: HolaMundo.java&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;publc class MiClase&lt;/span&gt; Nombre del Archivo: MiClase.java&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Después de eso verás que abre una llave, la llave sirve para englobar el contenido. En la siguiente línea&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;public static void main(String[] args) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Este es una función o método, en Java se les dice métodos. Ahora este es nuestro método "Principal" y siempre que ejecutemos el comando:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;java NOMBRE_DE_LA_CLASE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;La JVM buscará en la Clase llamará a un método con esas características, que sea public, static, void de nombre main, y que recibe un arreglo de String cómo parámetro. No te preocupes en este momento si no entiendes nada de lo que significa, sólo recuerda que que el método main, es el punto de inicio del programa, lo que se ejecutará cuando el programa inicie y las instrucciones deberán ir englobadas entre llaves.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;public static void main(String[] args ) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//AQUÍ VAN LAS INSTRUCCIONES DEL PROGRAMA&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Siguiente línea:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;System.out.println("Hola Mundo!");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Está es nuestra primera instrucción de ejecución del programa y de momento lo único que necesitas saber es que vas a escribir está instrucción siempre que quieras mostrar algo en la pantalla. (Es por eso que cuando ejecutas el programa, te muestra en la pantalla "Hola Mundo!".&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;System.out.println("LO QUE QUIERES MOSTRAR");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Las siguientes líneas sólo cierran las llaves que estaban abiertas, la primera línea cierra el bloque de método "main" y la siguiente llave cierra el bloque de la clase "HolaMundo".&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Bueno de momento eso es todo lo que necesitas saber!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Espero te sirva.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Saludos&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Si quieres ver la entrada anterior para ver cómo descargar, instalar, configurar java y hacer tu primer programa haz &lt;a href="http://gusitio.blogspot.com/2008/09/tutorial-parte-1-inciar-en-java.html"&gt;clic aqui&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4580467758963028053-1856729107157157127?l=gusitio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/1856729107157157127/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://gusitio.blogspot.com/2008/09/primer-programa-hola-mundo.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/1856729107157157127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/1856729107157157127'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/2008/09/primer-programa-hola-mundo.html' title='Tutorial: Primer programa &quot;Hola Mundo!&quot;'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4580467758963028053.post-3843762522321620171</id><published>2008-09-03T17:37:00.000-05:00</published><updated>2008-09-05T19:07:18.106-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='jse'/><category scheme='http://www.blogger.com/atom/ns#' term='aprender java'/><category scheme='http://www.blogger.com/atom/ns#' term='java 6'/><category scheme='http://www.blogger.com/atom/ns#' term='compilar java'/><category scheme='http://www.blogger.com/atom/ns#' term='guia'/><category scheme='http://www.blogger.com/atom/ns#' term='jdk'/><category scheme='http://www.blogger.com/atom/ns#' term='jre'/><category scheme='http://www.blogger.com/atom/ns#' term='path'/><category scheme='http://www.blogger.com/atom/ns#' term='novatos'/><category scheme='http://www.blogger.com/atom/ns#' term='java 5'/><category scheme='http://www.blogger.com/atom/ns#' term='principiantes'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='textpad'/><category scheme='http://www.blogger.com/atom/ns#' term='static void main'/><category scheme='http://www.blogger.com/atom/ns#' term='compilador'/><title type='text'>Tutorial Parte 1: Inciar en Java</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;He decidido escribir está guía cómo tutorial de Java para iniciar desde cero. Cuando alguien desea aprender a programar en un lenguaje que desconoce totalmente, siempre es complicado iniciar, ya que hay mucha información en internet, se lee información acerca de editores, compiladores, intérpretes, que unos funcionan para servidor otros cómo aplicaciones web, etcétera. Toda está información hace que a una persona le sea imposible encontrar una forma de iniciarse en un lenguaje.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Bien, está es una guía-tutorial, para convertirse en un programador en Java y que luego puedas elegir un camino en lo que te interese más, cómo puede ser el desarrollo de aplicaciones web,  webservices o aplicaciones para celular.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;La idea que principalmente tengo, es que me evitaré de muchas explicaciones tediosas y complicadas que hacen que el lector se aburra y no entre principalmente en acción: a Programar. Con esto no estoy diciendo que la teoría ni el entendimiento de cómo funcionan las cosas sea irrelevante, sólo que escribiré este tutorial con el fin de que sea muy práctico y realizando pequeños programitas que tengan alguna aplicación real y que no sólo sean explicaciones de estructuras de datos, sin que haya un ejemplo de cuando se pueden utilizar.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Introducción a Java&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Java es una tecnología que surgió en los 90's. Bueno si quieres leer más de la historia de Java, aquí te dejó esta link:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;a href="http://pisuerga.inf.ubu.es/lsi/Invest/Java/Tuto/I_2.htm"&gt;http://pisuerga.inf.ubu.es/lsi/Invest/Java/Tuto/I_2.htm&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;¿Qué es Java?&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Java es un lenguaje de programación orientado a objetos, en la actualidad es muy utilizado para el desarrollo de aplicaciones web, y de programas para celulares.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;¿Cómo funciona Java?&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Java surgió con la idea de "Compílalo una vez y córrelo donde sea". Esto quiere decir que Java es un lenguaje que corre independiente del Sistema Operativo en el que se ejecute. Para lograr esto los programas escritos en Java, no se ejecutan directamente por la computadora, sino que son ejecutados por la Máquina Virtual Java (A la que a partir de ahora llamaremos JVM). Cuando tu escribes un programa en Java y lo compilas, se genera un archivo binario: bytecode el cuál se ejecutará en la JVM. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;¿Cómo hago un programa en Java?&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Tendrás que bajar el Kit de Desarrollo de Java de la página de Sun, el cuál incluye el &lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;Java Runtime Environment&lt;/li&gt;&lt;li style="text-align: justify;"&gt;Herramientas para la creación de un programa en Java&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: justify;"&gt;¿Oye pero yo una vez ya había bajado el Java, lo tengo que volver a bajar? Lo más seguro es que sí, ya que si tu descargaste Java, para ejecutar alguna aplicación como "Yahoo! Billar", sólo hayas descargado el Java Runtime Environment (JRE) y no tengas las herramientas para la creación de un programa.&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;La versión de java que tienes que bajar es la siguiente:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Java SE 6.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Y lo puedes descargar de aquí:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;a href="http://java.sun.com/javase/downloads/ea.jsp"&gt;http://java.sun.com/javase/downloads/ea.jsp&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;(Si la link está rota, agradecería mucho si me avisarás para corregirlo).&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Seleccionas tu plataforma y lo descargas.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Una vez que hayas descargado el archivo sigue lo&lt;/div&gt;&lt;div style="text-align: justify;"&gt;s siguientes pasos:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Para Windows&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Instala el programa, cómo cualquier programa de Windows (Siguiente-&gt; Siguiente-&gt; Finalizar). Te pedirá que si deseas instalar el JRE, instalaló. Felicidades ya tienes Java!! Ahora lo que tienes que hacer es cambiar la Variable de entorno &lt;span class="Apple-style-span" style="font-style: italic;"&gt;Path. &lt;/span&gt;El Path es el lugar dónde Windows buscará los programas cuando los ejecutes desde la Consola de Comandos (Command, MS-DOS). Para cambiar el Path, primero tenemos que saber en que Carpeta está instalado nuestro Java (Espero que hayas visto en dónde). Si no cambiaste el directorio que se coloca por defecto Java estará instalado en está carpeta (Verifica que si sea esa, entra el Explorador de Windows y encuentralo, no lo copies tal cual de aquí, ya que puede haber variaciones en el update):&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;C:\Program Files\Java\jdk1.6.0_XX\bin&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Ahora, lo que debes hacer es cambiar el la variable Path, para esto vas a: &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Computadora -&gt; Panel de Control -&gt; Opciones Avanzadas &lt;/div&gt;&lt;div style="text-align: justify;"&gt;del Sistema -&gt; Variables de Entorno&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;img src="http://1.bp.blogspot.com/_lB2AUrymTac/SL8m1D7DZnI/AAAAAAAAABI/KhZzyFRz7GU/s320/Sistema.jpg" style="text-align: justify;display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; cursor: pointer; " border="0" alt="" id="BLOGGER_PHOTO_ID_5241951184310462066" /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;img src="http://1.bp.blogspot.com/_lB2AUrymTac/SL8m1DIfVYI/AAAAAAAAABA/kWUQblVK_rU/s320/Propiedades.jpg" style="text-align: justify;display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; cursor: pointer; " border="0" alt="" id="BLOGGER_PHOTO_ID_5241951184098383234" /&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;img src="http://2.bp.blogspot.com/_lB2AUrymTac/SL8m06I52KI/AAAAAAAAAA4/NHqk-aAcGCk/s320/ev.jpg" style="text-align: justify;display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; cursor: pointer; " border="0" alt="" id="BLOGGER_PHOTO_ID_5241951181684201634" /&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;img src="http://2.bp.blogspot.com/_lB2AUrymTac/SL8m05FRKmI/AAAAAAAAAAw/2Qz7t1TsSfc/s320/edit.jpg" style="text-align: justify;display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; cursor: pointer; " border="0" alt="" id="BLOGGER_PHOTO_ID_5241951181400517218" /&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Seleccionas la Variable Path, le das click en Editar y colocas el directorio donde están los archivos binarios de Java (&lt;span class="Apple-style-span" style="font-style: italic; "&gt;C:\Program Files\Java\jdk1.6.0_XX\bin&lt;/span&gt;) después de todo lo que tenga escirto la variable.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;NOTA: No borres el contenido de la variable, sólo cóloca un "punto y coma ;" y pon el directorio del Java.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Guarda los cambios, reinicia tu computadora, abre una Consola de Comandos "CMD", "Command" "Ms-Dos" y teclea el comando &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;javac&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Si el mensaje que te aprece "javac commando no encontrado", quiere decir que no configuraste bien tu Path, revisa que este bien configurado.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Para Linux&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Está sección se las debo para la próxima entrada. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Ahora por fin, a escribir nuestro primer programa en Java, abre el Bloc de Notas o un editor de texto simple y escribe lo siguiente:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;public class HolaMundo {&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;public static void main(String[] args) {&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;System.out.println("Hola Mundo!");&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Guarda el archivo con el nombre de "HolaMundo.java". Ahora yo te recomiendo que lo guardes en un directorio al que puedas acceder fácilmente. Por que lo accesaremos desde la Consola de Comandos.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;NOTA: Es muy importante que lo escribas tal cuál está, ya que java si hace diferencia entre las mayúsculas y las minúsculas es decir  "Hola" es diferente de "hola".&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Ahora, abre de nuevo una Consola de Comandos y muevete con el comando "cd" (Change Directory) hacia tu directorio, donde guardaste el programa. y teclea el comando:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;javac HolaMundo.java&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Esto lo harás para compilar tu programa en Java, si te marcó errores verifica lo siguiente:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;Hayas copiado el código correctamente.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;El nombre del archivo si sea HolaMundo.java&lt;/li&gt;&lt;li style="text-align: justify;"&gt;Si estés posicionado en el directorio correcto.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Una vez que no tengas errores, teclea el comando:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;java HolaMundo &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Y verás como se muestra el mensaje "Hola Mundo!"&lt;/div&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;img src="http://3.bp.blogspot.com/_lB2AUrymTac/SL8srtwfCXI/AAAAAAAAABQ/TI1U9hcTjNQ/s320/HolaMundo.jpg" style="text-align: justify;float: left; margin-top: 0px; margin-right: 10px; margin-bottom: 10px; margin-left: 0px; cursor: pointer; " border="0" alt="" id="BLOGGER_PHOTO_ID_5241957620811499890" /&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Felicidades has hecho tu primer programa en Java!!&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Próxima entrega: Explicación del Programa y utilización de otro Editor de Texto&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4580467758963028053-3843762522321620171?l=gusitio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gusitio.blogspot.com/feeds/3843762522321620171/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://gusitio.blogspot.com/2008/09/tutorial-parte-1-inciar-en-java.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/3843762522321620171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4580467758963028053/posts/default/3843762522321620171'/><link rel='alternate' type='text/html' href='http://gusitio.blogspot.com/2008/09/tutorial-parte-1-inciar-en-java.html' title='Tutorial Parte 1: Inciar en Java'/><author><name>Gus</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_lB2AUrymTac/SL8m1D7DZnI/AAAAAAAAABI/KhZzyFRz7GU/s72-c/Sistema.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
