我完全不知道为什么这段代码不会返回数组...我觉得我的编译器有问题:
public class trial1{
public static void main(String[] args){
numbers();
}
public static int[] numbers(){
int[] A = {1,2,3};
return A;
}
}
Run Code Online (Sandbox Code Playgroud)
代码根本不返回任何内容.这让我疯狂!
对于整数,我使用
userId:
type: integer
format: int32
Run Code Online (Sandbox Code Playgroud)
但是如果我想分配 double 类型怎么办?
我尝试查看 Swagger 文档但找不到答案。