
/*
Online Java - IDE, Code Editor, Compiler

Online Java is a quick and easy tool that helps you to build, compile, test your programs online.
*/

import java.util.*;

public class Main
{
    enum Car
        {
            Porsche(100, 50000),
            Hyundai(150, 30000);
            
            final int speed;
            final double price;
    
            Car (int speed, double price)
            {
                this.speed=speed;
                this.price=price;
            }
            
            
        }
    
    public static void main(String[] args) {
    System.out.println("Welcome to Online IDE!! Happy Coding :)");
    
    System.out.println(Car.Porsche.speed);
    System.out.println(Car.Porsche.price);
    
  
    
    
    
        
        /*
        Car dw = Car.Porsche;
        
        if (dw==Car.Porsche)
        {
            System.out.println("Monday it is");
        }
        
        for (Car d: Car.values())
        {
            System.out.println(d);
        }
        
        */
    }
    
    public void test()
    {
          Scanner scan = new Scanner (System.in);
          int num = Scanner.nextInt();
    }
}
