I am new in Java and I would like to write a code like PHP or Javasript or Python alowes me to write where I am able to write a literal to create an array of couples. The thing I want to achieve in PHP looks like:
$arr = [
['key1' => 'aaa', 'key2' => 'bbb'],
['key1' => 'ccc', 'key2' => 'ddd'],
['key1' => 'eee', 'key2' => 'fff']
];
It looks like it is not possible in Java. Hope it is. Thank you. Please write as simple code as possible.