'To create the object using (.) operator and display the

class Solution{
   static void main(String[] args){
      ("write a code here")
   }
}
// object class
class Car{
   public String Brand = "Honda";
   public int year = 2009;
   public String Model = "City AMT";
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source