Run ❯
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
//filename: Main.java public class Main { int modelYear; String modelName; public Main(int year, String name) { modelYear = year; modelName = name; } public static void main(String[] args) { Main myCar = new Main(1969, "Mustang"); System.out.println(myCar.modelYear + " " + myCar.modelName); } }
1969 Mustang