Hi there, Solving this task I found that in the Object Method there's no return type declaration and that puzzles me. Is it or is not compulsory declare the returning type in a Method?
public static Object createArrayList() {
       //write your code here
       List<String> arrayList = new ArrayList<>();
       return arrayList;
In this piece of code, the Method Object returns an ArrayList, however is not declared in the Method. I guess that my premises are wrong but, am I? thanks