LaptopNegocios

LaptopNegocios - (GigaBytes): "); ram =

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*; i public class LaptopNegocios{ p public static BufferedReader entrada = new BufferedReader(new InputStreamReader(System.in)); public static PrintWriter salida = new PrintWriter(System.out, true); p public static void main(String args[]) throws IOException{ p System.out.println(" « inicio de la aplicación »\n"); S String user = ""; String marca = ""; int ram; double disco, pila; Computadora c1; do{ salida.println("Dime la marca de la Computadora: "); marca = entrada.readLine(); m salida.println("Ingresa la cantidad de RAM
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (GigaBytes): "); ram = Integer.parseInt(entrada.readLine()); r salida.println("Ingresa la cantidad de Disco Duro (GigaBytes): "); disco = Double.parseDouble(entrada.readLine()); d c1 = new Computadora(marca, ram, disco); c salida.println(c1.toString()); s salida.println("\n Deseas continuar? (s/no)"); user = entrada.readLine(); }while(user.toLowerCase().equals("si")); } System.out.println("\n fin de la aplicacin "); S } }...
View Full Document

This note was uploaded on 10/29/2009 for the course ITC TC-1002 taught by Professor X during the Spring '09 term at ITESM.

Ask a homework question - tutors are online