What does a Java static method look like in Ruby?

前端 未结 2 1898
别跟我提以往
别跟我提以往 2020-12-20 19:14

In Java, a \'static method\' would look like this:

class MyUtils {
    . . .
    public static double mean(int[] p) {
        int sum = 0;  // sum of all the         


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