good afternoon, I have a very specific question, what happens is that I want the user to enter a number and according to this establish whether the vehicle is a car or motorcycle, I think I already achieve it but not very well, after this I want that if the vehicle is auto then ask the model to the user the model, in the same way with the motorcycle, for example: if it is a car then I will ask it in the following way ("what is the model of the car:") , if it is motorcycle in this way ("what is the model of the motorcycle:"), I hope and you have managed to understand me, thank you very much in advance
import java.util.Scanner;
public class Vehiculo{
//atributos
int Tipo;
String Placa;
int Modelo;
int Km;
int Cilindraje;
static final double BASEA = 50.000;
static final double BASEB = 70.000;
boolean decidir;
String decicion;
boolean decidir2;
String decicion2;
// PEDIR DATOS
public void pedirDatos(){
Scanner pedir = new Scanner(System.in);
System.out.println("introduce un numero del 1 al 3 si tu vehiculo es auto o del 4 al infinito si tu vehiculo es moto");
Tipo = pedir.nextInt();
//SI "Tipo" es menor o igual a 3 "decidir" es true
decidir = (Tipo <= 3);
decicion = (decidir) ? "Auto" : "Moto";
System.out.println("Tu vehiculo es: "+ decicion);
decidir2 = (decicion == "Auto");
decicion2 = (decidir2) ? System.out.println("Introduce el modelo del auto: );