Serial Monitor Arduino Leonardo Not Working

I have a problem with Monitor Serial of Leonardo, when I try to see or read something not apper anything, this is the code that i try to run, If is possible help me with this problem, thanks.

#define ledPin 13
#include <SoftwareSerial.h> // Libreria Serial

SoftwareSerial mySerial(10, 11); // Pin 10 RX, Pin 11 TX

void setup()
pinMode(ledPin, OUTPUT);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
mySerial.begin(4800); // Inicia el puerto serial a una velocidad de 4800 Baudios

void loop ()
if (mySerial.available() > 0) { //Verifica si el puerto serial esta disponible
if (Serial.available())
Serial.println(“hola mundo”):

I used your code, everything works (Arduino Mega). Try to change the baud in the lower right corner in the serial monitor.

What is connected to the software serial port? How do you know that that whatever it is is sending data? Does whatever it is accept serial data?

Well the problem is the Java plataform, I proved with other`s S.O and fuctionally perfect, I reinstall the windows System againg and the problem was solved. I recomed Install the full Package of the S.O, wathever you use.

Thanks for your`s answers.