/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package coche.pkg1;
import java.util.Scanner;
/**
*
* @author GATO
*/
public class COCHE1 {
/**
* @param args the command line arguments
*/
String MARCA, FILTRO;
int KILOMETRAGE, LLANTA;
public COCHE1()
{
Scanner teclado = new Scanner(System.in);
System.out.println("VEHICULOS PESADOS ");
System.out.println(" ");
System.out.print("MANTENIMIENTO");
System.out.print(" ");
System.out.println("MARCA DEL VEHICULO: ");
this.MARCA = teclado.nextLine();
System.out.print(" ");
System.out.println("CONBUSTIBLE Y ACEITE ");
System.out.println(" ");
System.out.println("TIPOS DE FILTROS: ");
this.FILTRO = teclado.nextLine();
System.out.print(" ");
System.out.println("KILOMETRAGE: ");
this.KILOMETRAGE = teclado.nextInt();
System.out.print(" ");
System.out.println("A LOS CUANTOS MESES CAMBIA LAS LLANTAS: ");
this.LLANTA = teclado.nextInt();
}
public void MuestraCARRO (){
System.out.println(MARCA);
System.out.println(FILTRO);
System.out.println(KILOMETRAGE);
System.out.println(LLANTA);
}
public static void main(String[] args) {
// TODO code application logic here
COCHE1 hl=new COCHE1();
hl.MuestraCARRO();
}
}
No hay comentarios:
Publicar un comentario