본문 바로가기

Java

#025 Get

- getarticle이라는 뜻은 article에 존재하는 뭔가를 가져오는 명령어이다.

public Article getarticle (int id) {
	if ( i == 1 ) {
			return article1;
} else if ( i == 2) {
			return article2;
} return null;

 

 

 

 

 

 

*전체적인 일상은 노션을 통해 작성하고 있습니다.

링크 : www.notion.so/008-5f7f5f37f21f42b395ebb34957b8188f