help in stream function

hi all, when i try this function this function gives me compile time error "error: 'stream' was not declared in this scope" every time give me the same error can any one help me

void setup()
{
  Serial.begin(9600);
}

void loop()
{
  stream.available();
}

What are you trying to do? You should be using Serial.available(), although just using it as a statement is a bit pointless.

Stream is the base class for character and binary based streams. It is not called directly, but invoked whenever you use a function that relies on it.