You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Empty_If_Block.java 317 B

3 years ago
1234567891011121314151617181920212223
  1. package Empty_If_Block;
  2. public class Empty_If_Block {
  3. public String bad(String input) {
  4. if (input.length() == 0) { // bad 空的if代码块
  5. }
  6. return "";
  7. }
  8. public String good(String input) {
  9. if (input.length() == 0) { // good 空的if代码块
  10. return "";
  11. } else{
  12. return input;
  13. }
  14. }
  15. }

No Description

Contributors (1)