I am experienced in JavaScript, but new to Java. In JavaScript there are object data types where a given variable essentially has sub-variables with their own unique values, for example:
var car = {type:Fiat, model:500, color:white};
It is almost like an array, but not quite (JavaScript has arrays too). I am wondering if the same type of thing exists in Java? If so, how would I declare the same thing in Java? Based on my searches I can't find an object data type, but thought maybe there was something similar?