 
			
				22/08/2008, 14:45
			
			
			     |  
        |     |    |    Fecha de Ingreso: junio-2008  Ubicación: Santander, Colombia  
						Mensajes: 608
					  Antigüedad: 17 años, 4 meses Puntos: 53     |        |  
        Respuesta: if (condicion)        
Código:
  /*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package taller;
import javax.swing.*;
/**
 *
 * @author Edison Jair Lizcano
 */
public class Main {
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
    JOptionPane.showMessageDialog(null,"         Taller No.1 - 1.1");
           
    String primer;
    String segundo;
    
    int x, y;
    
    primer = JOptionPane.showInputDialog("Valor x");
x = Integer.parseInt(primer);
if ( x < 0 ) 
// de que forma le digo que utilize y = 3x + 6?...y que "y" lo tome como resultado...
JOptionPane.showMessageDialog(null, "El valor de "y" es igual a:" + y, "RESULTADOS", JOptionPane.PLAIN_MESSAGE);
xxxxx
xxxx
xxx
xx
x
              |