So would the code run if there is semicolon, obviously that was a typo. |
It would run, yes. It wasn't "obvious" that that was a typo - how can I possibly know whether or not you're correctly copying and pasting your code here?
Just address the problem if you can or don't thanks. |
When someone here asks you a question, it is because they want to be better able to help you. One would think that you'd
want us to be better able to help you.
You'll find you're more likely to get the help you want, if you engage with us and help us to find out what we need to know.
Of course, that assumes that getting the help you want is more important to you than snarking at people here. That's false a depressingly high percentage of the time, in here.
I will ask again, on the assumption that you actually want to be helped:
What do you mean by "will not run"?
Do you have a compilation error? A runtime crash? Something else? What behaviour are you seeing that is not what you expect?
Help us to help you.