// use of anonymous array
someMethod( new int[] { 4, 5, 6} );

// you can use this shorthand:
String phaseOfMoon = new String[] {
   "New Moon",
   "Waxing Crescent",
   "First Quarter",
   "Waxing Gibbous",
   "Full Moon",
   "Waning Gibbous",
   "Last Quarter",
   "Waning Crescent",
} [phaseCode];

// instead of spelling it out with:
switch ( phaseCode )
   {
   case 0:
      phaseOfMoon = "New Moon";
      break;

   case 1:
      phaseOfMoon = "Waxing Crescent";
      break;

   case 2:
      phaseOfMoon = "First Quarter";
      break;

   case 3:
      phaseOfMoon = "Waxing Gibbous";
      break;

   case 4:
      phaseOfMoon = "Full Moon";
      break;

   case 5:
      phaseOfMoon = "Waning Gibbous";
      break;

   case 6:
      phaseOfMoon = "Last Quarter";
      break;

   case 7:
      phaseOfMoon = "Waning Crescent";
      break;
   }