import scala.io.StdIn.readLine object vezbe { class Shape() case class Rectangle(a:Int, b: Int) extends Shape case class Circle(r:Int) extends Shape def isRound (shape: Shape) : Boolean = shape match { case Circle(r) => {print("Jeste okrugao");true} case Rectangle(a, b) => {print("Nije okrugao");false} } def loadArray (list: List[String]) : List[String] ={ val value = readLine() if (value!="") loadArray(value::list) else list.reverse } def main(args: Array[String]): Unit = { print(isRound(new Rectangle(3,4))) println(loadArray(List())) } }