2024-04-12 (84일차) - sublist, record 복습

·2024년 4월 12일

https://www.baeldung.com/

sublist

sublist(x, y)
x부터 y까지

record 복습

  public class MessagesRequest{
        private final Long fromId;
        private final Long told;
        public Messages Resquest (final Long fromId, final Long told) {
            this.fromId = fromId;
            this.told = told;
            
        }
        public Long getFromId(){
            return fromId;
        }
        public Long told() {
            return told;
        }
    }

public record MessagesRequest(Long fromId) {
}

셋다 같은 것!

return false;
event.preventDefault();
even.stopPropagation();

profile
hello world

0개의 댓글