1. Null의 체크기존 null 체크 소스 view plaincopy to clipboardprint?public String getPostcode(Person person) { if (person != null) { Address address = person.getAddress(); if (address != null) { return address.getPostcode(); }} return null; } java 7의 소스 view plaincopy to clipboardprint?public String getPostcode(Person person) { return person?.getAddress()?.getPostcode(); } 2. String 으로 swit..