class Conditioner { constructor() {} method void main() { "Immetti un numero: ".output(); String in := ""; in.input(); int a := in.toInt(); /* tutte queste espressioni condizionali sono semanticamente corrette! */ int i := a > -2 ? 3 : 5; float f := a > 20 ? 3 : 3.0; array of int arr1 := a > 7 ? new int[5] : [3,4,2]; Object o1 := a = 4 ? new Object() : new Conditioner(); Object o2 := a > 5 ? new int[20] : new float[20]; Object o3 := a < 3 ? [3.4,5.2] : this } }