module demo::basic::Bottles import IO; str bottles(0) = "no more bottles"; str bottles(1) = "1 bottle"; default str bottles(int n) = " bottles"; public void sing(){ for(n <- [99 .. 1]){ println(" of beer on the wall, of beer."); println("Take one down, pass it around, of beer on the wall.\n"); } println("No more bottles of beer on the wall, no more bottles of beer."); println("Go to the store and buy some more, 99 bottles of beer on the wall."); }