java scala混排

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.examples.infoworld.helloword;

public class Cal {
public int add(int a,int b){
return a+b;
}
}


import com.dataartisans.examples.infoworld.helloword.Cal

object TestApp {
def main(args: Array[String]): Unit = {
print(new Cal().add(2,4))
}
}