//练习题 https://blog.csdn.net/lishuaigell/article/details/121959892
/*
//类,对象,函数
class Hello{
val a = "hello world"
def display() = println(a)
}
val hello = new Hello
hello.display()
val x = 1
// for(x=1; i<10;x++)
println(x)
*/
val a = "\\\\\\"
println(a)
//函数定义
def max (x:Int, y:Int):Int = {
if(x>y)
x
else
y
}
println(max(1,2))
//类
class Students(n:String){
val name = n
println("My name is " + n + " hhh")
}
val stu = new Students("lee")