What do I return if the return type of a method is Void? (Not void!)

前端 未结 6 1102
忘掉有多难
忘掉有多难 2020-12-07 12:12

Due to the use of Generics in Java I ended up in having to implement a function having Void as return type:

public Void doSomething() {
    //..         


        
6条回答
提交回复
热议问题