simple hello in setup

Hi All

I've mentioned this In another topic, but I thought I would start a new one here.

I've been having trouble getting a simple Serial.println command to work in the setup. while it compiles okay, I can't get it to display in the serial monitor. I am using a:

Leonardo
Arduino IDE with Monitor

is it possible to do a serial.print in setup?

see code

Thanks

Justin

void setup() {
  Serial.begin(9600);
  Serial.println("hello");
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Already covered here

Do I need to enclose the

' Serial.println("hello");'

in brackets?

void setup()
{
  Serial.begin(9600);                //set the baud rate
  while (!Serial);                   //wait for Serial to become available on a Leonardo
  Serial.println("Hello World");     //print something
}