Syntax error resolve in Console class