Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

함수를 main에서 분리해서 public 함수로 만들어주세요. #39

Open
nurinamu opened this issue Mar 15, 2014 · 4 comments
Open

Comments

@nurinamu
Copy link

재사용 가능하게 로직을 main에서 분리해주세요.

@ragingwind
Copy link

+1

@gpeddler
Copy link

만약에 로직을 분리하게 될 경우 재사용을 가정하기 때문에
현재 사용법이 달라져야 할 것 같습니다..

ex)
public static void main(String []args){
int start = Integer.parseInt(args[0]);
}
사용 변경
public static void main(String []args){
fibonacci(100);
fibonacci(1000);
}

@ragingwind
Copy link

ex)

public static void main(String []args){
  int start = Integer.parseInt(args[0]);
}

사용 변경

public static void main(String []args){
  fibonacci(100);
  fibonacci(1000);
}

@gpeddler
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants