{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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 aplicación »"); S } }...
View Full Document

{[ snackBarMessage ]}