/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package choche2;
import java.util.Scanner;
/**
*
* @author GATO
*/
public class CHOCHE2 {
/**
* @param args the command line arguments
*/
String COOPERATIVA, MARCA, RUTA1, RUTA2, RUTA3;
int ACIENTOS;
public CHOCHE2()
{
Scanner teclado = new Scanner(System.in);
System.out.println(" TRASPORTE PROVINCIAL ");
System.out.println(" ");
System.out.println("COOPERATIVA:");
this.COOPERATIVA = teclado.nextLine();
System.out.println(" ");
System.out.println("MARCA DEL VEHICULO: ");
this.MARCA = teclado.nextLine();
System.out.println(" ");
System.out.println(" INGRESE TRES RUTAS DE RECORRIDO: ");
System.out.println(" ");
System.out.println("RUTA 1: ");
this.RUTA1 = teclado.nextLine();
System.out.println(" ");
System.out.println("RUTA 2: ");
this.RUTA2 = teclado.nextLine();
System.out.print(" ");
System.out.println("RUTA 3: ");
this.RUTA3 = teclado.nextLine();
System.out.print(" ");
System.out.println("NUMERO DE ACIENTOS DEL VEHICULO: ");
this.ACIENTOS = teclado.nextInt();
}
public void MuestraCAR (){
System.out.println(COOPERATIVA);
System.out.println(MARCA);
System.out.println(RUTA1);
System.out.println(RUTA2);
System.out.println(RUTA3);
System.out.println(ACIENTOS);
}
public static void main(String[] args) {
// TODO code application logic here
CHOCHE2 hl=new CHOCHE2();
hl.MuestraCAR();
}
}
No hay comentarios:
Publicar un comentario