I have imported java.util.List interface. trying to create a function as follow:
public List<JSONObject,JSONArray> getDetail(String s)
But it shows error as "Incorrect number of arguments for type List; it cannot be parameterized with arguments <JSONObject, JSONArray>" I have gone through many articles but they said ,import java.util.List instead java.awt.List but i already imported that. Can anyone help here what i am missing here ?

