How to Convert List to List<Object>

前端 未结 7 1388
忘了有多久
忘了有多久 2020-11-30 03:47

I want to convert List to List.

One of the existing methods is returning List and I

7条回答
  •  爱一瞬间的悲伤
    2020-11-30 04:16

    This is pretty inefficient, but at least you don't have to write a lot of code~

    List stringList = new ArrayList();
    List objectList = Arrays.asList(stringList.toArray());
    
        

    提交回复
    热议问题