Java if Statement

52

java if or -

if (str != null && !str.isEmpty()) {
  doSomethingWith(str.charAt(0));
}

Comments

Submit
0 Comments