Update Generate.java

1. a typo: class name should be Solution :)
2. There is no need to check "if (numRows <= 0)"